]> 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)
commit2df00c836822ff4df729657a24b9e8481992d261
tree030ae6e63221928815d8bdc87cd95e869c2782cc
parent8bbe6dd13c94f63cb2b4424717e943832591039e
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: f64f9805a26d ('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