OSDN Git Service

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)
commit6b95c3e9697254dab0c8eafc6ab9d5e10d2eca4e
treef611593d3601b19db55be96642d5c6fc6eaea632
parent6570aa1d1039fc389cdcbeb8c6e1d1f370f113f4
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: 25e1acd6b92b ("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