aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEmeel Hakim <ehakim@nvidia.com>2022-10-31 11:07:59 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2022-11-24 00:03:22 -0800
commitc0071be0e16c461680d87b763ba1ee5e46548fde (patch)
tree7a956823a8053556e63512c3f2d1aaf556d0a48f /drivers
parent194cc051e29ea1641d424126b8f28f9d31d5c655 (diff)
downloadlinux-c0071be0e16c461680d87b763ba1ee5e46548fde.tar.gz
net/mlx5e: MACsec, remove replay window size limitation in offload path
Currently offload path limits replay window size to 32/64/128/256 bits, such a limitation should not exist since software allows it. Remove such limitation. Fixes: eb43846b43c3 ("net/mlx5e: Support MACsec offload replay window") Signed-off-by: Emeel Hakim <ehakim@nvidia.com> Reviewed-by: Raed Salem <raeds@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
index c19581f1f733..72f8be65fa90 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
@@ -229,22 +229,6 @@ static int macsec_set_replay_protection(struct mlx5_macsec_obj_attrs *attrs, voi
if (!attrs->replay_protect)
return 0;
- switch (attrs->replay_window) {
- case 256:
- window_sz = MLX5_MACSEC_ASO_REPLAY_WIN_256BIT;
- break;
- case 128:
- window_sz = MLX5_MACSEC_ASO_REPLAY_WIN_128BIT;
- break;
- case 64:
- window_sz = MLX5_MACSEC_ASO_REPLAY_WIN_64BIT;
- break;
- case 32:
- window_sz = MLX5_MACSEC_ASO_REPLAY_WIN_32BIT;
- break;
- default:
- return -EINVAL;
- }
MLX5_SET(macsec_aso, aso_ctx, window_size, window_sz);
MLX5_SET(macsec_aso, aso_ctx, mode, MLX5_MACSEC_ASO_REPLAY_PROTECTION);