]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ionic: keep filters across FLR
authorShannon Nelson <shannon.nelson@amd.com>
Mon, 11 Dec 2023 18:57:58 +0000 (10:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 12:35:55 +0000 (12:35 +0000)
Make sure we keep and replay the filters and RSS config across
an FLR by using our FW_RESET flag.  This gets checked on the
way down and on the way back up to help determine how much LIF
state to keep and restore across a reset action.

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c

index d6ce113a4210b5d4cd542db5e7ddae574db6ea8f..43e7967ad1c543fcd0d1a798a23f9feaef36cb35 100644 (file)
@@ -416,6 +416,8 @@ static void ionic_reset_prepare(struct pci_dev *pdev)
 
        dev_dbg(ionic->dev, "%s: device stopping\n", __func__);
 
+       set_bit(IONIC_LIF_F_FW_RESET, lif->state);
+
        del_timer_sync(&ionic->watchdog_timer);
        cancel_work_sync(&lif->deferred.work);