aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/mlx5_ifc.h
diff options
context:
space:
mode:
authorMark Bloch <markb@mellanox.com>2018-08-28 14:18:45 +0300
committerLeon Romanovsky <leonro@mellanox.com>2018-09-05 08:10:51 +0300
commite0e7a3861b6c6b673dc93e291ef11cf5e746b0c2 (patch)
treeec9dc842e53358bc4eec2e2dee7eadb589950fae /include/linux/mlx5/mlx5_ifc.h
parentnet/mlx5: Break encap/decap into two separated flow table creation flags (diff)
downloadlinux-dev-e0e7a3861b6c6b673dc93e291ef11cf5e746b0c2.tar.xz
linux-dev-e0e7a3861b6c6b673dc93e291ef11cf5e746b0c2.zip
net/mlx5: Move header encap type to IFC header file
Those bits are hardware specification and should be defined in the IFC header file. Signed-off-by: Mark Bloch <markb@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Reviewed-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to '')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index f043d65b9bac..bd725e0924e5 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -4848,6 +4848,11 @@ struct mlx5_ifc_alloc_encap_header_out_bits {
u8 reserved_at_60[0x20];
};
+enum {
+ MLX5_HEADER_TYPE_VXLAN = 0x0,
+ MLX5_HEADER_TYPE_NVGRE = 0x1,
+};
+
struct mlx5_ifc_alloc_encap_header_in_bits {
u8 opcode[0x10];
u8 reserved_at_10[0x10];