net/mlx5: support ESP SPI match and RSS hash
authorRaja Zidane <rzidane@nvidia.com>
Thu, 12 May 2022 09:17:11 +0000 (12:17 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Sun, 15 May 2022 07:38:59 +0000 (09:38 +0200)
commit18ca4a4ec73a2e28df45a10543b7cdd45f2801dd
tree2e88e0e2fc8f69ffd39938fc0d294047c482ed67
parentfc7211097d41957bd6e29d64fd42ce679b4147b8
net/mlx5: support ESP SPI match and RSS hash

In packets with ESP header, the inner IP will be encrypted, and
its fields cannot be used for RSS hashing. So, ESP packets
can be hashed only by the outer IP layer.
So, when using RSS on ESP packets, hashing may not be efficient,
because the fields used by the hash functions are only the outer IPs,
causing all traffic belonging to all tunnels between a given
pair of GWs to land on one core.
Adding the SPI hash field can extend the spreading of IPsec packets.

Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
doc/guides/nics/features/mlx5.ini
doc/guides/nics/mlx5.rst
doc/guides/rel_notes/release_22_07.rst
drivers/common/mlx5/linux/meson.build
drivers/common/mlx5/mlx5_prm.h
drivers/net/mlx5/mlx5_defs.h
drivers/net/mlx5/mlx5_devx.c
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c