History

net/mlx5: Remove not-implemented IPsec capabilities

Clean a capabilities enum to remove not-implemented bits.

Leon Romanovsky committed 4 years ago

Commit 29842871 parent f2b41b32 files · +5 −10Browse files

Unified · Split

2 files
  1. drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c +1 −3
  2. include/linux/mlx5/accel.h +4 −7
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c+1−3
@@ -51,10 +51,8 @@ u32 mlx5_ipsec_device_caps(struct mlx5_core_dev *mdev) · 50 unmodified lines
51 MLX5_CAP_IPSEC(mdev, ipsec_crypto_esp_aes_gcm_128_decrypt))51 MLX5_CAP_IPSEC(mdev, ipsec_crypto_esp_aes_gcm_128_decrypt))
52 caps |= MLX5_ACCEL_IPSEC_CAP_ESP;52 caps |= MLX5_ACCEL_IPSEC_CAP_ESP;
53 53
54 if (MLX5_CAP_IPSEC(mdev, ipsec_esn)) {54 if (MLX5_CAP_IPSEC(mdev, ipsec_esn))
55 caps |= MLX5_ACCEL_IPSEC_CAP_ESN;55 caps |= MLX5_ACCEL_IPSEC_CAP_ESN;
56 caps |= MLX5_ACCEL_IPSEC_CAP_TX_IV_IS_ESN;
57 }
58 56
59 /* We can accommodate up to 2^24 different IPsec objects57 /* We can accommodate up to 2^24 different IPsec objects
60 * because we use up to 24 bit in flow table metadata58 * because we use up to 24 bit in flow table metadata
include/linux/mlx5/accel.h+4−7
@@ -113,13 +113,10 @@ struct mlx5_accel_esp_xfrm { · 112 unmodified lines
113 113
114enum mlx5_accel_ipsec_cap {114enum mlx5_accel_ipsec_cap {
115 MLX5_ACCEL_IPSEC_CAP_DEVICE = 1 << 0,115 MLX5_ACCEL_IPSEC_CAP_DEVICE = 1 << 0,
116 MLX5_ACCEL_IPSEC_CAP_REQUIRED_METADATA = 1 << 1,116 MLX5_ACCEL_IPSEC_CAP_ESP = 1 << 1,
117 MLX5_ACCEL_IPSEC_CAP_ESP = 1 << 2,117 MLX5_ACCEL_IPSEC_CAP_IPV6 = 1 << 2,
118 MLX5_ACCEL_IPSEC_CAP_IPV6 = 1 << 3,118 MLX5_ACCEL_IPSEC_CAP_LSO = 1 << 3,
119 MLX5_ACCEL_IPSEC_CAP_LSO = 1 << 4,119 MLX5_ACCEL_IPSEC_CAP_ESN = 1 << 4,
120 MLX5_ACCEL_IPSEC_CAP_RX_NO_TRAILER = 1 << 5,
121 MLX5_ACCEL_IPSEC_CAP_ESN = 1 << 6,
122 MLX5_ACCEL_IPSEC_CAP_TX_IV_IS_ESN = 1 << 7,
123};120};
124 121
125#ifdef CONFIG_MLX5_EN_IPSEC122#ifdef CONFIG_MLX5_EN_IPSEC