mbox series

[net-next,0/5] ionic: add FLR support

Message ID 20230712002025.24444-1-shannon.nelson@amd.com (mailing list archive)
Headers show
Series ionic: add FLR support | expand

Message

Nelson, Shannon July 12, 2023, 12:20 a.m. UTC
Add support for handing and recovering from a PCI FLR event.
This patchset first moves some code around to make it usable
in multiple paths, then adds the PCI error handler callbacks
for reset_prepare and reset_done.

Example test:
    echo 1 > /sys/bus/pci/devices/0000:2a:00.0/reset

Note: The first patch is cherry-picked from commit 3a7af34fb6e
      because it hasn't made it into net-next as of today and
      the remaining patches depend on this change.  This patch
      can be dropped from this series once net-next is updated.

Shannon Nelson (5):
  ionic: remove dead device fail path
  ionic: extract common bits from ionic_remove
  ionic: extract common bits from ionic_probe
  ionic: pull out common bits from fw_up
  ionic: add FLR recovery support

 .../ethernet/pensando/ionic/ionic_bus_pci.c   | 172 ++++++++++++------
 .../net/ethernet/pensando/ionic/ionic_lif.c   |  72 +++++---
 .../net/ethernet/pensando/ionic/ionic_lif.h   |   5 +
 3 files changed, 170 insertions(+), 79 deletions(-)