myri10ge: Add support for vlan_features
Subsystems (2)
PATCH 3/3 myri10ge: Add support for vlan_features
Add support for netdev->vlan_features in the myri10ge driver.
Signed-off-by Brice Goglin <[email protected]>
--- drivers/net/myri10ge/myri10ge.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
drivers/net/myri10ge/myri10ge.c +7 -1
@@ -75,7 +75,7 @@#include "myri10ge_mcp.h" #include "myri10ge_mcp_gen_header.h" -#define MYRI10GE_VERSION_STR "1.5.0-1.415" +#define MYRI10GE_VERSION_STR "1.5.0-1.418"MODULE_DESCRIPTION ("Myricom 10G driver (10GbE)" );MODULE_AUTHOR ("Maintainer: [email protected]" );
@@ -3916,6 +3916,12 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent) netdev->features |=NETIF_F_HIGHDMA ; netdev->features |=NETIF_F_LRO ; + netdev->vlan_features |= mgp->features; +if (mgp->fw_ver_tiny <37 ) + netdev->vlan_features &= ~NETIF_F_TSO6 ; +if (mgp->fw_ver_tiny <32 ) + netdev->vlan_features &= ~NETIF_F_TSO ; +/* make sure we can get an irq, and that MSI can be * setup (if available). Also ensure netdev->irq * is set to correct value if MSI is enabled */
Signature · 1 line
1.6.2.4
From: Brice Goglin <[email protected]>
Date: Sun, 24 May 2009 17:27:59 +0200
Quoted 3 lines
Add support for
netdev->vlan_featuresin the myri10ge driver.Signed-off-by Brice Goglin <[email protected]>
Applied to net-next-2.6