]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Make the RSS indir tbl admin configurable
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 16 Dec 2011 13:33:23 +0000 (13:33 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:21:28 +0000 (15:21 +0800)
commit3f3b8513c3681da0841bc8e4609f1c85dd6e2802
treefb2a4b0008dc57a9b450489b56290d8b89b2f0bd
parent6bd5798cc0e8f63b46cf798212a2ea103dbdc82b
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().

(cherry picked from commit 90415477bf1356f72acc34063ff52441fc10a754)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c