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
5151 MLX5_CAP_IPSEC(mdev, ipsec_crypto_esp_aes_gcm_128_decrypt))
5252 caps |= MLX5_ACCEL_IPSEC_CAP_ESP;
5353
54− if (MLX5_CAP_IPSEC(mdev, ipsec_esn)) {
54+ if (MLX5_CAP_IPSEC(mdev, ipsec_esn))
5555 caps |= MLX5_ACCEL_IPSEC_CAP_ESN;
56− caps |= MLX5_ACCEL_IPSEC_CAP_TX_IV_IS_ESN;
57− }
5856
5957 /* We can accommodate up to 2^24 different IPsec objects
6058 * 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
113113
114114 enum mlx5_accel_ipsec_cap {
115115 MLX5_ACCEL_IPSEC_CAP_DEVICE = 1 << 0,
116− MLX5_ACCEL_IPSEC_CAP_REQUIRED_METADATA = 1 << 1,
117− MLX5_ACCEL_IPSEC_CAP_ESP = 1 << 2,
118− MLX5_ACCEL_IPSEC_CAP_IPV6 = 1 << 3,
119− MLX5_ACCEL_IPSEC_CAP_LSO = 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,
116+ MLX5_ACCEL_IPSEC_CAP_ESP = 1 << 1,
117+ MLX5_ACCEL_IPSEC_CAP_IPV6 = 1 << 2,
118+ MLX5_ACCEL_IPSEC_CAP_LSO = 1 << 3,
119+ MLX5_ACCEL_IPSEC_CAP_ESN = 1 << 4,
123120 };
124121
125122 #ifdef CONFIG_MLX5_EN_IPSEC