net/mlx5: IPSec: Fix incorrect type for spi
authorSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 May 2020 07:47:12 +0000 (00:47 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 30 May 2020 04:20:22 +0000 (21:20 -0700)
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>
include/linux/mlx5/accel.h

index b919d143a9a6e9e4e94854a67e8473c8dea9b042..96ebaa94a92e58261cf61f95a97b9ae017ebccee 100644 (file)
@@ -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;