mlx4_core: Add VLAN tag field to WQE control segment struct

Add fields for VLAN tag and insert VLAN tag flag to the control
section struct. These fields will be used for sending ethernet
packets.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

authored by

Yevgeny Petrilin and committed by
Roland Dreier
25c94d01 fb2e405f

+3 -1
+3 -1
include/linux/mlx4/qp.h
··· 164 164 MLX4_WQE_CTRL_SOLICITED = 1 << 1, 165 165 MLX4_WQE_CTRL_IP_CSUM = 1 << 4, 166 166 MLX4_WQE_CTRL_TCP_UDP_CSUM = 1 << 5, 167 + MLX4_WQE_CTRL_INS_VLAN = 1 << 6, 167 168 }; 168 169 169 170 struct mlx4_wqe_ctrl_seg { 170 171 __be32 owner_opcode; 171 - u8 reserved2[3]; 172 + __be16 vlan_tag; 173 + u8 ins_vlan; 172 174 u8 fence_size; 173 175 /* 174 176 * High 24 bits are SRC remote buffer; low 8 bits are flags: