Patchwork [net-next-2.6,1/6] be2net: set netdev->vlan_features appropriately

login
register
mail settings
Submitter Ajit Khaparde
Date Nov. 30, 2009, 3:54 a.m.
Message ID <20091130035444.GA15426@serverengines.com>
Download mbox | patch
Permalink /patch/39775/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ajit Khaparde - Nov. 30, 2009, 3:54 a.m.
patch to initialize netdev->vlan_features appropriately.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
---
 drivers/net/benet/be_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Ajit Khaparde - Nov. 30, 2009, 4:01 a.m.
On 30/11/09 09:24 +0530, Ajit Khaparde wrote:
> patch to initialize netdev->vlan_features appropriately.
> 
> Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
> ---
>  drivers/net/benet/be_main.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)

Dave,
I waited for the following patch from Alexander Duyck to be accepted.
But since I did not see any activity on it, I sent my patch series
without considering that. Please let me know if you did not like it.

http://patchwork.ozlabs.org/patch/39265/

-Ajit
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Dec. 2, 2009, 9:11 a.m.
From: Ajit Khaparde <ajitk@serverengines.com>
Date: Mon, 30 Nov 2009 09:24:54 +0530

> patch to initialize netdev->vlan_features appropriately.
> 
> Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 7959364..2c84c92 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -1951,6 +1951,8 @@  static void be_netdev_init(struct net_device *netdev)
 		NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_FILTER | NETIF_F_HW_CSUM |
 		NETIF_F_GRO;
 
+	netdev->vlan_features |= NETIF_F_SG | NETIF_F_TSO | NETIF_F_HW_CSUM;
+
 	netdev->flags |= IFF_MULTICAST;
 
 	adapter->rx_csum = true;