aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/mlx5_ifc_fpga.h
diff options
context:
space:
mode:
authorYossi Kuperman <yossiku@mellanox.com>2017-10-22 19:43:58 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2018-03-07 15:53:17 -0800
commit581fdddee420cebe2cb781cb3c84c82676a86949 (patch)
tree2276d85a576277db99f3728990300e364d947aa0 /include/linux/mlx5/mlx5_ifc_fpga.h
parentnet/mlx5: Use MLX5_IPSEC_DEV macro for ipsec caps (diff)
downloadlinux-dev-581fdddee420cebe2cb781cb3c84c82676a86949.tar.xz
linux-dev-581fdddee420cebe2cb781cb3c84c82676a86949.zip
net/mlx5: IPSec, Generalize sandbox QP commands
The current code assume only SA QP commands. Refactor in order to pave the way for new QP commands: 1. Generic cmd response format. 2. SA cmd checks are in dedicated functions. 3. Aligned debug prints. Signed-off-by: Yossi Kuperman <yossiku@mellanox.com> Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to '')
-rw-r--r--include/linux/mlx5/mlx5_ifc_fpga.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/mlx5/mlx5_ifc_fpga.h b/include/linux/mlx5/mlx5_ifc_fpga.h
index 255a88d08078..7283fe780f93 100644
--- a/include/linux/mlx5/mlx5_ifc_fpga.h
+++ b/include/linux/mlx5/mlx5_ifc_fpga.h
@@ -429,4 +429,20 @@ struct mlx5_ifc_ipsec_counters_bits {
u8 dropped_cmd[0x40];
};
+enum mlx5_ifc_fpga_ipsec_response_syndrome {
+ MLX5_FPGA_IPSEC_RESPONSE_SUCCESS = 0,
+ MLX5_FPGA_IPSEC_RESPONSE_ILLEGAL_REQUEST = 1,
+ MLX5_FPGA_IPSEC_RESPONSE_SADB_ISSUE = 2,
+ MLX5_FPGA_IPSEC_RESPONSE_WRITE_RESPONSE_ISSUE = 3,
+};
+
+struct mlx5_ifc_fpga_ipsec_cmd_resp {
+ __be32 syndrome;
+ union {
+ __be32 sw_sa_handle;
+ __be32 flags;
+ };
+ u8 reserved[24];
+} __packed;
+
#endif /* MLX5_IFC_FPGA_H */