bnxt_en: Set default completion ring for async events.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 29 Dec 2016 17:13:42 +0000 (12:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:39:12 +0000 (08:39 +0000)
commit36b5ff248ad7ab7cfabbbe40b2c18867f2769762
tree4204f91726d818f6598ebf7104c4ccaa5c14b975
parent12ad98540eee7ce3a82bdf44d95126c1078e5049
bnxt_en: Set default completion ring for async events.

[ Upstream commit 486b5c22ea1d35e00e90dd79a32a9ee530b18915 ]

With the added support for the bnxt_re RDMA driver, both drivers can be
allocating completion rings in any order.  The firmware does not know
which completion ring should be receiving async events.  Add an
extra step to tell firmware the completion ring number for receiving
async events after bnxt_en allocates the completion rings.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c