public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] bnx2 + vlan + TSO : doesnt work
@ 2011-01-17 23:41 Eric Dumazet
  2011-01-17 23:47 ` Ben Hutchings
  0 siblings, 1 reply; 9+ messages in thread
From: Eric Dumazet @ 2011-01-17 23:41 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Jesse Gross

Oh well, my dev machine, with bnx2 and tg3 NICs, isnt working at all
with current linux-2.6 tree (I need vlans on my setup)

tg3 : vlan not working

bnx2 : vlan + TSO not working (or very slowly, since only non GSO frames
are OK)

I suspect recent commits from Jesse are the problem.
(bnx2_xmit() is feeded with zeroed vlan_tci skbs)

Maybe f01a5236bd4b1401 (net offloading: Generalize
netif_get_vlan_features().) ?

I dont see NETIF_F_HW_VLAN_TX being set in vlan_features in net drivers.
They only set this flag in dev->features

I dont think changing all drivers to also set vlan_features makes sense.

Is following patch the right path ? (It does solve my problem)

diff --git a/net/core/dev.c b/net/core/dev.c
index 54277df..5c13e55 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5265,6 +5265,9 @@ int register_netdevice(struct net_device *dev)
 	 */
 	dev->vlan_features |= (NETIF_F_GRO | NETIF_F_HIGHDMA);
 
+	/* allow netif_skb_features() not mask this bit from dev->features */
+	dev->vlan_features |= NETIF_F_HW_VLAN_TX;
+
 	ret = call_netdevice_notifiers(NETDEV_POST_INIT, dev);
 	ret = notifier_to_errno(ret);
 	if (ret)



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-01-18  6:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17 23:41 [BUG] bnx2 + vlan + TSO : doesnt work Eric Dumazet
2011-01-17 23:47 ` Ben Hutchings
2011-01-18  0:00   ` Eric Dumazet
2011-01-18  0:09     ` Ben Hutchings
2011-01-18  0:13       ` Jesse Gross
2011-01-18  6:09         ` David Miller
2011-01-18  6:21           ` Eric Dumazet
2011-01-18  6:32             ` Jesse Gross
2011-01-18  6:38               ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox