numam-dpdk/drivers/net/mlx4
Adrien Mazarguil 078b8b452e net/mlx4: add RSS flow rule action support
This patch dissociates single-queue indirection tables and hash QP objects
from Rx queue structures to relinquish their control to users through the
RSS flow rule action, while simultaneously allowing multiple queues to be
associated with RSS contexts.

Flow rules share identical RSS contexts (hashed fields, hash key, target
queues) to save on memory and other resources. The trade-off is some added
complexity due to reference counters management on RSS contexts.

The QUEUE action is re-implemented on top of an automatically-generated
single-queue RSS context.

The following hardware limitations apply to RSS contexts:

- The number of queues in a group must be a power of two.
- Queue indices must be consecutive, for instance the [0 1 2 3] set is
  allowed, however [3 2 1 0], [0 2 1 3] and [0 0 1 1 2 3 3 3] are not.
- The first queue of a group must be aligned to a multiple of the context
  size, e.g. if queues [0 1 2 3 4] are defined globally, allowed group
  combinations are [0 1] and [2 3]; groups [1 2] and [3 4] are not
  supported.
- RSS hash key, while configurable per context, must be exactly 40 bytes
  long.
- The only supported hash algorithm is Toeplitz.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
2017-10-13 01:18:48 +01:00
..
Makefile net/mlx4: add RSS flow rule action support 2017-10-13 01:18:48 +01:00
mlx4_ethdev.c net/mlx4: add RSS flow rule action support 2017-10-13 01:18:48 +01:00
mlx4_flow.c net/mlx4: add RSS flow rule action support 2017-10-13 01:18:48 +01:00
mlx4_flow.h net/mlx4: add RSS flow rule action support 2017-10-13 01:18:48 +01:00
mlx4_intr.c net/mlx4: merge interrupt collector function 2017-10-06 02:49:48 +02:00
mlx4_mr.c net/mlx4: separate memory management functions 2017-10-06 02:49:48 +02:00
mlx4_rxq.c net/mlx4: add RSS flow rule action support 2017-10-13 01:18:48 +01:00
mlx4_rxtx.c net/mlx4: convert Rx path to work queues 2017-10-13 01:18:48 +01:00
mlx4_rxtx.h net/mlx4: add RSS flow rule action support 2017-10-13 01:18:48 +01:00
mlx4_txq.c net/mlx4: allocate queues and mbuf rings together 2017-10-13 01:18:48 +01:00
mlx4_utils.c net/mlx4: add iovec-like allocation wrappers 2017-10-13 01:18:48 +01:00
mlx4_utils.h net/mlx4: add iovec-like allocation wrappers 2017-10-13 01:18:48 +01:00
mlx4.c net/mlx4: add RSS flow rule action support 2017-10-13 01:18:48 +01:00
mlx4.h net/mlx4: add RSS flow rule action support 2017-10-13 01:18:48 +01:00
rte_pmd_mlx4_version.map mlx4: move to drivers/net/ 2015-05-22 16:06:22 +02:00