IB/core: Do not resolve VLAN if already resolved
authorMoni Shoua <monis@mellanox.com>
Wed, 19 Nov 2014 09:28:18 +0000 (11:28 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:10:12 +0000 (18:10 -0800)
commitc1bd6cde8efda081af9d4f1fa4105e114b9b5cf5
tree3374711c724285b21df1c912d8d63b8cbd2730c5
parent70e71ca0af244f48a5dcf56dc435243792e3a495
IB/core: Do not resolve VLAN if already resolved

For RoCE, resolution of layer 2 address attributes forces no VLAN if
link-local GIDs are used.  This patch allows applications to choose
the VLAN ID for link-local based RoCE GIDs by setting IB_QP_VID in
their QP attribute mask, and prevents the core from overriding this
choice.

Cc: Ursula Braun <ursula.braun@de.ibm.com>
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/core/verbs.c