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)
commit75fcb75b93aa23ca5b7c74e9b49f8a9df32233c2
tree030c19a54dc209989995cd750ee7a29a10ee0f68
parentc6d3d73a405555be8d64b3174a4b7b0f6b0b5a51
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