Commit 2dc8b524 authored by Raed Salem's avatar Raed Salem Committed by Saeed Mahameed

net/mlx5: TX WQE Add trailer insertion field

Add new TX WQE field for Connect-X6DX trailer insertion support,
when set, the HW adds a trailer to the packet, the WQE trailer
association flags are used to set to HW the header which the
trailer belongs.
Signed-off-by: default avatarRaed Salem <raeds@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 0e1533bb
...@@ -229,6 +229,11 @@ enum { ...@@ -229,6 +229,11 @@ enum {
enum { enum {
MLX5_ETH_WQE_SVLAN = 1 << 0, MLX5_ETH_WQE_SVLAN = 1 << 0,
MLX5_ETH_WQE_TRAILER_HDR_OUTER_IP_ASSOC = 1 << 26,
MLX5_ETH_WQE_TRAILER_HDR_OUTER_L4_ASSOC = 1 << 27,
MLX5_ETH_WQE_TRAILER_HDR_INNER_IP_ASSOC = 3 << 26,
MLX5_ETH_WQE_TRAILER_HDR_INNER_L4_ASSOC = 1 << 28,
MLX5_ETH_WQE_INSERT_TRAILER = 1 << 30,
MLX5_ETH_WQE_INSERT_VLAN = 1 << 15, MLX5_ETH_WQE_INSERT_VLAN = 1 << 15,
}; };
...@@ -257,6 +262,7 @@ struct mlx5_wqe_eth_seg { ...@@ -257,6 +262,7 @@ struct mlx5_wqe_eth_seg {
__be16 type; __be16 type;
__be16 vlan_tci; __be16 vlan_tci;
} insert; } insert;
__be32 trailer;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment