diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-04-02 05:58:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-02 05:58:37 +0200 |
commit | e9403c8437cf3721e7901c1a8fcb06bb642a7e55 (patch) | |
tree | ed33b2eab03dc30332b6d1da29ae93e00b0f0d2f /drivers/net/sunhme.c | |
parent | veth: convert to hw_features (diff) | |
download | linux-e9403c8437cf3721e7901c1a8fcb06bb642a7e55.tar.xz linux-e9403c8437cf3721e7901c1a8fcb06bb642a7e55.zip |
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/sunhme.c')
-rw-r--r-- | drivers/net/sunhme.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index eb4f59fb01e9..80e907df36b4 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c @@ -2788,7 +2788,8 @@ static int __devinit happy_meal_sbus_probe_one(struct platform_device *op, int i dev->ethtool_ops = &hme_ethtool_ops; /* Happy Meal can do it all... */ - dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM; + dev->hw_features = NETIF_F_SG | NETIF_F_HW_CSUM; + dev->features |= dev->hw_features | NETIF_F_RXCSUM; dev->irq = op->archdata.irqs[0]; @@ -3113,7 +3114,8 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev, dev->dma = 0; /* Happy Meal can do it all... */ - dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM; + dev->hw_features = NETIF_F_SG | NETIF_F_HW_CSUM; + dev->features |= dev->hw_features | NETIF_F_RXCSUM; #if defined(CONFIG_SBUS) && defined(CONFIG_PCI) /* Hook up PCI register/descriptor accessors. */ |