diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-04-16 20:15:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 20:47:34 -0400 |
commit | 66a1c5413260a8c302b4024555c489cc6731b463 (patch) | |
tree | 2e2a7d90cf0f9f6a9aafd8fad647964c77163a2b /drivers/net/benet | |
parent | 86688a8f132a7630f8610c13a349c711fe683b44 (diff) |
net: benet: convert to hw_features - fixup
Remove be_set_flags() as it's already covered by hw_features.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Ajit Khaparde ajit.khaparde@emulex.com
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r-- | drivers/net/benet/be_ethtool.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c index 0f645a92bebe..28716a6061bc 100644 --- a/drivers/net/benet/be_ethtool.c +++ b/drivers/net/benet/be_ethtool.c | |||
@@ -712,18 +712,6 @@ be_read_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, | |||
712 | return status; | 712 | return status; |
713 | } | 713 | } |
714 | 714 | ||
715 | static int be_set_flags(struct net_device *netdev, u32 data) | ||
716 | { | ||
717 | struct be_adapter *adapter = netdev_priv(netdev); | ||
718 | int rc = -1; | ||
719 | |||
720 | if (be_multi_rxq(adapter)) | ||
721 | rc = ethtool_op_set_flags(netdev, data, ETH_FLAG_RXHASH | | ||
722 | ETH_FLAG_TXVLAN | ETH_FLAG_RXVLAN); | ||
723 | |||
724 | return rc; | ||
725 | } | ||
726 | |||
727 | const struct ethtool_ops be_ethtool_ops = { | 715 | const struct ethtool_ops be_ethtool_ops = { |
728 | .get_settings = be_get_settings, | 716 | .get_settings = be_get_settings, |
729 | .get_drvinfo = be_get_drvinfo, | 717 | .get_drvinfo = be_get_drvinfo, |
@@ -745,5 +733,4 @@ const struct ethtool_ops be_ethtool_ops = { | |||
745 | .get_regs = be_get_regs, | 733 | .get_regs = be_get_regs, |
746 | .flash_device = be_do_flash, | 734 | .flash_device = be_do_flash, |
747 | .self_test = be_self_test, | 735 | .self_test = be_self_test, |
748 | .set_flags = be_set_flags, | ||
749 | }; | 736 | }; |