]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Handle Ethernet L2 parameters for IP based GID addressing
authorMoni Shoua <monis@mellanox.com>
Thu, 12 Dec 2013 16:03:14 +0000 (18:03 +0200)
committerRoland Dreier <roland@purestorage.com>
Sat, 18 Jan 2014 22:12:53 +0000 (14:12 -0800)
commit9265438b806037861759ccc5e8d207a1ac436062
tree2c14a33b5fcabd51e41335884896b5209db29de2
parent2a9582c00da7e37190b496cf89f38d45aa923d18
IB/mlx4: Handle Ethernet L2 parameters for IP based GID addressing

IP based RoCE gids don't store Ethernet L2 parameters, MAC and VLAN.

Therefore, we need to extract them from the CQE and place them in
struct ib_wc (to be used for cases were they were taken from the gid).

Also, when modifying a QP or building address handle, instead of
parsing the dgid to get the MAC and VLAN, take them from the address
handle attributes.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/ah.c
drivers/infiniband/hw/mlx4/cq.c
drivers/infiniband/hw/mlx4/mlx4_ib.h
drivers/infiniband/hw/mlx4/qp.c
drivers/net/ethernet/mellanox/mlx4/port.c
include/linux/mlx4/cq.h