diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2014-05-14 20:25:27 -0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-06-02 21:42:44 -0400 |
commit | fe62d001372388abb15a324148c913f9b43722a8 (patch) | |
tree | 28b1c01e537430432ee340ae8b6ad20c50429701 /drivers/net/ethernet/broadcom/tg3.c | |
parent | 33cb0fa7888510b5bd2096352b200cfe29db10fe (diff) |
ethtool: Replace ethtool_ops::{get,set}_rxfh_indir() with {get,set}_rxfh()
ETHTOOL_{G,S}RXFHINDIR and ETHTOOL_{G,S}RSSH should work for drivers
regardless of whether they expose the hash key, unless you try to
set a hash key for a driver that doesn't expose it.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/broadcom/tg3.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index ccd90156aebc..8c2314ed260c 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c | |||
@@ -12501,7 +12501,7 @@ static u32 tg3_get_rxfh_indir_size(struct net_device *dev) | |||
12501 | return size; | 12501 | return size; |
12502 | } | 12502 | } |
12503 | 12503 | ||
12504 | static int tg3_get_rxfh_indir(struct net_device *dev, u32 *indir) | 12504 | static int tg3_get_rxfh(struct net_device *dev, u32 *indir, u8 *key) |
12505 | { | 12505 | { |
12506 | struct tg3 *tp = netdev_priv(dev); | 12506 | struct tg3 *tp = netdev_priv(dev); |
12507 | int i; | 12507 | int i; |
@@ -12512,7 +12512,7 @@ static int tg3_get_rxfh_indir(struct net_device *dev, u32 *indir) | |||
12512 | return 0; | 12512 | return 0; |
12513 | } | 12513 | } |
12514 | 12514 | ||
12515 | static int tg3_set_rxfh_indir(struct net_device *dev, const u32 *indir) | 12515 | static int tg3_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *key) |
12516 | { | 12516 | { |
12517 | struct tg3 *tp = netdev_priv(dev); | 12517 | struct tg3 *tp = netdev_priv(dev); |
12518 | size_t i; | 12518 | size_t i; |
@@ -14044,8 +14044,8 @@ static const struct ethtool_ops tg3_ethtool_ops = { | |||
14044 | .get_sset_count = tg3_get_sset_count, | 14044 | .get_sset_count = tg3_get_sset_count, |
14045 | .get_rxnfc = tg3_get_rxnfc, | 14045 | .get_rxnfc = tg3_get_rxnfc, |
14046 | .get_rxfh_indir_size = tg3_get_rxfh_indir_size, | 14046 | .get_rxfh_indir_size = tg3_get_rxfh_indir_size, |
14047 | .get_rxfh_indir = tg3_get_rxfh_indir, | 14047 | .get_rxfh = tg3_get_rxfh, |
14048 | .set_rxfh_indir = tg3_set_rxfh_indir, | 14048 | .set_rxfh = tg3_set_rxfh, |
14049 | .get_channels = tg3_get_channels, | 14049 | .get_channels = tg3_get_channels, |
14050 | .set_channels = tg3_set_channels, | 14050 | .set_channels = tg3_set_channels, |
14051 | .get_ts_info = tg3_get_ts_info, | 14051 | .get_ts_info = tg3_get_ts_info, |