]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Preparations for 802.1ad VLAN support
authorHadar Hen Zion <hadarh@mellanox.com>
Mon, 27 Jul 2015 11:46:31 +0000 (14:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 22:00:36 +0000 (15:00 -0700)
commit6447cec02749a869a7192db34d24e0f23d04edb8
tree2f82cc8116136695d0301745223e22ea8ca7ae2b
parent1794302cf2bbb07942bba788b0b3a8c867629a44
net/mlx4_core: Preparations for 802.1ad VLAN support

mlx4_core preparation to support hardware accelerated 802.1ad VLAN
device.

To allow 802.1ad accelerated device, "packet has vlan" (phv)
Firmware capability should be available. Firmware without the
phv capability won't behave properly and can't support 802.1ad device
acceleration.

The driver checks the Firmware capability and sets the phv bit
accordingly in SET_PORT command.

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>
drivers/net/ethernet/mellanox/mlx4/fw.c
drivers/net/ethernet/mellanox/mlx4/fw.h
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
include/linux/mlx4/device.h