]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/core: Add netdev to path record
authorMatan Barak <matanb@mellanox.com>
Thu, 15 Oct 2015 15:38:47 +0000 (18:38 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 22 Oct 2015 03:48:17 +0000 (23:48 -0400)
commitba36e37fd3ca3dc8f215b14bcfdccf9f41b65767
tree82da7f56ca3c414f27913a26c816449e8be9be7b
parentd300ec528b799ca87935b3667f5563f397f00f85
IB/core: Add netdev to path record

In order to find the sgid_index, one could just query the IB cache
with the correct GID and netdevice. Therefore, instead of storing
the L2 attributes directly in the path, we only store the
ifindex and net and use them later to get the sgid_index.
The vlan_id and smac L2 attributes are removed in a later patch.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-By: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/uverbs_marshall.c
include/rdma/ib_sa.h