OSDN Git Service

net/mlx5: Add RoCE MACsec steering infrastructure in core
authorPatrisious Haddad <phaddad@nvidia.com>
Thu, 13 Apr 2023 09:04:42 +0000 (12:04 +0300)
committerLeon Romanovsky <leon@kernel.org>
Sun, 20 Aug 2023 09:35:24 +0000 (12:35 +0300)
commitac7ea1c78f0edb910af1c17a3fb01345944bcb39
treedf5dd266fe85a6da6df693be9b9476e2812b6bc3
parent8c14a2c7c96f1624ffb8406accd082b4aff36883
net/mlx5: Add RoCE MACsec steering infrastructure in core

Adds all the core steering helper functions that are needed in order
to setup RoCE steering rules which includes both the RX and TX rules
addition and deletion.
As well as exporting the function to be ready to use from the IB driver
where we expose functions to allow deletion of all rules, which is
needed when a GID is deleted, or a deletion of a specific rule when an SA
is deleted, and a similar manner for the rules addition.

These functions are used in a later patch by IB driver to trigger the
rules addition/deletion when needed.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/lib/macsec_fs.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h
include/linux/mlx5/macsec.h [new file with mode: 0644]