tg3: Make the RSS indir tbl admin configurable
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 16 Dec 2011 13:33:23 +0000 (13:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Dec 2011 20:50:52 +0000 (15:50 -0500)
commit90415477bf1356f72acc34063ff52441fc10a754
tree5ea23ba1f29037701129d7653475f7d984fe6bcd
parentc2c20ef43d00b1439631e603f8dcee9a803cd8b3
tg3: Make the RSS indir tbl admin configurable

This patch adds the ethtool callbacks necessary to change the rss
indirection table from userspace.  Should the number of interrupts
change (e.g.  across a close / open call, or through a reset) and
any one of the indirection table values fall out-of-range, the driver
will reset the indirection table to a default layout.

[Integrated many suggestions made by Ben Hutchings.]

Changes since v3

* Removed TG3_FLAG_SUPPORT_MSIX checks at the start of
  tg3_get_rxfh_indir() and tg3_set_rxfh_indir().

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c