diff options
author | Raed Salem <raeds@nvidia.com> | 2022-10-27 15:47:17 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-11-24 00:03:21 -0800 |
commit | 813115c4669d74cdf6fc253c5a1768d1202073c3 (patch) | |
tree | 30ae4be085b7393e1608d9811d3b36933ba6e922 /drivers/pcmcia/sa1100_h3600.c | |
parent | 406e6db7fcaf2a47f6ac8bef47057305c6bc8b0e (diff) | |
download | linux-813115c4669d74cdf6fc253c5a1768d1202073c3.tar.gz |
net/mlx5e: MACsec, fix RX data path 16 RX security channel limit
Currently the data path metadata flow id mask wrongly limits the
number of different RX security channels (SC) to 16, whereas in
adding RX SC the limit is "2^16 - 1" this cause an overlap in
metadata flow id once more than 16 RX SCs is added, this corrupts
MACsec RX offloaded flow handling.
Fix by using the correct mask, while at it improve code to use this
mask when adding the Rx rule and improve visibility of such errors
by adding debug massage.
Fixes: b7c9400cbc48 ("net/mlx5e: Implement MACsec Rx data path using MACsec skb_metadata_dst")
Signed-off-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Emeel Hakim <ehakim@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/pcmcia/sa1100_h3600.c')
0 files changed, 0 insertions, 0 deletions