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: 45b84188a0 ("ionic: keep filters across FLR")
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
7662fad348
commit
155a1efc9b
@@ -3559,7 +3559,10 @@ int ionic_lif_init(struct ionic_lif *lif)
|
||||
goto err_out_notifyq_deinit;
|
||||
}
|
||||
|
||||
err = ionic_init_nic_features(lif);
|
||||
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);
|
||||
if (err)
|
||||
goto err_out_notifyq_deinit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user