Lines Matching refs:mac_table

4719 	struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0];  in ixgbe_full_sync_mac_table()  local
4723 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_full_sync_mac_table()
4724 mac_table->state &= ~IXGBE_MAC_STATE_MODIFIED; in ixgbe_full_sync_mac_table()
4726 if (mac_table->state & IXGBE_MAC_STATE_IN_USE) in ixgbe_full_sync_mac_table()
4728 mac_table->addr, in ixgbe_full_sync_mac_table()
4729 mac_table->pool, in ixgbe_full_sync_mac_table()
4739 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_sync_mac_table() local
4743 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_sync_mac_table()
4744 if (!(mac_table->state & IXGBE_MAC_STATE_MODIFIED)) in ixgbe_sync_mac_table()
4747 mac_table->state &= ~IXGBE_MAC_STATE_MODIFIED; in ixgbe_sync_mac_table()
4749 if (mac_table->state & IXGBE_MAC_STATE_IN_USE) in ixgbe_sync_mac_table()
4751 mac_table->addr, in ixgbe_sync_mac_table()
4752 mac_table->pool, in ixgbe_sync_mac_table()
4761 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_flush_sw_mac_table() local
4765 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_flush_sw_mac_table()
4766 mac_table->state |= IXGBE_MAC_STATE_MODIFIED; in ixgbe_flush_sw_mac_table()
4767 mac_table->state &= ~IXGBE_MAC_STATE_IN_USE; in ixgbe_flush_sw_mac_table()
4775 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_available_rars() local
4779 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_available_rars()
4781 if (mac_table->state & IXGBE_MAC_STATE_DEFAULT) in ixgbe_available_rars()
4785 if (mac_table->state & IXGBE_MAC_STATE_IN_USE) { in ixgbe_available_rars()
4786 if (mac_table->pool != pool) in ixgbe_available_rars()
4799 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_mac_set_default_filter() local
4802 memcpy(&mac_table->addr, hw->mac.addr, ETH_ALEN); in ixgbe_mac_set_default_filter()
4803 mac_table->pool = VMDQ_P(0); in ixgbe_mac_set_default_filter()
4805 mac_table->state = IXGBE_MAC_STATE_DEFAULT | IXGBE_MAC_STATE_IN_USE; in ixgbe_mac_set_default_filter()
4807 hw->mac.ops.set_rar(hw, 0, mac_table->addr, mac_table->pool, in ixgbe_mac_set_default_filter()
4814 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_add_mac_filter() local
4821 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_add_mac_filter()
4822 if (mac_table->state & IXGBE_MAC_STATE_IN_USE) in ixgbe_add_mac_filter()
4825 ether_addr_copy(mac_table->addr, addr); in ixgbe_add_mac_filter()
4826 mac_table->pool = pool; in ixgbe_add_mac_filter()
4828 mac_table->state |= IXGBE_MAC_STATE_MODIFIED | in ixgbe_add_mac_filter()
4842 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_del_mac_filter() local
4850 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_del_mac_filter()
4852 if (!(mac_table->state & IXGBE_MAC_STATE_IN_USE)) in ixgbe_del_mac_filter()
4855 if (mac_table->pool != pool) in ixgbe_del_mac_filter()
4858 if (!ether_addr_equal(addr, mac_table->addr)) in ixgbe_del_mac_filter()
4861 mac_table->state |= IXGBE_MAC_STATE_MODIFIED; in ixgbe_del_mac_filter()
4862 mac_table->state &= ~IXGBE_MAC_STATE_IN_USE; in ixgbe_del_mac_filter()
6323 adapter->mac_table = kcalloc(hw->mac.num_rar_entries, in ixgbe_sw_init()
6326 if (!adapter->mac_table) in ixgbe_sw_init()
11096 kfree(adapter->mac_table); in ixgbe_probe()
11186 kfree(adapter->mac_table); in ixgbe_remove()