]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix firmware signaled resource change logic in open.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 3 Sep 2018 08:23:17 +0000 (04:23 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 04:59:43 +0000 (21:59 -0700)
commit6030451bc930a54b020213bb9215bbed16a61435
treef611593d3601b19db55be96642d5c6fc6eaea632
parentd88f8ad822c3350da3a01cb0883b379b894e0c56
bnxt_en: Fix firmware signaled resource change logic in open.

When the driver detects that resources have changed during open, it
should reset the rx and tx rings to 0.  This will properly setup the
init sequence to initialize the default rings again.  We also need
to signal the RDMA driver to stop and clear its interrupts.  We then
call the RoCE driver to restart if a new set of default rings is
successfully reserved.

Fixes: 2546c32ae38a ("bnxt_en: Notify firmware about IF state changes.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c