Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_mac.c207 struct lan966x_mac_entry *mac_entry; in lan966x_mac_alloc_entry() local
209 mac_entry = kzalloc(sizeof(*mac_entry), GFP_ATOMIC); in lan966x_mac_alloc_entry()
210 if (!mac_entry) in lan966x_mac_alloc_entry()
213 memcpy(mac_entry->mac, mac, ETH_ALEN); in lan966x_mac_alloc_entry()
214 mac_entry->vid = vid; in lan966x_mac_alloc_entry()
215 mac_entry->port_index = port->chip_port; in lan966x_mac_alloc_entry()
216 mac_entry->row = LAN966X_MAC_INVALID_ROW; in lan966x_mac_alloc_entry()
217 mac_entry->lag = port->bond ? true : false; in lan966x_mac_alloc_entry()
218 return mac_entry; in lan966x_mac_alloc_entry()
226 struct lan966x_mac_entry *mac_entry; in lan966x_mac_find_entry() local
[all …]
/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_mac.c277 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_change_vf_addr() local
282 memcpy(mac_entry.addr, addr, sizeof(mac_entry.addr)); in hns_mac_change_vf_addr()
283 mac_entry.in_vlan_id = old_entry->vlan_id; in hns_mac_change_vf_addr()
284 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_change_vf_addr()
286 &mac_entry.port_num); in hns_mac_change_vf_addr()
292 addr, sizeof(mac_entry.addr)) != 0)) { in hns_mac_change_vf_addr()
301 ret = hns_dsaf_set_mac_uc_entry(dsaf_dev, &mac_entry); in hns_mac_change_vf_addr()
318 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_add_uc_addr() local
324 memset(&mac_entry, 0, sizeof(mac_entry)); in hns_mac_add_uc_addr()
325 memcpy(mac_entry.addr, addr, sizeof(mac_entry.addr)); in hns_mac_add_uc_addr()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c650 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule() local
728 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in efx_ethtool_get_class_rule()
736 ether_addr_copy(mac_entry->h_source, spec.rem_mac); in efx_ethtool_get_class_rule()
740 mac_entry->h_proto = spec.ether_type; in efx_ethtool_get_class_rule()
914 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule() local
1078 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in efx_ethtool_set_class_rule()
1084 ether_addr_copy(spec.rem_mac, mac_entry->h_source); in efx_ethtool_set_class_rule()
1090 spec.ether_type = mac_entry->h_proto; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c797 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_get_class_rule() local
875 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in ef4_ethtool_get_class_rule()
883 ether_addr_copy(mac_entry->h_source, spec.rem_mac); in ef4_ethtool_get_class_rule()
887 mac_entry->h_proto = spec.ether_type; in ef4_ethtool_get_class_rule()
1041 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_set_class_rule() local
1197 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in ef4_ethtool_set_class_rule()
1203 ether_addr_copy(spec.rem_mac, mac_entry->h_source); in ef4_ethtool_set_class_rule()
1209 spec.ether_type = mac_entry->h_proto; in ef4_ethtool_set_class_rule()
/linux/drivers/net/ethernet/sfc/
H A Dethtool_common.c649 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule() local
727 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in efx_ethtool_get_class_rule()
735 ether_addr_copy(mac_entry->h_source, spec.rem_mac); in efx_ethtool_get_class_rule()
739 mac_entry->h_proto = spec.ether_type; in efx_ethtool_get_class_rule()
923 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule() local
1087 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in efx_ethtool_set_class_rule()
1093 ether_addr_copy(spec.rem_mac, mac_entry->h_source); in efx_ethtool_set_class_rule()
1099 spec.ether_type = mac_entry->h_proto; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dtunnel_conf.c1432 struct nfp_tun_offloaded_mac *mac_entry; in nfp_flower_xmit_pre_tun_flow() local
1451 mac_entry = nfp_tunnel_lookup_offloaded_macs(app, in nfp_flower_xmit_pre_tun_flow()
1453 if (!mac_entry) in nfp_flower_xmit_pre_tun_flow()
1461 mac_entry->index |= NFP_TUN_PRE_TUN_IPV6_BIT; in nfp_flower_xmit_pre_tun_flow()
1463 mac_entry->index &= ~NFP_TUN_PRE_TUN_IPV6_BIT; in nfp_flower_xmit_pre_tun_flow()
1465 payload.port_idx = cpu_to_be16(mac_entry->index); in nfp_flower_xmit_pre_tun_flow()
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.c3755 struct get_list_macaddr *mac_entry; in be_cmd_get_mac_from_list() local
3759 mac_entry = &resp->macaddr_list[i]; in be_cmd_get_mac_from_list()
3760 mac_addr_size = le16_to_cpu(mac_entry->mac_addr_size); in be_cmd_get_mac_from_list()
3766 mac_id = mac_entry->mac_addr_id.s_mac_id.mac_id; in be_cmd_get_mac_from_list()
/linux/drivers/net/dsa/mv88e6xxx/
H A Dchip.c2357 struct ethhdr *mac_entry = &fs->h_u.ether_spec; in mv88e6xxx_policy_insert() local
2380 addr = mac_entry->h_dest; in mv88e6xxx_policy_insert()
2384 addr = mac_entry->h_source; in mv88e6xxx_policy_insert()