Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixl_pf_main.c
Show First 20 Lines • Show All 1,390 Lines • ▼ Show 20 Lines | LIST_FOREACH(f, to_add, ftle) { | ||||
if (f->vlan == IXL_VLAN_ANY) { | if (f->vlan == IXL_VLAN_ANY) { | ||||
b->vlan_tag = 0; | b->vlan_tag = 0; | ||||
b->flags = I40E_AQC_MACVLAN_ADD_IGNORE_VLAN; | b->flags = I40E_AQC_MACVLAN_ADD_IGNORE_VLAN; | ||||
} else { | } else { | ||||
b->vlan_tag = f->vlan; | b->vlan_tag = f->vlan; | ||||
b->flags = 0; | b->flags = 0; | ||||
} | } | ||||
b->flags |= I40E_AQC_MACVLAN_ADD_PERFECT_MATCH; | b->flags |= I40E_AQC_MACVLAN_ADD_PERFECT_MATCH; | ||||
/* Some FW versions do not set match method | |||||
* when adding filters fails. Initialize it with | |||||
* expected error value to allow detection which | |||||
* filters were not added */ | |||||
b->match_method = I40E_AQC_MM_ERR_NO_RES; | |||||
ixl_dbg_filter(pf, "ADD: " MAC_FORMAT "\n", | ixl_dbg_filter(pf, "ADD: " MAC_FORMAT "\n", | ||||
MAC_FORMAT_ARGS(f->macaddr)); | MAC_FORMAT_ARGS(f->macaddr)); | ||||
if (++j == cnt) | if (++j == cnt) | ||||
break; | break; | ||||
} | } | ||||
if (j != cnt) { | if (j != cnt) { | ||||
/* Something went wrong */ | /* Something went wrong */ | ||||
▲ Show 20 Lines • Show All 3,286 Lines • Show Last 20 Lines |