]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Explicitly set no vlan tags in WQE ctrl segment when no vlan is present
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 27 Oct 2015 15:36:19 +0000 (17:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Oct 2015 03:27:09 +0000 (20:27 -0700)
commite755df9952eeadd0e8d81e0b64c0ca77cdef6112
tree030ae6e63221928815d8bdc87cd95e869c2782cc
parentfd5841a92035b62fe7951d48b149a9b9ccf44da1
net/mlx4_en: Explicitly set no vlan tags in WQE ctrl segment when no vlan is present

We do not set the ins_vlan field to zero when no vlan id is present in the packet.

Since WQEs in the TX ring are not zeroed out between uses, this oversight
could result in having vlan flags present in the WQE ctrl segment when no
vlan is preset.

Fixes: 2443542550c6 ('net/mlx4_en: Add support for hardware accelerated 802.1ad vlan')
Reported-by: Gideon Naim <gideonn@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c