diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-04-02 07:58:37 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-02 07:58:37 +0400 |
commit | e9403c8437cf3721e7901c1a8fcb06bb642a7e55 (patch) | |
tree | ed33b2eab03dc30332b6d1da29ae93e00b0f0d2f /drivers/net/sungem.c | |
parent | a2c725fa39b79fcc3f09151e847cc006ff0d4389 (diff) | |
download | linux-e9403c8437cf3721e7901c1a8fcb06bb642a7e55.tar.xz |
net: convert sunhme/sungem network drivers to hw_features
Side effects:
- TX offloads (HW csum, scatter-gather) can be toggled now
- RX checksum is reported correctly now (it's always active)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sungem.c')
-rw-r--r-- | drivers/net/sungem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index c1a344829b54..a935426cbe63 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c @@ -3146,7 +3146,8 @@ static int __devinit gem_init_one(struct pci_dev *pdev, gp->phy_mii.def ? gp->phy_mii.def->name : "no"); /* GEM can do it all... */ - dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_LLTX; + dev->hw_features = NETIF_F_SG | NETIF_F_HW_CSUM; + dev->features |= dev->hw_features | NETIF_F_RXCSUM | NETIF_F_LLTX; if (pci_using_dac) dev->features |= NETIF_F_HIGHDMA; |