]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ethtool: Define and apply a default policy for RX flow hash indirection
authorJoe Jin <joe.jin@oracle.com>
Mon, 27 Aug 2012 12:54:45 +0000 (20:54 +0800)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:21:28 +0000 (15:21 +0800)
commit6bd5798cc0e8f63b46cf798212a2ea103dbdc82b
tree730d750c714809d56fa6840e94b1a23ad348d9bb
parentf1d8afeebc3694ebc9b7b141591c63940fc3abc4
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.

(backported from upstream commit 278bc4296bd64ffd1d3913b487dc8a520e423a7a)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_cmn.c
drivers/net/cxgb4/cxgb4_main.c
drivers/net/sfc/efx.c
drivers/net/vmxnet3/vmxnet3_drv.c
include/linux/ethtool.h
net/core/ethtool.c