mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
i40evf: remove VLAN filters on close
We remove all the MAC filters, so remove the VLAN filters, too. Change-ID: I4f7559acdf005dc3f359bf6460ce32d183c8878b Signed-off-by: Mitch Williams <[email protected]> Signed-off-by: Jesse Brandeburg <[email protected]> Tested-by: Sibai Li <[email protected]> Signed-off-by: Aaron Brown <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
committed by
David S. Miller
parent
625777e386
commit
ed1f5b58ea
@@ -972,9 +972,14 @@ void i40evf_down(struct i40evf_adapter *adapter)
|
||||
list_for_each_entry(f, &adapter->mac_filter_list, list) {
|
||||
f->remove = true;
|
||||
}
|
||||
/* remove all VLAN filters */
|
||||
list_for_each_entry(f, &adapter->vlan_filter_list, list) {
|
||||
f->remove = true;
|
||||
}
|
||||
if (!(adapter->flags & I40EVF_FLAG_PF_COMMS_FAILED) &&
|
||||
adapter->state != __I40EVF_RESETTING) {
|
||||
adapter->aq_required |= I40EVF_FLAG_AQ_DEL_MAC_FILTER;
|
||||
adapter->aq_required |= I40EVF_FLAG_AQ_DEL_VLAN_FILTER;
|
||||
/* disable receives */
|
||||
adapter->aq_required |= I40EVF_FLAG_AQ_DISABLE_QUEUES;
|
||||
mod_timer_pending(&adapter->watchdog_timer, jiffies + 1);
|
||||
|
||||
Reference in New Issue
Block a user