xen-netback: use skb to determine number of required guest Rx requests
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 15 Jan 2016 14:55:34 +0000 (14:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jan 2016 20:13:18 +0000 (15:13 -0500)
commit99a2dea50d5deff134b6c346f53a3ad1f583ee96
treef25c92ae80136e8ac0cc8fda22f8bce7c704c2a5
parentfb3311853c0f23391fc3441d49a46d076de57757
xen-netback: use skb to determine number of required guest Rx requests

Using the MTU or GSO size to determine the number of required guest Rx
requests for an skb was subtly broken since these value may change at
runtime.

After 1650d5455bd2dc6b5ee134bd6fc1a3236c266b5b (xen-netback: always
fully coalesce guest Rx packets) we always fully pack a packet into
its guest Rx slots.  Calculating the number of required slots from the
packet length is then easy.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c