bnxt_re: Implement the shutdown hook of the L2-RoCE driver interface
authorSomnath Kotur <somnath.kotur@broadcom.com>
Wed, 25 Oct 2017 03:42:30 +0000 (09:12 +0530)
committerDoug Ledford <dledford@redhat.com>
Wed, 25 Oct 2017 19:25:08 +0000 (15:25 -0400)
commit5455e73a76a397d77541bb5b0eedac137ef525b5
tree147c8f970cd6e8582312c5614d4dc20df45716dd
parent35fb2a88ed4b77356fa679a8525c869a3594e287
bnxt_re: Implement the shutdown hook of the L2-RoCE driver interface

When host is shutting down, it invokes the shutdown hook of the
L2 driver where it would attempt to free the MSI-X vectors, but would fail
because some vectors are held by the RoCE driver.
Implement the new hook in the L2 -> RoCE interface which will be invoked so that
the RoCE driver can unregister the device and free up the MSI-X vectors it had
claimed so that L2 can proceed with it's shutdown without failure.

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/main.c