net/mlx5e: Add MACsec offload Rx command support
authorLior Nahmanson <liorna@nvidia.com>
Tue, 6 Sep 2022 05:21:23 +0000 (22:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Sep 2022 13:02:08 +0000 (14:02 +0100)
commitaae3454e4d4cd78d143d6af1347b385796539fd8
tree1e2d710ec0e4fbbf3fd098cdb7966c9a84dd97fb
parent9515978eee0b933e37947637d138f1942b3e4b0c
net/mlx5e: Add MACsec offload Rx command support

Add a support for Connect-X MACsec offload Rx SA & SC commands:
add, update and delete.

SCs are created on demend and aren't limited by number and unique by SCI.
Each Rx SA must be associated with Rx SC according to SCI.

Follow-up patches will implement the Rx steering.

Signed-off-by: Lior Nahmanson <liorna@nvidia.com>
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c