Lines Matching refs:mac_table

3664 	kfree(adapter->mac_table);  in igb_probe()
3917 kfree(adapter->mac_table); in igb_remove()
4089 adapter->mac_table = kcalloc(hw->mac.rar_entry_count, in igb_sw_init()
4092 if (!adapter->mac_table) in igb_sw_init()
7648 adapter->mac_table[i].state &= ~IGB_MAC_STATE_IN_USE; in igb_flush_mac_table()
7649 eth_zero_addr(adapter->mac_table[i].addr); in igb_flush_mac_table()
7650 adapter->mac_table[i].queue = 0; in igb_flush_mac_table()
7665 if (adapter->mac_table[i].state & IGB_MAC_STATE_DEFAULT) in igb_available_rars()
7669 if ((adapter->mac_table[i].state & IGB_MAC_STATE_IN_USE) && in igb_available_rars()
7670 (adapter->mac_table[i].queue != queue)) in igb_available_rars()
7682 struct igb_mac_addr *mac_table = &adapter->mac_table[0]; in igb_set_default_mac_filter() local
7684 ether_addr_copy(mac_table->addr, adapter->hw.mac.addr); in igb_set_default_mac_filter()
7685 mac_table->queue = adapter->vfs_allocated_count; in igb_set_default_mac_filter()
7686 mac_table->state = IGB_MAC_STATE_DEFAULT | IGB_MAC_STATE_IN_USE; in igb_set_default_mac_filter()
7734 if (!igb_mac_entry_can_be_used(&adapter->mac_table[i], in igb_add_mac_filter_flags()
7738 ether_addr_copy(adapter->mac_table[i].addr, addr); in igb_add_mac_filter_flags()
7739 adapter->mac_table[i].queue = queue; in igb_add_mac_filter_flags()
7740 adapter->mac_table[i].state |= IGB_MAC_STATE_IN_USE | flags; in igb_add_mac_filter_flags()
7778 if (!(adapter->mac_table[i].state & IGB_MAC_STATE_IN_USE)) in igb_del_mac_filter_flags()
7780 if ((adapter->mac_table[i].state & flags) != flags) in igb_del_mac_filter_flags()
7782 if (adapter->mac_table[i].queue != queue) in igb_del_mac_filter_flags()
7784 if (!ether_addr_equal(adapter->mac_table[i].addr, addr)) in igb_del_mac_filter_flags()
7790 if (adapter->mac_table[i].state & IGB_MAC_STATE_DEFAULT) { in igb_del_mac_filter_flags()
7791 adapter->mac_table[i].state = in igb_del_mac_filter_flags()
7793 adapter->mac_table[i].queue = in igb_del_mac_filter_flags()
7796 adapter->mac_table[i].state = 0; in igb_del_mac_filter_flags()
7797 adapter->mac_table[i].queue = 0; in igb_del_mac_filter_flags()
7798 eth_zero_addr(adapter->mac_table[i].addr); in igb_del_mac_filter_flags()
9691 u8 *addr = adapter->mac_table[index].addr; in igb_rar_set_index()
9702 if (adapter->mac_table[index].state & IGB_MAC_STATE_IN_USE) { in igb_rar_set_index()
9706 if (adapter->mac_table[index].state & IGB_MAC_STATE_SRC_ADDR) in igb_rar_set_index()
9712 if (adapter->mac_table[index].state & in igb_rar_set_index()
9717 adapter->mac_table[index].queue; in igb_rar_set_index()
9721 adapter->mac_table[index].queue; in igb_rar_set_index()
9743 ether_addr_copy(adapter->mac_table[rar_entry].addr, mac_addr); in igb_set_vf_mac()
9744 adapter->mac_table[rar_entry].queue = vf; in igb_set_vf_mac()
9745 adapter->mac_table[rar_entry].state |= IGB_MAC_STATE_IN_USE; in igb_set_vf_mac()