diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-12-15 08:56:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-16 13:53:18 -0500 |
commit | 278bc4296bd64ffd1d3913b487dc8a520e423a7a (patch) | |
tree | 87781870cf9b96398a90fae6ebe1dae6d43d9ea4 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |
parent | 7850f63f1620512631445b901ae11cd149e7375c (diff) |
ethtool: Define and apply a default policy for RX flow hash indirection
All drivers that support modification of the RX flow hash indirection
table initialise it in the same way: RX rings are assigned to table
entries in rotation. Make that default policy explicit by having them
call a ethtool_rxfh_indir_default() function.
In the ethtool core, add support for a zero size value for
ETHTOOL_SRXFHINDIR, which resets the table to this default.
Partly-suggested-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 8ffd55bdef3d..fccbe490c7f0 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |||
@@ -3449,7 +3449,7 @@ static int __devinit init_rss(struct adapter *adap) | |||
3449 | if (!pi->rss) | 3449 | if (!pi->rss) |
3450 | return -ENOMEM; | 3450 | return -ENOMEM; |
3451 | for (j = 0; j < pi->rss_size; j++) | 3451 | for (j = 0; j < pi->rss_size; j++) |
3452 | pi->rss[j] = j % pi->nqsets; | 3452 | pi->rss[j] = ethtool_rxfh_indir_default(j, pi->nqsets); |
3453 | } | 3453 | } |
3454 | return 0; | 3454 | return 0; |
3455 | } | 3455 | } |