aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2020-05-29 00:47:12 -0700
committerSaeed Mahameed <saeedm@mellanox.com>2020-05-29 21:20:22 -0700
commit44345c4c130ee3df9b9fbc366d59ab3ac707d7f8 (patch)
treea228fdc2122f41ad02e752e7f8a6198a4ace04f4
parentnet/mlx5: Accel: fpga tls fix cast to __be64 and incorrect argument types (diff)
downloadwireguard-linux-44345c4c130ee3df9b9fbc366d59ab3ac707d7f8.tar.xz
wireguard-linux-44345c4c130ee3df9b9fbc366d59ab3ac707d7f8.zip
net/mlx5: IPSec: Fix incorrect type for spi
spi is __be32, fix that. Fixes sparse warning: drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.c:74:64 warning: incorrect type Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r--include/linux/mlx5/accel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx5/accel.h b/include/linux/mlx5/accel.h
index b919d143a9a6..96ebaa94a92e 100644
--- a/include/linux/mlx5/accel.h
+++ b/include/linux/mlx5/accel.h
@@ -76,7 +76,7 @@ struct aes_gcm_keymat {
struct mlx5_accel_esp_xfrm_attrs {
enum mlx5_accel_esp_action action;
u32 esn;
- u32 spi;
+ __be32 spi;
u32 seq;
u32 tfc_pad;
u32 flags;