/* This is the routine that sends the received data to the kernel AX.25. 'cmd' is the KISS command. For AX.25 data, it is zero.  */
static void sp_bump(struct sixpack *sp, char cmd)
/* This is the routine that sends the received data to the kernel AX.25. 'cmd' is the KISS command. For AX.25 data, it is zero.  */
static void sp_bump(struct sixpack *sp, char cmd)
{
	struct sk_buff *skb;
	int count;
	unsigned char *ptr;
	count = sp->rcount + 1;
	sp->dev->stats.rx_bytes += count;
	if ((skb = dev_alloc_skb(count)) == NULL)
		goto out_mem;
	ptr = skb_put(skb, count);
	*ptr++ = cmd;
	memcpy(ptr, sp->cooked_buf + 1, count);
	skb->protocol = ax25_type_trans(skb, sp->dev);
	netif_rx(skb);
	sp->dev->stats.rx_packets++;
	return;
out_mem:
	sp->dev->stats.rx_dropped++;
}