kernel_samsung_a53x/drivers/net/ethernet/broadcom/bnxt
Saravanan Vajravel d2072c5543 bnxt_en: Reserve rings after PCIe AER recovery if NIC interface is down
[ Upstream commit 5311598f7f3293683cdc761df71ae3469327332c ]

After successful PCIe AER recovery, FW will reset all resource
reservations.  If it is IF_UP, the driver will call bnxt_open() and
all resources will be reserved again.  It it is IF_DOWN, we should
call bnxt_reserve_rings() so that we can reserve resources including
RoCE resources to allow RoCE to resume after AER.  Without this
patch, RoCE fails to resume in this IF_DOWN scenario.

Later, if it becomes IF_UP, bnxt_open() will see that resources have
been reserved and will not reserve again.

Fixes: fb1e6e562b37 ("bnxt_en: Fix AER recovery.")
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Saravanan Vajravel <saravanan.vajravel@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:16 +01:00
..
bnxt.c bnxt_en: Reserve rings after PCIe AER recovery if NIC interface is down 2024-12-17 13:24:16 +01:00
bnxt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_coredump.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_dcb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_dcb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_devlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_devlink.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_dim.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_ethtool.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_fw_hdr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_hsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_nvm_defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_sriov.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_sriov.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_tc.c net: bnxt: fix a potential use-after-free in bnxt_init_tc 2024-11-18 12:11:39 +01:00
bnxt_tc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_ulp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_ulp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_vfr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_vfr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_xdp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnxt_xdp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00