Home
last modified time | relevance | path

Searched refs:mac_table (Results 1 – 25 of 25) sorted by relevance

/openbmc/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_hw.c699 if (wx->mac_table[i].state & WX_MAC_STATE_MODIFIED) { in wx_sync_mac_table()
700 if (wx->mac_table[i].state & WX_MAC_STATE_IN_USE) { in wx_sync_mac_table()
702 wx->mac_table[i].addr, in wx_sync_mac_table()
703 wx->mac_table[i].pools, in wx_sync_mac_table()
708 wx->mac_table[i].state &= ~(WX_MAC_STATE_MODIFIED); in wx_sync_mac_table()
716 memcpy(&wx->mac_table[0].addr, addr, ETH_ALEN); in wx_mac_set_default_filter()
717 wx->mac_table[0].pools = 1ULL; in wx_mac_set_default_filter()
718 wx->mac_table[0].state = (WX_MAC_STATE_DEFAULT | WX_MAC_STATE_IN_USE); in wx_mac_set_default_filter()
719 wx_set_rar(wx, 0, wx->mac_table[0].addr, in wx_mac_set_default_filter()
720 wx->mac_table[0].pools, in wx_mac_set_default_filter()
[all …]
H A Dwx_type.h859 struct wx_mac_addr *mac_table; member
/openbmc/linux/arch/powerpc/boot/
H A Dplanetcore.c72 static u64 mac_table[4] = { variable
91 mac_table[i]; in planetcore_set_mac_addrs()
/openbmc/qemu/hw/net/
H A Dvirtio-net.c519 info->multicast_overflow = n->mac_table.multi_overflow; in virtio_net_query_rxfilter()
520 info->unicast_overflow = n->mac_table.uni_overflow; in virtio_net_query_rxfilter()
525 for (i = 0; i < n->mac_table.first_multi; i++) { in virtio_net_query_rxfilter()
527 qemu_mac_strdup_printf(n->mac_table.macs + i * ETH_ALEN)); in virtio_net_query_rxfilter()
532 for (i = n->mac_table.first_multi; i < n->mac_table.in_use; i++) { in virtio_net_query_rxfilter()
534 qemu_mac_strdup_printf(n->mac_table.macs + i * ETH_ALEN)); in virtio_net_query_rxfilter()
1177 n->mac_table.in_use = in_use; in virtio_net_handle_mac()
1178 n->mac_table.first_multi = first_multi; in virtio_net_handle_mac()
1179 n->mac_table in virtio_net_handle_mac()
[all...]
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c325 pf->mac_table = devm_kzalloc(pf->dev, sizeof(struct otx2_mac_table) in otx2_mcam_flow_init()
327 if (!pf->mac_table) in otx2_mcam_flow_init()
380 if (pf->mac_table[i].inuse) in otx2_do_add_macfilter()
382 ether_addr_copy(pf->mac_table[i].addr, mac); in otx2_do_add_macfilter()
383 pf->mac_table[i].inuse = true; in otx2_do_add_macfilter()
384 pf->mac_table[i].mcam_entry = in otx2_do_add_macfilter()
386 req->entry = pf->mac_table[i].mcam_entry; in otx2_do_add_macfilter()
423 if (!pf->mac_table[i].inuse) in otx2_get_mcamentry_for_mac()
426 if (ether_addr_equal(pf->mac_table[i].addr, mac)) { in otx2_get_mcamentry_for_mac()
427 *mcam_entry = pf->mac_table[i].mcam_entry; in otx2_get_mcamentry_for_mac()
[all …]
H A Dotx2_common.h491 struct otx2_mac_table *mac_table; member
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c925 &hdev->mac_table.uc_mac_list : &hdev->mac_table.mc_mac_list; in hclgevf_update_mac_list()
927 spin_lock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list()
936 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list()
941 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list()
947 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list()
955 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list()
1114 &hdev->mac_table.uc_mac_list : &hdev->mac_table.mc_mac_list; in hclgevf_sync_mac_list()
1116 spin_lock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_sync_mac_list()
1138 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_sync_mac_list()
1147 spin_lock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_sync_mac_list()
[all …]
H A Dhclgevf_main.h259 struct hclgevf_mac_table_cfg mac_table; member
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c4710 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_full_sync_mac_table() local
4714 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_full_sync_mac_table()
4715 mac_table->state &= ~IXGBE_MAC_STATE_MODIFIED; in ixgbe_full_sync_mac_table()
4717 if (mac_table->state & IXGBE_MAC_STATE_IN_USE) in ixgbe_full_sync_mac_table()
4719 mac_table->addr, in ixgbe_full_sync_mac_table()
4720 mac_table->pool, in ixgbe_full_sync_mac_table()
4730 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_sync_mac_table() local
4734 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_sync_mac_table()
4735 if (!(mac_table->state & IXGBE_MAC_STATE_MODIFIED)) in ixgbe_sync_mac_table()
4738 mac_table->state &= ~IXGBE_MAC_STATE_MODIFIED; in ixgbe_sync_mac_table()
[all …]
H A Dixgbe.h794 struct ixgbe_mac_addr *mac_table; member
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_main.c3672 kfree(adapter->mac_table); in igb_probe()
3925 kfree(adapter->mac_table); in igb_remove()
4097 adapter->mac_table = kcalloc(hw->mac.rar_entry_count, in igb_sw_init()
4100 if (!adapter->mac_table) in igb_sw_init()
7654 adapter->mac_table[i].state &= ~IGB_MAC_STATE_IN_USE; in igb_flush_mac_table()
7655 eth_zero_addr(adapter->mac_table[i].addr); in igb_flush_mac_table()
7656 adapter->mac_table[i].queue = 0; in igb_flush_mac_table()
7671 if (adapter->mac_table[i].state & IGB_MAC_STATE_DEFAULT) in igb_available_rars()
7675 if ((adapter->mac_table[i].state & IGB_MAC_STATE_IN_USE) && in igb_available_rars()
7676 (adapter->mac_table[i].queue != queue)) in igb_available_rars()
[all …]
H A Digb.h664 struct igb_mac_addr *mac_table; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c153 struct mlx4_mac_table *table = &info->mac_table; in mlx4_find_cached_mac()
185 struct mlx4_mac_table *table = &info->mac_table; in __mlx4_register_mac()
191 struct mlx4_mac_table *dup_table = &mlx4_priv(dev)->port[dup_port].mac_table; in __mlx4_register_mac()
386 struct mlx4_mac_table *dup_table = &mlx4_priv(dev)->port[dup_port].mac_table; in __mlx4_unregister_mac()
393 table = &info->mac_table; in __mlx4_unregister_mac()
477 struct mlx4_mac_table *table = &info->mac_table; in __mlx4_replace_mac()
482 struct mlx4_mac_table *dup_table = &mlx4_priv(dev)->port[dup_port].mac_table; in __mlx4_replace_mac()
844 struct mlx4_mac_table *t1 = &mlx4_priv(dev)->port[1].mac_table; in mlx4_bond_mac_table()
845 struct mlx4_mac_table *t2 = &mlx4_priv(dev)->port[2].mac_table; in mlx4_bond_mac_table()
898 struct mlx4_mac_table *t1 = &mlx4_priv(dev)->port[1].mac_table; in mlx4_unbond_mac_table()
[all …]
H A Dmlx4.h842 struct mlx4_mac_table mac_table; member
H A Dmain.c3109 mlx4_init_mac_table(dev, &info->mac_table); in mlx4_init_port_info()
/openbmc/qemu/net/
H A Dvhost-vdpa.c805 n->mac_table.in_use == 0) { in vhost_vdpa_net_load_mac()
809 uint32_t uni_entries = n->mac_table.first_multi, in vhost_vdpa_net_load_mac()
811 mul_entries = n->mac_table.in_use - uni_entries, in vhost_vdpa_net_load_mac()
824 .iov_base = n->mac_table.macs, in vhost_vdpa_net_load_mac()
830 .iov_base = &n->mac_table.macs[uni_macs_size], in vhost_vdpa_net_load_mac()
1071 * QEMU marks `n->mac_table.uni_overflow` if guest sets too many in vhost_vdpa_net_load_rx()
1076 * `n->mac_table.uni_overflow` is not marked and `n->promisc` is off, in vhost_vdpa_net_load_rx()
1082 if (!n->mac_table.uni_overflow && !n->promisc) { in vhost_vdpa_net_load_rx()
1097 * `n->mac_table.multi_overflow` if guest sets too many in vhost_vdpa_net_load_rx()
1101 * `n->mac_table in vhost_vdpa_net_load_rx()
[all...]
H A Dnet.c167 static int mac_table[256] = {0}; variable
175 mac_table[index]++; in qemu_macaddr_set_used()
190 mac_table[index]--; in qemu_macaddr_set_free()
200 if (mac_table[index] == 0) { in qemu_macaddr_get_free()
/openbmc/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_main.c243 memcpy(old_addr, &wx->mac_table[0].addr, netdev->addr_len); in txgbe_reset()
752 kfree(wx->mac_table); in txgbe_probe()
784 kfree(wx->mac_table); in txgbe_remove()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-net.h200 } mac_table; member
/openbmc/linux/drivers/net/ethernet/wangxun/ngbe/
H A Dngbe_main.c690 kfree(wx->mac_table); in ngbe_probe()
718 kfree(wx->mac_table); in ngbe_remove()
/openbmc/linux/drivers/net/wireless/ti/wl1251/
H A Dacx.h348 u8 mac_table[ACX_MC_ADDRESS_GROUP_MAX_LEN]; member
H A Dacx.c396 memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN); in wl1251_acx_group_address_tbl()
/openbmc/linux/drivers/net/wireless/ti/wlcore/
H A Dacx.h192 u8 mac_table[ADDRESS_GROUP_MAX_LEN]; member
H A Dacx.c231 memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN); in wl1271_acx_group_address_tbl()
/openbmc/linux/drivers/net/ethernet/micrel/
H A Dksz884x.c1106 struct ksz_mac_table mac_table[STATIC_MAC_TABLE_ENTRIES]; member
2522 entry = &hw->ksz_switch->mac_table[i]; in sw_clr_sta_mac_table()
2540 entry = &hw->ksz_switch->mac_table[STP_ENTRY]; in sw_init_stp()
2568 entry = &hw->ksz_switch->mac_table[i]; in sw_block_addr()