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>
Showing
- drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 2 additions, 1 deletiondrivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 1 addition, 1 deletiondrivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
- drivers/net/ethernet/sfc/efx.c 2 additions, 1 deletiondrivers/net/ethernet/sfc/efx.c
- drivers/net/vmxnet3/vmxnet3_drv.c 2 additions, 1 deletiondrivers/net/vmxnet3/vmxnet3_drv.c
- include/linux/ethtool.h 20 additions, 3 deletionsinclude/linux/ethtool.h
- net/core/ethtool.c 20 additions, 13 deletionsnet/core/ethtool.c
Loading
Please register or sign in to comment