]> 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)
commita30628766bf6598929a0b45379100d9b8c20eb6c
treef611593d3601b19db55be96642d5c6fc6eaea632
parent55b5726c3f0d246bb6c44016f44545274fe6282c
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: ea52bbe4b18b ("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