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
36 36
37#include <linux/mlx5/driver.h>37#include <linux/mlx5/driver.h>
38 38
39enum mlx5_accel_esp_aes_gcm_keymat_iv_algo {
40 MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ,
41};
42
43enum mlx5_accel_esp_flags {39enum mlx5_accel_esp_flags {
44 MLX5_ACCEL_ESP_FLAGS_TUNNEL = 0, /* Default */40 MLX5_ACCEL_ESP_FLAGS_TUNNEL = 0, /* Default */
45 MLX5_ACCEL_ESP_FLAGS_TRANSPORT = 1UL << 0,41 MLX5_ACCEL_ESP_FLAGS_TRANSPORT = 1UL << 0,
@@ -57,14 +53,9 @@ enum mlx5_accel_esp_keymats { · 11 unmodified lines
57 MLX5_ACCEL_ESP_KEYMAT_AES_GCM,53 MLX5_ACCEL_ESP_KEYMAT_AES_GCM,
58};54};
59 55
60enum mlx5_accel_esp_replay {
61 MLX5_ACCEL_ESP_REPLAY_NONE,
62 MLX5_ACCEL_ESP_REPLAY_BMP,
63};
64 56
65struct aes_gcm_keymat {57struct aes_gcm_keymat {
66 u64 seq_iv;58 u64 seq_iv;
67 enum mlx5_accel_esp_aes_gcm_keymat_iv_algo iv_algo;
68 59
69 u32 salt;60 u32 salt;
70 u32 icv_len;61 u32 icv_len;
@@ -81,7 +72,6 @@ struct mlx5_accel_esp_xfrm_attrs { · 10 unmodified lines
81 u32 tfc_pad;72 u32 tfc_pad;
82 u32 flags;73 u32 flags;
83 u32 sa_handle;74 u32 sa_handle;
84 enum mlx5_accel_esp_replay replay_type;
85 union {75 union {
86 struct {76 struct {
87 u32 size;77 u32 size;