|
@@ -2883,6 +2883,7 @@ int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac)
|
|
|
struct i40e_mac_filter *f;
|
|
|
struct i40e_vf *vf;
|
|
|
int ret = 0;
|
|
|
+ struct hlist_node *h;
|
|
|
int bkt;
|
|
|
|
|
|
/* validate the request */
|
|
@@ -2921,7 +2922,7 @@ int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac)
|
|
|
/* Delete all the filters for this VSI - we're going to kill it
|
|
|
* anyway.
|
|
|
*/
|
|
|
- hash_for_each(vsi->mac_filter_hash, bkt, f, hlist)
|
|
|
+ hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist)
|
|
|
__i40e_del_filter(vsi, f);
|
|
|
|
|
|
spin_unlock_bh(&vsi->mac_filter_hash_lock);
|