Lines Matching refs:mac_table

701 		if (wx->mac_table[i].state & WX_MAC_STATE_MODIFIED) {  in wx_sync_mac_table()
702 if (wx->mac_table[i].state & WX_MAC_STATE_IN_USE) { in wx_sync_mac_table()
704 wx->mac_table[i].addr, in wx_sync_mac_table()
705 wx->mac_table[i].pools, in wx_sync_mac_table()
710 wx->mac_table[i].state &= ~(WX_MAC_STATE_MODIFIED); in wx_sync_mac_table()
718 memcpy(&wx->mac_table[0].addr, addr, ETH_ALEN); in wx_mac_set_default_filter()
719 wx->mac_table[0].pools = 1ULL; in wx_mac_set_default_filter()
720 wx->mac_table[0].state = (WX_MAC_STATE_DEFAULT | WX_MAC_STATE_IN_USE); in wx_mac_set_default_filter()
721 wx_set_rar(wx, 0, wx->mac_table[0].addr, in wx_mac_set_default_filter()
722 wx->mac_table[0].pools, in wx_mac_set_default_filter()
732 if (!(wx->mac_table[i].state & WX_MAC_STATE_IN_USE)) in wx_flush_sw_mac_table()
735 wx->mac_table[i].state |= WX_MAC_STATE_MODIFIED; in wx_flush_sw_mac_table()
736 wx->mac_table[i].state &= ~WX_MAC_STATE_IN_USE; in wx_flush_sw_mac_table()
737 memset(wx->mac_table[i].addr, 0, ETH_ALEN); in wx_flush_sw_mac_table()
738 wx->mac_table[i].pools = 0; in wx_flush_sw_mac_table()
752 if (wx->mac_table[i].state & WX_MAC_STATE_IN_USE) { in wx_add_mac_filter()
753 if (ether_addr_equal(addr, wx->mac_table[i].addr)) { in wx_add_mac_filter()
754 if (wx->mac_table[i].pools != (1ULL << pool)) { in wx_add_mac_filter()
755 memcpy(wx->mac_table[i].addr, addr, ETH_ALEN); in wx_add_mac_filter()
756 wx->mac_table[i].pools |= (1ULL << pool); in wx_add_mac_filter()
763 if (wx->mac_table[i].state & WX_MAC_STATE_IN_USE) in wx_add_mac_filter()
765 wx->mac_table[i].state |= (WX_MAC_STATE_MODIFIED | in wx_add_mac_filter()
767 memcpy(wx->mac_table[i].addr, addr, ETH_ALEN); in wx_add_mac_filter()
768 wx->mac_table[i].pools |= (1ULL << pool); in wx_add_mac_filter()
784 if (!ether_addr_equal(addr, wx->mac_table[i].addr)) in wx_del_mac_filter()
787 wx->mac_table[i].state |= WX_MAC_STATE_MODIFIED; in wx_del_mac_filter()
788 wx->mac_table[i].pools &= ~(1ULL << pool); in wx_del_mac_filter()
789 if (!wx->mac_table[i].pools) { in wx_del_mac_filter()
790 wx->mac_table[i].state &= ~WX_MAC_STATE_IN_USE; in wx_del_mac_filter()
791 memset(wx->mac_table[i].addr, 0, ETH_ALEN); in wx_del_mac_filter()
804 if (wx->mac_table[i].state == 0) in wx_available_rars()
1688 wx->mac_table = kcalloc(wx->mac.num_rar_entries, in wx_sw_init()
1691 if (!wx->mac_table) { in wx_sw_init()