IB/core: Add VLAN support for IBoE
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 26 Aug 2010 14:18:59 +0000 (17:18 +0300)
committerRoland Dreier <rolandd@cisco.com>
Mon, 25 Oct 2010 17:20:39 +0000 (10:20 -0700)
commitaf7bd463761c6abd8ca8d831f9cc0ac19f3b7d4b
tree65d997130a892b0da260e308919ed67255a16f77
parentfa417f7b520ee60b39f7e23528d2030af30a07d1
IB/core: Add VLAN support for IBoE

Add 802.1q VLAN support to IBoE. The VLAN tag is encoded within the
GID derived from a link local address in the following way:

    GID[11] GID[12] contain the VLAN ID when the GID contains a VLAN.

The 3 bits user priority field of the packets are identical to the 3
bits of the SL.

In case of rdma_cm apps, the TOS field is used to generate the SL
field by doing a shift right of 5 bits effectively taking to 3 MS bits
of the TOS field.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cma.c
drivers/infiniband/core/ucma.c
drivers/infiniband/core/ud_header.c
drivers/infiniband/hw/mlx4/qp.c
drivers/infiniband/hw/mthca/mthca_qp.c
include/rdma/ib_addr.h
include/rdma/ib_pack.h