]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: IPsec, Fix esp modify function attribute
authorRaed Salem <raeds@mellanox.com>
Tue, 24 Dec 2019 07:54:45 +0000 (09:54 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Feb 2020 20:24:22 +0000 (12:24 -0800)
commit27b7376889361bcc70c5a65c7249e808423ce251
tree818ac690b0804b42df7e449b6df2a43dcd1c0489
parentcabc4e68c4af7f6462352c12c860dfd47af2c12d
net/mlx5: IPsec, Fix esp modify function attribute

The function mlx5_fpga_esp_validate_xfrm_attrs is wrongly used
with negative negation as zero value indicates success but it
used as failure return value instead.

Fix by remove the unary not negation operator.

Fixes: 0583150d18d2 ("net/mlx5: Add flow-steering commands for FPGA IPSec implementation")
Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c