net/smc: increase device refcount for added link group
authorUrsula Braun <ubraun@linux.ibm.com>
Wed, 9 Oct 2019 08:07:45 +0000 (10:07 +0200)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 Oct 2019 02:45:44 +0000 (19:45 -0700)
commitb3cb53c05f20c5b4026a36a7bbd3010d1f3e0a55
tree20736356809171f81a0ba9b03b314730e1fa268e
parenta0a62ee15a829ebf8aeec55a4f1688230439b3e0
net/smc: increase device refcount for added link group

SMCD link groups belong to certain ISM-devices and SMCR link group
links belong to certain IB-devices. Increase the refcount for
these devices, as long as corresponding link groups exist.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
net/smc/smc_core.c