aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
diff options
context:
space:
mode:
authorDmitry Kravkov <dmitry@broadcom.com>2012-04-03 14:41:30 -0400
committerDavid S. Miller <davem@davemloft.net>2012-04-04 01:37:59 -0400
commit963052348fd33221d9ae4212d6cdaa2346e2678e (patch)
tree49981bc3cdd39b4024ed4b49c8e14d6c52c5e511 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
parentb475d78f464195cbdeeda0d80a2ffbd54653a4bd (diff)
bnx2x: change to the rss engine
This patch revises the way by which rss are configured, removing an unnecessary module paramater and unrequired modes. Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
index 93b5fc4dea66..3c7d0cc77e23 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
@@ -2393,10 +2393,7 @@ static int bnx2x_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info,
2393 2393
2394static u32 bnx2x_get_rxfh_indir_size(struct net_device *dev) 2394static u32 bnx2x_get_rxfh_indir_size(struct net_device *dev)
2395{ 2395{
2396 struct bnx2x *bp = netdev_priv(dev); 2396 return T_ETH_INDIRECTION_TABLE_SIZE;
2397
2398 return (bp->multi_mode == ETH_RSS_MODE_DISABLED ?
2399 0 : T_ETH_INDIRECTION_TABLE_SIZE);
2400} 2397}
2401 2398
2402static int bnx2x_get_rxfh_indir(struct net_device *dev, u32 *indir) 2399static int bnx2x_get_rxfh_indir(struct net_device *dev, u32 *indir)
@@ -2442,7 +2439,7 @@ static int bnx2x_set_rxfh_indir(struct net_device *dev, const u32 *indir)
2442 ind_table[i] = indir[i] + bp->fp->cl_id; 2439 ind_table[i] = indir[i] + bp->fp->cl_id;
2443 } 2440 }
2444 2441
2445 return bnx2x_config_rss_pf(bp, ind_table, false); 2442 return bnx2x_config_rss_eth(bp, ind_table, false);
2446} 2443}
2447 2444
2448static const struct ethtool_ops bnx2x_ethtool_ops = { 2445static const struct ethtool_ops bnx2x_ethtool_ops = {