IB/core: Remove smac and vlan id from path record
authorMatan Barak <matanb@mellanox.com>
Thu, 15 Oct 2015 15:38:54 +0000 (18:38 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 22 Oct 2015 03:48:18 +0000 (23:48 -0400)
commit10e07f13c06690488087f5d3f2c59a9728def339
treee5477affdbac4335d8e1bcf0cbba8a5b45b76e70
parentaa744cc01fe0f21dfbe2744d3fd5f2fb3244c9b3
IB/core: Remove smac and vlan id from path record

The GID cache accompanies every GID with attributes.
The GID attributes link the GID with its netdevice, which could be
resolved to smac and vlan id easily. Since we've added the netdevice
(ifindex and net) to the path record, storing the L2 attributes is
duplicated data and hence these attributes are removed.

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/cma.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/uverbs_marshall.c
include/rdma/ib_sa.h