]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/infiniband/hw/mlx4/main.c
IB/mlx4: Add VLAN support for IBoE
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 26 Aug 2010 14:19:22 +0000 (17:19 +0300)
committerRoland Dreier <rolandd@cisco.com>
Mon, 25 Oct 2010 17:20:39 +0000 (10:20 -0700)
commit4c3eb3ca13966508bcb64f39dcdef48be22f1731
tree67fde746d256e38421c682501974868971507680
parentaf7bd463761c6abd8ca8d831f9cc0ac19f3b7d4b
IB/mlx4: Add VLAN support for IBoE

This patch allows IBoE traffic to be encapsulated in 802.1Q tagged
VLAN frames.  The VLAN tag is encoded in the GID and derived from it
by a simple computation.

The netdev notifier callback is modified to catch VLAN device
addition/removal and the port's GID table is updated to reflect the
change, so that for each netdevice there is an entry in the GID table.
When the port's GID table is exhausted, GID entries will not be added.
Only children of the main interfaces can add to the GID table; if a
VLAN interface is added on another VLAN interface (e.g. "vconfig add
eth2.6 8"), then that interfaces will not add an entry to the GID
table.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/ah.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/qp.c
drivers/net/mlx4/en_netdev.c
drivers/net/mlx4/mlx4_en.h
drivers/net/mlx4/port.c
include/linux/mlx4/device.h
include/linux/mlx4/qp.h