]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: support ethtool rxhash disable
authorShannon Nelson <snelson@pensando.io>
Sat, 7 Mar 2020 01:04:05 +0000 (17:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 02:34:04 +0000 (19:34 -0700)
commitb7162b7978d2a5aa243232faf2f4b43637ffd1cc
tree030c19a54dc209989995cd750ee7a29a10ee0f68
parentca102fc3153fe7c83680aebd487bb77d905532c2
ionic: support ethtool rxhash disable

We can disable rxhashing by setting rss_types to 0.  The user
can toggle this with "ethtool -K <ethX> rxhash off|on",
which calls into the .ndo_set_features callback with the
NETIF_F_RXHASH feature bit set or cleared.  This patch adds
a check for that bit and updates the FW if necessary.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c