mlx5: bpf_xdp_metadata_rx_hash add xdp rss hash type
authorJesper Dangaard Brouer <brouer@redhat.com>
Wed, 12 Apr 2023 19:48:45 +0000 (21:48 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 13 Apr 2023 18:15:10 +0000 (11:15 -0700)
commit67f245c2ec0af17d7a90c78910e28bc8b206297c
tree329122721793c547a8bccf69ac978d18ec2a70b0
parent0cd917a4a8ace70ff9082d797c899f6bf10de910
mlx5: bpf_xdp_metadata_rx_hash add xdp rss hash type

Update API for bpf_xdp_metadata_rx_hash() with arg for xdp rss hash type
via mapping table.

The mlx5 hardware can also identify and RSS hash IPSEC.  This indicate
hash includes SPI (Security Parameters Index) as part of IPSEC hash.

Extend xdp core enum xdp_rss_hash_type with IPSEC hash type.

Fixes: bc8d405b1ba9 ("net/mlx5e: Support RX XDP metadata")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/168132892548.340624.11185734579430124869.stgit@firesoul
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c
include/linux/mlx5/device.h
include/net/xdp.h