]> asedeno.scripts.mit.edu Git - linux.git/commit
net/smc: Use rdma_read_gid_l2_fields to L2 fields
authorParav Pandit <parav@mellanox.com>
Thu, 2 May 2019 07:48:06 +0000 (10:48 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 May 2019 14:10:03 +0000 (11:10 -0300)
commit5102eca9039ba1df6d2e8756b0c030676021f56b
tree6f85606e632f682eba10f43d13160a1c36601f09
parentdab2175800ef0b45d5e70a7337bd6cb311292ebe
net/smc: Use rdma_read_gid_l2_fields to L2 fields

Use core provided API to fill the source MAC address and use
rdma_read_gid_attr_ndev_rcu() to get stable netdev.

This is preparation patch to allow gid attribute to become NULL when
associated net device is removed.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
net/smc/smc_ib.c