]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: Use skb->cb for pending_idx
authorZoltan Kiss <zoltan.kiss@citrix.com>
Thu, 6 Mar 2014 21:48:23 +0000 (21:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Mar 2014 20:56:34 +0000 (15:56 -0500)
commitc8f139e53efae6ff47624cbba88aefbbcc5a7b14
tree90f0d6b5accf80a8a3cc0390c04a142f0c7b0bf1
parent675904a9cbf25dd3eb9913da8c07715ef4e0a4a1
xen-netback: Use skb->cb for pending_idx

Storing the pending_idx at the first byte of the linear buffer never looked
good, skb->cb is a more proper place for this. It also prevents the header to
be directly grant copied there, and we don't have the pending_idx after we
copied the header here, so it's time to change it.
It also introduces helpers for the RX side

Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c