]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 17 Feb 2020 11:07:06 +0000 (12:07 +0100)
commit11b31a115f213f36c7f1de3ad67199ac66ea916b
treec8456a23b96e2eb2e2c06a45ed01d0d66f8b7954
parent919be45bf7a3f8e2937a307f39ef458a76e129f3
net/mlx5: IPsec, Fix esp modify function attribute

BugLink: https://bugs.launchpad.net/bugs/1863588
[ Upstream commit 0dc2c534f17c05bed0622b37a744bc38b48ca88a ]

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: 05564d0ae075 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c