]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Receive hashing HW offload support
authorSunil Goutham <sgoutham@cavium.com>
Sun, 30 Aug 2015 09:29:12 +0000 (12:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2015 04:54:12 +0000 (21:54 -0700)
commit0fa2270e430f421881a7e13015b31360f5b9c546
tree932ce722d8df92be7ab59057407d870019242d32
parentfb0d8dab8033e1a932430cf65468f2a39413d2f9
net: thunderx: Receive hashing HW offload support

Adding support for receive hashing HW offload by using RSS_ALG
and RSS_TAG fields of CQE_RX descriptor. Also removed dependency
on minimum receive queue count to configure RSS so that hash is
always generated.

This hash is used by RPS logic to distribute flows across multiple
CPUs. Offload can be disabled via ethtool.

Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
drivers/net/ethernet/cavium/thunder/nicvf_main.c