capmode.c (d8101e7bec352b7b6a154ec2e428d01bddb7e5b4) | capmode.c (d6d7d3ed56e3bfe7fd34108dbe23f0610e3d8621) |
---|---|
1/* 2 * Linux ARCnet driver - "cap mode" packet encapsulation. 3 * It adds sequence numbers to packets for communicating between a user space 4 * application and the driver. After a transmit it sends a packet with protocol 5 * byte 0 back up to the userspace containing the sequence number of the packet 6 * plus the transmit-status on the ArcNet. 7 * 8 * Written 2002-4 by Esben Nielsen, Vestas Wind Systems A/S --- 208 unchanged lines hidden (view full) --- 217 ackskb->protocol = cpu_to_be16(ETH_P_ARCNET); 218 219 if (BUGLVL(D_SKB)) 220 arcnet_dump_skb(dev, ackskb, "ack_tx_recv"); 221 netif_rx(ackskb); 222 223free_outskb: 224 dev_kfree_skb_irq(lp->outgoing.skb); | 1/* 2 * Linux ARCnet driver - "cap mode" packet encapsulation. 3 * It adds sequence numbers to packets for communicating between a user space 4 * application and the driver. After a transmit it sends a packet with protocol 5 * byte 0 back up to the userspace containing the sequence number of the packet 6 * plus the transmit-status on the ArcNet. 7 * 8 * Written 2002-4 by Esben Nielsen, Vestas Wind Systems A/S --- 208 unchanged lines hidden (view full) --- 217 ackskb->protocol = cpu_to_be16(ETH_P_ARCNET); 218 219 if (BUGLVL(D_SKB)) 220 arcnet_dump_skb(dev, ackskb, "ack_tx_recv"); 221 netif_rx(ackskb); 222 223free_outskb: 224 dev_kfree_skb_irq(lp->outgoing.skb); |
225 lp->outgoing.proto = NULL; /* We are always finished when in this protocol */ | 225 lp->outgoing.proto = NULL; 226 /* We are always finished when in this protocol */ |
226 227 return 0; 228} 229 230static struct ArcProto capmode_proto = { 231 'r', 232 XMTU, 233 0, --- 38 unchanged lines hidden --- | 227 228 return 0; 229} 230 231static struct ArcProto capmode_proto = { 232 'r', 233 XMTU, 234 0, --- 38 unchanged lines hidden --- |