]> git.droids-corp.org - dpdk.git/commit
net/sfc: use adaptive table entry count in flow action RSS
authorIvan Malov <ivan.malov@oktetlabs.ru>
Tue, 1 Feb 2022 08:50:00 +0000 (11:50 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 2 Feb 2022 17:37:31 +0000 (18:37 +0100)
commitbe5cbe476b90eae641c4711c0655fe5bcef4a526
tree66fc9b0f5a871c06fec25c2e8aac894f14f7bf2a
parente7ea5f304f0f7f433b4d60b21db7beec225c2123
net/sfc: use adaptive table entry count in flow action RSS

Currently, every RSS context uses 128 indirection entries in
the hardware. That is not always optimal because the entries
come from a pool shared among all PCI functions of the board,
while the format of action RSS allows to pass less queue IDs.

With EF100 boards, it is possible to decide how many entries
to allocate for the indirection table of a context. Make use
of that in order to optimise resource usage in RSS scenarios.

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/net/sfc/sfc_flow_rss.c
drivers/net/sfc/sfc_flow_rss.h