From: Mitch Williams Date: Mon, 16 May 2016 17:26:42 +0000 (-0700) Subject: i40evf: always activate correct MAC address filter X-Git-Tag: v4.1.12-98.0.20170517_2143~42^2~237 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e003427abdeb5fbc84f8e0ee7ed0948be7a23db5;p=users%2Fjedix%2Flinux-maple.git i40evf: always activate correct MAC address filter Orabug: 24568124 Always add MAC address at the tail of the MAC filter list. Since the device's "real" MAC address is added first, it will always be at the beginning of the list. This prevents an issue where the "real" MAC filter might not get added if too many other filters are added before bringing the interface up. Change-ID: I34a8aeebeb0cb87a44b24118adc4176c7b943c1c Signed-off-by: Mitch Williams Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher (cherry picked from commit 63590b6129aa4a991c4d162cad5caab1632a1b9a) Signed-off-by: Brian Maly Signed-off-by: Dhaval Giani --- diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c index 6b947b019af2a..e56171cedf0e3 100644 --- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c +++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c @@ -825,7 +825,7 @@ i40evf_mac_filter *i40evf_add_filter(struct i40evf_adapter *adapter, ether_addr_copy(f->macaddr, macaddr); - list_add(&f->list, &adapter->mac_filter_list); + list_add_tail(&f->list, &adapter->mac_filter_list); f->add = true; adapter->aq_required |= I40EVF_FLAG_AQ_ADD_MAC_FILTER; }