diff options
author | Hadar Hen Zion | 2015-07-27 13:46:33 +0200 |
---|---|---|
committer | David S. Miller | 2015-07-28 00:00:37 +0200 |
commit | e802f8e4c54e6adf4215ef9fa3d6eea8fcb10bf9 (patch) | |
tree | 78b652b4b48ef6e99111d0b6365ef3adbf5649ee /drivers/net/ethernet/mellanox/mlx4/en_tx.c | |
parent | net/mlx4_en: Prepare ethtool private flags to support more flags (diff) | |
download | kernel-qcow2-linux-e802f8e4c54e6adf4215ef9fa3d6eea8fcb10bf9.tar.gz kernel-qcow2-linux-e802f8e4c54e6adf4215ef9fa3d6eea8fcb10bf9.tar.xz kernel-qcow2-linux-e802f8e4c54e6adf4215ef9fa3d6eea8fcb10bf9.zip |
net/mlx4: Prepare VLAN macros for 802.1ad Hardware accelerated support
To add Hardware accelerated support in 802.1ad vlan, replace
Current VLAN macros to CVLAN.
Replace:
MLX4_WQE_CTRL_INS_VLAN
MLX4_CQE_VLAN_PRESENT_MASK
With:
MLX4_WQE_CTRL_INS_CVLAN
MLX4_CQE_CVLAN_PRESENT_MASK
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_tx.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_tx.c b/drivers/net/ethernet/mellanox/mlx4/en_tx.c index c10d98f6ad96..7c858f67ef28 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_tx.c @@ -958,7 +958,7 @@ netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev) ring->bf.offset ^= ring->bf.buf_size; } else { tx_desc->ctrl.vlan_tag = cpu_to_be16(vlan_tag); - tx_desc->ctrl.ins_vlan = MLX4_WQE_CTRL_INS_VLAN * + tx_desc->ctrl.ins_vlan = MLX4_WQE_CTRL_INS_CVLAN * !!skb_vlan_tag_present(skb); tx_desc->ctrl.fence_size = real_size; |