diff options
author | Matan Barak <matanb@mellanox.com> | 2015-10-15 18:38:54 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-10-22 06:48:18 +0300 |
commit | 10e07f13c06690488087f5d3f2c59a9728def339 (patch) | |
tree | e5477affdbac4335d8e1bcf0cbba8a5b45b76e70 /drivers/infiniband/core/cma.c | |
parent | aa744cc01fe0f21dfbe2744d3fd5f2fb3244c9b3 (diff) | |
download | linux-10e07f13c06690488087f5d3f2c59a9728def339.tar.xz |
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>
Diffstat (limited to 'drivers/infiniband/core/cma.c')
-rw-r--r-- | drivers/infiniband/core/cma.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 09ddff8cc2ac..be41784a62e4 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -2307,9 +2307,7 @@ static int cma_resolve_iboe_route(struct rdma_id_private *id_priv) goto err2; } - route->path_rec->vlan_id = rdma_vlan_dev_vlan_id(ndev); memcpy(route->path_rec->dmac, addr->dev_addr.dst_dev_addr, ETH_ALEN); - memcpy(route->path_rec->smac, ndev->dev_addr, ndev->addr_len); rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.src_addr, &route->path_rec->sgid); |