Skip to content
Commit d921c420 authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller
Browse files

net/smc: replace function pointer get_netdev()



SMC should not open code the function pointer get_netdev of the
IB device. Replacing ib_query_gid(..., NULL) with
ib_query_gid(..., gid_attr) allows access to the netdev.

Signed-off-by: default avatarUrsula Braun <ubraun@linux.vnet.ibm.com>
Suggested-by: default avatarParav Pandit <parav@mellanox.com>
Reviewed-by: default avatarParav Pandit <parav@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d71a756a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment