]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5e: Allow IPsec soft/hard limits in bytes
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 12 Oct 2023 19:27:50 +0000 (12:27 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 14 Oct 2023 17:16:33 +0000 (10:16 -0700)
commit627aa13921c316ac5385237c673ee54612530d94
tree86bd563362a3d24bab3b78dbbe47f88e9c73ec2b
parent6dd6eaf43e8d22f61c7a5cee3c9fb46118c97175
net/mlx5e: Allow IPsec soft/hard limits in bytes

Actually the mlx5 code already has needed support to allow users
to configure soft/hard limits in bytes. It is possible due to the
situation with TX path, where CX7 devices are missing hardware
implementation to send events to the software, see commit b2f7b01d36a9
("net/mlx5e: Simulate missing IPsec TX limits hardware functionality").

That software workaround is not limited to TX and works for bytes too.
So relax the validation logic to not block soft/hard limits in bytes.

Reviewed-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c