From: Kiran Patil Date: Wed, 9 Dec 2015 23:50:23 +0000 (-0800) Subject: i40e: Add mac_filter_element at the end of the list instead of HEAD X-Git-Tag: v4.1.12-92~189^2~163 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=80c1645132a04e016029d8cc7879b4ecac6b3e00;p=users%2Fjedix%2Flinux-maple.git i40e: Add mac_filter_element at the end of the list instead of HEAD Orabug: 22342532 Add MAC filter element to the end of the list in the given order, just to be tidy, and just in case there are ever any ordering issues in the future. Change-ID: Idc15276147593ea9393ac72c861f9c7905a791b4 Signed-off-by: Kiran Patil Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher (cherry picked from commit 04d5a21d62887b9bc5383fc68ab2756287da4532) Signed-off-by: Brian Maly --- diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index d47ca49e6961..a934973799c8 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -1359,7 +1359,7 @@ struct i40e_mac_filter *i40e_add_filter(struct i40e_vsi *vsi, f->changed = true; INIT_LIST_HEAD(&f->list); - list_add(&f->list, &vsi->mac_filter_list); + list_add_tail(&f->list, &vsi->mac_filter_list); } /* increment counter and add a new flag if needed */