OSDN Git Service

octeontx2-pf: Support to change VLAN based RSS hash options via ethtool
authorGeorge Cherian <george.cherian@marvell.com>
Tue, 22 Sep 2020 13:07:27 +0000 (18:37 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Sep 2020 00:45:23 +0000 (17:45 -0700)
commita55ff8ef5a6bde5d2cf236ac07c3b6e3a437d421
treeaa55e6bfc573ba828855033de5c648dfee2d4df7
parent8f900363df52311cab72869668905b19d1888ef5
octeontx2-pf: Support to change VLAN based RSS hash options via ethtool

Add support to control rx-flow-hash based on VLAN.
By default VLAN plus 4-tuple based hashing is enabled.
Changes can be done runtime using ethtool

To enable 2-tuple plus VLAN based flow distribution
  # ethtool -N <intf> rx-flow-hash <prot> sdv
To enable 4-tuple plus VLAN based flow distribution
  # ethtool -N <intf> rx-flow-hash <prot> sdfnv

Signed-off-by: George Cherian <george.cherian@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c