[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100915163749.GA4191@mmm.home.ifup.org>
Date: Wed, 15 Sep 2010 09:37:49 -0700
From: Brandon Philips <bphilips@...e.de>
To: David Miller <davem@...emloft.net>
Cc: jeffrey.t.kirsher@...el.com, jesse.brandeburg@...el.com,
bruce.w.allan@...el.com, alexander.h.duyck@...el.com,
peter.p.waskiewicz.jr@...el.com, john.ronciak@...el.com,
donald.c.skidmore@...el.com, netdev@...r.kernel.org,
e1000-devel@...ts.sourceforge.net
Subject: [PATCH] vlan: enable GRO if real_dev supports it
Currently vlan devices don't have GRO by default as none of the Ethernet
drivers add NETIF_F_GRO to their vlan_features.
As GRO is a software feature just propogate GRO from the real_dev in the
vlan core. There is no need to have the drivers each add NETIF_F_GRO to
their vlan_features.
Signed-off-by: Brandon Philips <bphilips@...e.de>
---
net/8021q/vlan_dev.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 3bccdd1..6fbc445 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -735,6 +735,7 @@ static int vlan_dev_init(struct net_device *dev)
(1<<__LINK_STATE_DORMANT))) |
(1<<__LINK_STATE_PRESENT);
+ dev->features |= real_dev->features & NETIF_F_GRO;
dev->features |= real_dev->features & real_dev->vlan_features;
dev->gso_max_size = real_dev->gso_max_size;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists