Home
last modified time | relevance | path

Searched refs:mac_entry (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c252 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_change_vf_addr() local
257 memcpy(mac_entry.addr, addr, sizeof(mac_entry.addr)); in hns_mac_change_vf_addr()
258 mac_entry.in_vlan_id = old_entry->vlan_id; in hns_mac_change_vf_addr()
259 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_change_vf_addr()
261 &mac_entry.port_num); in hns_mac_change_vf_addr()
267 addr, sizeof(mac_entry.addr)) != 0)) { in hns_mac_change_vf_addr()
276 ret = hns_dsaf_set_mac_uc_entry(dsaf_dev, &mac_entry); in hns_mac_change_vf_addr()
293 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_add_uc_addr() local
299 memset(&mac_entry, 0, sizeof(mac_entry)); in hns_mac_add_uc_addr()
300 memcpy(mac_entry.addr, addr, sizeof(mac_entry.addr)); in hns_mac_add_uc_addr()
[all …]
Dhns_dsaf_main.c1539 struct dsaf_drv_mac_single_dest_entry *mac_entry) in hns_dsaf_set_mac_uc_entry() argument
1550 if (MAC_IS_ALL_ZEROS(mac_entry->addr) || in hns_dsaf_set_mac_uc_entry()
1551 MAC_IS_BROADCAST(mac_entry->addr) || in hns_dsaf_set_mac_uc_entry()
1552 MAC_IS_MULTICAST(mac_entry->addr)) { in hns_dsaf_set_mac_uc_entry()
1554 dsaf_dev->ae_dev.name, mac_entry->addr); in hns_dsaf_set_mac_uc_entry()
1559 hns_dsaf_set_mac_key(dsaf_dev, &mac_key, mac_entry->in_vlan_id, in hns_dsaf_set_mac_uc_entry()
1560 mac_entry->in_port_num, mac_entry->addr); in hns_dsaf_set_mac_uc_entry()
1588 mac_data.tbl_ucast_out_port = mac_entry->port_num; in hns_dsaf_set_mac_uc_entry()
1605 struct dsaf_drv_mac_single_dest_entry *mac_entry) in hns_dsaf_rm_mac_addr() argument
1612 if (!is_valid_ether_addr(mac_entry->addr)) { in hns_dsaf_rm_mac_addr()
[all …]
Dhns_dsaf_main.h433 struct dsaf_drv_mac_single_dest_entry *mac_entry);
435 struct dsaf_drv_mac_single_dest_entry *mac_entry);
439 struct dsaf_drv_mac_single_dest_entry *mac_entry);
464 struct dsaf_drv_mac_single_dest_entry *mac_entry);
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dethtool.c799 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_get_class_rule() local
877 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in ef4_ethtool_get_class_rule()
885 ether_addr_copy(mac_entry->h_source, spec.rem_mac); in ef4_ethtool_get_class_rule()
889 mac_entry->h_proto = spec.ether_type; in ef4_ethtool_get_class_rule()
1035 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_set_class_rule() local
1191 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in ef4_ethtool_set_class_rule()
1197 ether_addr_copy(spec.rem_mac, mac_entry->h_source); in ef4_ethtool_set_class_rule()
1203 spec.ether_type = mac_entry->h_proto; in ef4_ethtool_set_class_rule()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/flower/
Dtunnel_conf.c764 struct nfp_tun_mac_offload_entry *mac_entry; in nfp_tunnel_config_stop() local
776 mac_entry = list_entry(ptr, struct nfp_tun_mac_offload_entry, in nfp_tunnel_config_stop()
778 list_del(&mac_entry->list); in nfp_tunnel_config_stop()
779 kfree(mac_entry); in nfp_tunnel_config_stop()
/Linux-v4.19/drivers/net/ethernet/sfc/
Dethtool.c822 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule() local
900 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in efx_ethtool_get_class_rule()
908 ether_addr_copy(mac_entry->h_source, spec.rem_mac); in efx_ethtool_get_class_rule()
912 mac_entry->h_proto = spec.ether_type; in efx_ethtool_get_class_rule()
1092 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule() local
1256 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in efx_ethtool_set_class_rule()
1262 ether_addr_copy(spec.rem_mac, mac_entry->h_source); in efx_ethtool_set_class_rule()
1268 spec.ether_type = mac_entry->h_proto; in efx_ethtool_set_class_rule()
/Linux-v4.19/drivers/net/wireless/intersil/prism54/
Dislpci_dev.h49 struct mac_entry { struct
Disl_ioctl.c1795 struct mac_entry *entry; in prism54_clear_mac()
1806 entry = list_entry(ptr, struct mac_entry, _list); in prism54_clear_mac()
1826 struct mac_entry *entry; in prism54_add_mac()
1832 entry = kmalloc(sizeof (struct mac_entry), GFP_KERNEL); in prism54_add_mac()
1855 struct mac_entry *entry; in prism54_del_mac()
1882 struct mac_entry *entry; in prism54_get_mac()
1957 struct mac_entry *entry; in prism54_mac_accept()
/Linux-v4.19/drivers/net/wireless/intersil/hostap/
Dhostap_ap.h138 struct mac_entry { struct
Dhostap_ap.c325 struct mac_entry *entry; in ap_control_proc_show()
381 struct mac_entry *entry; in ap_control_add_mac()
383 entry = kmalloc(sizeof(struct mac_entry), GFP_KERNEL); in ap_control_add_mac()
401 struct mac_entry *entry; in ap_control_del_mac()
406 entry = list_entry(ptr, struct mac_entry, list); in ap_control_del_mac()
424 struct mac_entry *entry; in ap_control_mac_deny()
449 struct mac_entry *entry; in ap_control_flush_macs()
458 entry = list_entry(ptr, struct mac_entry, list); in ap_control_flush_macs()
/Linux-v4.19/drivers/net/ethernet/neterion/vxge/
Dvxge-main.c1129 struct vxge_mac_addrs *mac_entry; in vxge_set_multicast() local
1196 mac_entry = (struct vxge_mac_addrs *)entry; in vxge_set_multicast()
1198 mac_address = (u8 *)&mac_entry->macaddr; in vxge_set_multicast()
1238 mac_entry = (struct vxge_mac_addrs *)entry; in vxge_set_multicast()
1240 mac_address = (u8 *)&mac_entry->macaddr; in vxge_set_multicast()
/Linux-v4.19/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c3754 struct get_list_macaddr *mac_entry; in be_cmd_get_mac_from_list() local
3758 mac_entry = &resp->macaddr_list[i]; in be_cmd_get_mac_from_list()
3759 mac_addr_size = le16_to_cpu(mac_entry->mac_addr_size); in be_cmd_get_mac_from_list()
3765 mac_id = mac_entry->mac_addr_id.s_mac_id.mac_id; in be_cmd_get_mac_from_list()