Lines Matching refs:mac_entry
248 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_change_vf_addr() local
253 memcpy(mac_entry.addr, addr, sizeof(mac_entry.addr)); in hns_mac_change_vf_addr()
254 mac_entry.in_vlan_id = old_entry->vlan_id; in hns_mac_change_vf_addr()
255 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_change_vf_addr()
257 &mac_entry.port_num); in hns_mac_change_vf_addr()
263 addr, sizeof(mac_entry.addr)) != 0)) { in hns_mac_change_vf_addr()
272 ret = hns_dsaf_set_mac_uc_entry(dsaf_dev, &mac_entry); in hns_mac_change_vf_addr()
289 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_add_uc_addr() local
295 memset(&mac_entry, 0, sizeof(mac_entry)); in hns_mac_add_uc_addr()
296 memcpy(mac_entry.addr, addr, sizeof(mac_entry.addr)); in hns_mac_add_uc_addr()
297 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_add_uc_addr()
298 ret = hns_mac_get_inner_port_num(mac_cb, vf_id, &mac_entry.port_num); in hns_mac_add_uc_addr()
302 return hns_dsaf_set_mac_uc_entry(dsaf_dev, &mac_entry); in hns_mac_add_uc_addr()
309 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_rm_uc_addr() local
315 memset(&mac_entry, 0, sizeof(mac_entry)); in hns_mac_rm_uc_addr()
316 memcpy(mac_entry.addr, addr, sizeof(mac_entry.addr)); in hns_mac_rm_uc_addr()
317 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_rm_uc_addr()
318 ret = hns_mac_get_inner_port_num(mac_cb, vf_id, &mac_entry.port_num); in hns_mac_rm_uc_addr()
322 return hns_dsaf_rm_mac_addr(dsaf_dev, &mac_entry); in hns_mac_rm_uc_addr()
330 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_set_multi() local
333 memcpy(mac_entry.addr, addr, sizeof(mac_entry.addr)); in hns_mac_set_multi()
334 mac_entry.in_vlan_id = 0;/*vlan_id;*/ in hns_mac_set_multi()
335 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_set_multi()
336 mac_entry.port_num = port_num; in hns_mac_set_multi()
339 ret = hns_dsaf_del_mac_mc_port(dsaf_dev, &mac_entry); in hns_mac_set_multi()
341 ret = hns_dsaf_add_mac_mc_port(dsaf_dev, &mac_entry); in hns_mac_set_multi()
389 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_port_config_bc_en() local
396 eth_broadcast_addr(mac_entry.addr); in hns_mac_port_config_bc_en()
397 mac_entry.in_vlan_id = vlan_id; in hns_mac_port_config_bc_en()
398 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_port_config_bc_en()
399 mac_entry.port_num = port_num; in hns_mac_port_config_bc_en()
402 ret = hns_dsaf_del_mac_mc_port(dsaf_dev, &mac_entry); in hns_mac_port_config_bc_en()
404 ret = hns_dsaf_add_mac_mc_port(dsaf_dev, &mac_entry); in hns_mac_port_config_bc_en()
424 struct dsaf_drv_mac_single_dest_entry mac_entry; in hns_mac_vm_config_bc_en() local
432 eth_broadcast_addr(mac_entry.addr); in hns_mac_vm_config_bc_en()
433 mac_entry.in_vlan_id = uc_mac_entry->vlan_id; in hns_mac_vm_config_bc_en()
434 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_vm_config_bc_en()
438 mac_entry.port_num = port_num; in hns_mac_vm_config_bc_en()
441 ret = hns_dsaf_del_mac_mc_port(dsaf_dev, &mac_entry); in hns_mac_vm_config_bc_en()
443 ret = hns_dsaf_add_mac_mc_port(dsaf_dev, &mac_entry); in hns_mac_vm_config_bc_en()