net/mlx4: Strengthen VLAN tags/priorities enforcement in VST mode
authorRony Efraim <ronye@mellanox.com>
Wed, 8 May 2013 22:22:35 +0000 (22:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 May 2013 23:12:44 +0000 (16:12 -0700)
commit7677fc965fba41d1386fa3b76a1f00303f02bb2d
tree1324b8af989563dea62f9bc7f952c411f8d8a2dd
parent4e8cf5b8a1da8dbe1ece5f084b99f5c902ea709b
net/mlx4: Strengthen VLAN tags/priorities enforcement in VST mode

Make sure that the following steps are taken:

- drop packets sent by the VF with vlan tag
- block packets with vlan tag which are steered to the VF
- drop/block tagged packets when the policy is priority-tagged
- make sure VLAN stripping for received packets is set
- make sure force UP bit for the VF QP is set

Use enum values for all the above instead of numerical bit offsets.

Signed-off-by: Rony Efraim <ronye@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_resources.c
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
include/linux/mlx4/qp.h