]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitac797ced1fd0faba285c460eb1f64d1296b9cfa4
treeb47162e95068410dccc9df61d2ddc28d41144638
parent90f4fd02968720bdeb38a16deeff96fa770206e4
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