Lines Matching defs:macaddr
118 if (is_unicast_ether_addr(f->macaddr) || is_link_local_ether_addr(f->macaddr))
124 if (ether_addr_equal(ha->addr, f->macaddr)) {
1289 * @macaddr: the MAC address
1295 const u8 *macaddr, s16 vlan)
1300 if (!vsi || !macaddr)
1303 key = i40e_addr_to_hkey(macaddr);
1305 if ((ether_addr_equal(macaddr, f->macaddr)) &&
1315 * @macaddr: the MAC address we are searching for
1320 struct i40e_mac_filter *i40e_find_mac(struct i40e_vsi *vsi, const u8 *macaddr)
1325 if (!vsi || !macaddr)
1328 key = i40e_addr_to_hkey(macaddr);
1330 if ((ether_addr_equal(macaddr, f->macaddr)))
1454 add_head = i40e_add_filter(vsi, f->macaddr, new_vlan);
1567 add_head = i40e_add_filter(vsi, f->macaddr, new_vlan);
1596 * @macaddr: the MAC address
1601 static void i40e_rm_default_mac_filter(struct i40e_vsi *vsi, u8 *macaddr)
1611 ether_addr_copy(element.mac_addr, macaddr);
1618 ether_addr_copy(element.mac_addr, macaddr);
1629 * @macaddr: the MAC address
1638 const u8 *macaddr, s16 vlan)
1643 if (!vsi || !macaddr)
1646 f = i40e_find_filter(vsi, macaddr, vlan);
1658 ether_addr_copy(f->macaddr, macaddr);
1663 key = i40e_addr_to_hkey(macaddr);
1722 * @macaddr: the mac address to be filtered
1727 * add the macaddr to that VLAN.
1732 const u8 *macaddr)
1740 return i40e_add_filter(vsi, macaddr,
1744 return i40e_add_filter(vsi, macaddr, I40E_VLAN_ANY);
1749 add = i40e_add_filter(vsi, macaddr, f->vlan);
1760 * @macaddr: the mac address to be removed
1767 int i40e_del_mac_filter(struct i40e_vsi *vsi, const u8 *macaddr)
1776 if (ether_addr_equal(macaddr, f->macaddr)) {
2254 u64 key = i40e_addr_to_hkey(f->macaddr);
2296 if (!is_broadcast_ether_addr(next->f->macaddr))
2657 if (is_broadcast_ether_addr(f->macaddr)) {
2666 ether_addr_copy(del_list[num_del].mac_addr, f->macaddr);
2717 if (is_broadcast_ether_addr(new->f->macaddr)) {
2731 new->f->macaddr);
3074 add_f = i40e_add_filter(vsi, f->macaddr, vid);
3078 vid, f->macaddr);
7692 * @macaddr: the mac address to apply as a filter
7699 const u8 *macaddr, int *aq_err)
7705 ether_addr_copy(element.mac_addr, macaddr);
7718 * @macaddr: the mac address to apply as a filter
7725 const u8 *macaddr, int *aq_err)
7731 ether_addr_copy(element.mac_addr, macaddr);