|
@@ -1883,19 +1883,12 @@ static void i40e_undo_add_filter_entries(struct i40e_vsi *vsi,
|
|
|
static
|
|
|
struct i40e_new_mac_filter *i40e_next_filter(struct i40e_new_mac_filter *next)
|
|
|
{
|
|
|
- while (next) {
|
|
|
- next = hlist_entry(next->hlist.next,
|
|
|
- typeof(struct i40e_new_mac_filter),
|
|
|
- hlist);
|
|
|
-
|
|
|
- /* keep going if we found a broadcast filter */
|
|
|
- if (next && is_broadcast_ether_addr(next->f->macaddr))
|
|
|
- continue;
|
|
|
-
|
|
|
- break;
|
|
|
+ hlist_for_each_entry_continue(next, hlist) {
|
|
|
+ if (!is_broadcast_ether_addr(next->f->macaddr))
|
|
|
+ return next;
|
|
|
}
|
|
|
|
|
|
- return next;
|
|
|
+ return NULL;
|
|
|
}
|
|
|
|
|
|
/**
|