|
@@ -1380,14 +1380,7 @@ struct i40e_mac_filter *i40e_add_filter(struct i40e_vsi *vsi,
|
|
|
|
|
|
ether_addr_copy(f->macaddr, macaddr);
|
|
|
f->vlan = vlan;
|
|
|
- /* If we're in overflow promisc mode, set the state directly
|
|
|
- * to failed, so we don't bother to try sending the filter
|
|
|
- * to the hardware.
|
|
|
- */
|
|
|
- if (test_bit(__I40E_VSI_OVERFLOW_PROMISC, vsi->state))
|
|
|
- f->state = I40E_FILTER_FAILED;
|
|
|
- else
|
|
|
- f->state = I40E_FILTER_NEW;
|
|
|
+ f->state = I40E_FILTER_NEW;
|
|
|
INIT_HLIST_NODE(&f->hlist);
|
|
|
|
|
|
key = i40e_addr_to_hkey(macaddr);
|
|
@@ -2425,12 +2418,6 @@ int i40e_sync_vsi_filters(struct i40e_vsi *vsi)
|
|
|
|
|
|
num_add = 0;
|
|
|
hlist_for_each_entry_safe(new, h, &tmp_add_list, hlist) {
|
|
|
- if (test_bit(__I40E_VSI_OVERFLOW_PROMISC,
|
|
|
- vsi->state)) {
|
|
|
- new->state = I40E_FILTER_FAILED;
|
|
|
- continue;
|
|
|
- }
|
|
|
-
|
|
|
/* handle broadcast filters by updating the broadcast
|
|
|
* promiscuous flag instead of adding a MAC filter.
|
|
|
*/
|