History

net/mlx5: Remove useless validity check

All callers build xfrm attributes with help of mlx5e_ipsec_build_accel_xfrm_attrs() function that ensure validity of attributes. There is no need to recheck them again.

Leon Romanovsky committed 4 years ago

Commit 2ea36e21 parent c674df92 files · +0 −54Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/mlx5/accel.h+0−10
@@ -36,10 +36,6 @@ · 35 unmodified lines
3636
3737 #include <linux/mlx5/driver.h>
3838
39−enum mlx5_accel_esp_aes_gcm_keymat_iv_algo {
40− MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ,
41−};
42−
4339 enum mlx5_accel_esp_flags {
4440 MLX5_ACCEL_ESP_FLAGS_TUNNEL = 0, /* Default */
4541 MLX5_ACCEL_ESP_FLAGS_TRANSPORT = 1UL << 0,
@@ -57,14 +53,9 @@ enum mlx5_accel_esp_keymats { · 11 unmodified lines
5753 MLX5_ACCEL_ESP_KEYMAT_AES_GCM,
5854 };
5955
60−enum mlx5_accel_esp_replay {
61− MLX5_ACCEL_ESP_REPLAY_NONE,
62− MLX5_ACCEL_ESP_REPLAY_BMP,
63−};
6456
6557 struct aes_gcm_keymat {
6658 u64 seq_iv;
67− enum mlx5_accel_esp_aes_gcm_keymat_iv_algo iv_algo;
6859
6960 u32 salt;
7061 u32 icv_len;
@@ -81,7 +72,6 @@ struct mlx5_accel_esp_xfrm_attrs { · 10 unmodified lines
8172 u32 tfc_pad;
8273 u32 flags;
8374 u32 sa_handle;
84− enum mlx5_accel_esp_replay replay_type;
8575 union {
8676 struct {
8777 u32 size;