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>
This commit is contained in:
@@ -12501,7 +12501,7 @@ static u32 tg3_get_rxfh_indir_size(struct net_device *dev)
|
||||
return size;
|
||||
}
|
||||
|
||||
static int tg3_get_rxfh_indir(struct net_device *dev, u32 *indir)
|
||||
static int tg3_get_rxfh(struct net_device *dev, u32 *indir, u8 *key)
|
||||
{
|
||||
struct tg3 *tp = netdev_priv(dev);
|
||||
int i;
|
||||
@@ -12512,7 +12512,7 @@ static int tg3_get_rxfh_indir(struct net_device *dev, u32 *indir)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int tg3_set_rxfh_indir(struct net_device *dev, const u32 *indir)
|
||||
static int tg3_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *key)
|
||||
{
|
||||
struct tg3 *tp = netdev_priv(dev);
|
||||
size_t i;
|
||||
@@ -14044,8 +14044,8 @@ static const struct ethtool_ops tg3_ethtool_ops = {
|
||||
.get_sset_count = tg3_get_sset_count,
|
||||
.get_rxnfc = tg3_get_rxnfc,
|
||||
.get_rxfh_indir_size = tg3_get_rxfh_indir_size,
|
||||
.get_rxfh_indir = tg3_get_rxfh_indir,
|
||||
.set_rxfh_indir = tg3_set_rxfh_indir,
|
||||
.get_rxfh = tg3_get_rxfh,
|
||||
.set_rxfh = tg3_set_rxfh,
|
||||
.get_channels = tg3_get_channels,
|
||||
.set_channels = tg3_set_channels,
|
||||
.get_ts_info = tg3_get_ts_info,
|
||||
|
||||
Reference in New Issue
Block a user