diff options
author | Jesse Gross <jesse@nicira.com> | 2011-01-09 01:23:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-10 02:35:34 -0500 |
commit | fc741216db156994c554ac31c1151fe0e00d8f0e (patch) | |
tree | 692c6278f1c20e4452620adee1ea3cd05d878819 /drivers/net/xen-netfront.c | |
parent | f01a5236bd4b140198fbcc550f085e8361fd73fa (diff) |
net offloading: Pass features into netif_needs_gso().
Now that there is a single function that can compute the device
features relevant to a packet, we don't want to run it for each
offload. This converts netif_needs_gso() to take the features
of the device, rather than computing them itself.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index cdbeec9f83ea..546de5749824 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -488,7 +488,7 @@ static int xennet_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
488 | 488 | ||
489 | if (unlikely(!netif_carrier_ok(dev) || | 489 | if (unlikely(!netif_carrier_ok(dev) || |
490 | (frags > 1 && !xennet_can_sg(dev)) || | 490 | (frags > 1 && !xennet_can_sg(dev)) || |
491 | netif_needs_gso(dev, skb))) { | 491 | netif_needs_gso(skb, netif_skb_features(skb)))) { |
492 | spin_unlock_irq(&np->tx_lock); | 492 | spin_unlock_irq(&np->tx_lock); |
493 | goto drop; | 493 | goto drop; |
494 | } | 494 | } |