Searched refs:mac_data (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_main.c | 1614 struct dsaf_tbl_tcam_ucast_cfg mac_data; in hns_dsaf_set_mac_uc_entry() local 1654 mac_data.tbl_ucast_item_vld = 1; in hns_dsaf_set_mac_uc_entry() 1655 mac_data.tbl_ucast_mac_discard = 0; in hns_dsaf_set_mac_uc_entry() 1656 mac_data.tbl_ucast_old_en = 0; in hns_dsaf_set_mac_uc_entry() 1658 mac_data.tbl_ucast_dvc = 0; in hns_dsaf_set_mac_uc_entry() 1659 mac_data.tbl_ucast_out_port = mac_entry->port_num; in hns_dsaf_set_mac_uc_entry() 1663 hns_dsaf_tcam_uc_cfg(dsaf_dev, entry_index, &tcam_data, &mac_data); in hns_dsaf_set_mac_uc_entry() 1679 struct dsaf_tbl_tcam_ucast_cfg mac_data; in hns_dsaf_rm_mac_addr() local 1711 &mac_data); in hns_dsaf_rm_mac_addr() 1714 if (mac_entry->port_num != mac_data.tbl_ucast_out_port) in hns_dsaf_rm_mac_addr() [all …]
|
/Linux-v5.4/drivers/net/ |
D | virtio_net.c | 1820 struct virtio_net_ctrl_mac *mac_data; in virtnet_set_rx_mode() local 1852 (2 * sizeof(mac_data->entries)), GFP_ATOMIC); in virtnet_set_rx_mode() 1853 mac_data = buf; in virtnet_set_rx_mode() 1860 mac_data->entries = cpu_to_virtio32(vi->vdev, uc_count); in virtnet_set_rx_mode() 1863 memcpy(&mac_data->macs[i++][0], ha->addr, ETH_ALEN); in virtnet_set_rx_mode() 1865 sg_set_buf(&sg[0], mac_data, in virtnet_set_rx_mode() 1866 sizeof(mac_data->entries) + (uc_count * ETH_ALEN)); in virtnet_set_rx_mode() 1869 mac_data = (void *)&mac_data->macs[uc_count][0]; in virtnet_set_rx_mode() 1871 mac_data->entries = cpu_to_virtio32(vi->vdev, mc_count); in virtnet_set_rx_mode() 1874 memcpy(&mac_data->macs[i++][0], ha->addr, ETH_ALEN); in virtnet_set_rx_mode() [all …]
|