Commit 155a1efc authored by Shannon Nelson's avatar Shannon Nelson Committed by Paolo Abeni

ionic: restore netdev feature bits after reset

When rebuilding the lif after an FLR, be sure to restore the
current netdev features, not do the usual first time feature
init.  This prevents losing user changes to things like TSO
or vlan tagging states.

Fixes: 45b84188 ("ionic: keep filters across FLR")
Reviewed-by: default avatarBrett Creeley <brett.creeley@amd.com>
Signed-off-by: default avatarShannon Nelson <shannon.nelson@amd.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 7662fad3
...@@ -3559,6 +3559,9 @@ int ionic_lif_init(struct ionic_lif *lif) ...@@ -3559,6 +3559,9 @@ int ionic_lif_init(struct ionic_lif *lif)
goto err_out_notifyq_deinit; goto err_out_notifyq_deinit;
} }
if (test_bit(IONIC_LIF_F_FW_RESET, lif->state))
err = ionic_set_nic_features(lif, lif->netdev->features);
else
err = ionic_init_nic_features(lif); err = ionic_init_nic_features(lif);
if (err) if (err)
goto err_out_notifyq_deinit; goto err_out_notifyq_deinit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment