]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Free and allocate VF-Reps during error recovery.
authorSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Mon, 12 Apr 2021 00:18:15 +0000 (20:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Apr 2021 20:20:38 +0000 (13:20 -0700)
commit0a53cf80c6c65f60e7ae515572ced92748d64473
treeb47162e95068410dccc9df61d2ddc28d41144638
parent148aae968260b44658d2f4097a0b627b9fb587e6
bnxt_en: Free and allocate VF-Reps during error recovery.

During firmware recovery, VF-Rep configuration in the firmware is lost.
Fix it by freeing and (re)allocating VF-Reps in FW at relevant points
during the error recovery process.

Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
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
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h