]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: replace function pointer get_netdev()
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Wed, 11 Oct 2017 11:47:22 +0000 (13:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Oct 2017 19:20:26 +0000 (12:20 -0700)
commit8c46115394cd6e61fd45efdf07208f617460ec13
tree388381ec28f5080ac96dff1e03f904c4108fd50e
parent27264c3f2f4fe7f5438bacce6ba8473a60e71430
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: Ursula Braun <ubraun@linux.vnet.ibm.com>
Suggested-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_ib.c