]> 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)
commitaffa6ee140de9f4f918ad9509016d80fb2e0230d
tree932ce722d8df92be7ab59057407d870019242d32
parent3e5b6b7846935371d3e3262a4c241a4474e01cb9
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