diff options
author | Brenden Blanco <bblanco@plumgrid.com> | 2016-07-19 12:16:54 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-19 21:46:33 -0700 |
commit | 224e92e02a769b8028ca2450443586af8b4f1715 (patch) | |
tree | ce194a7d8fad10dfb1edf32036b2cbe585665559 /include/linux/mlx4 | |
parent | 6ce96ca348a9e949f8c43f4d3e98db367d93cffd (diff) | |
download | linux-224e92e02a769b8028ca2450443586af8b4f1715.tar.gz linux-224e92e02a769b8028ca2450443586af8b4f1715.tar.bz2 linux-224e92e02a769b8028ca2450443586af8b4f1715.zip |
net/mlx4_en: break out tx_desc write into separate function
In preparation for writing the tx descriptor from multiple functions,
create a helper for both normal and blueflame access.
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/qp.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h index 587cdf943b52..deaa2217214d 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h @@ -291,16 +291,18 @@ enum { MLX4_WQE_CTRL_FORCE_LOOPBACK = 1 << 0, }; +union mlx4_wqe_qpn_vlan { + struct { + __be16 vlan_tag; + u8 ins_vlan; + u8 fence_size; + }; + __be32 bf_qpn; +}; + struct mlx4_wqe_ctrl_seg { __be32 owner_opcode; - union { - struct { - __be16 vlan_tag; - u8 ins_vlan; - u8 fence_size; - }; - __be32 bf_qpn; - }; + union mlx4_wqe_qpn_vlan qpn_vlan; /* * High 24 bits are SRC remote buffer; low 8 bits are flags: * [7] SO (strong ordering) |