]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e/i40evf: fix unicast mac address add
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 26 Aug 2015 19:14:20 +0000 (15:14 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:19 +0000 (08:32 -0800)
commit55b5f2e1ce2ccb1800f6c5fd626397b14c5bdf20
tree14291a695dc58817d0c480394d60580b3ad51b76
parent08b931e859c23f52a41620d6f22ac21f69a5ef7b
i40e/i40evf: fix unicast mac address add

Orabug: 22342532

When using something like "ip maddr add ..." to add another unicast mac
address to the netdev, the mac address comes into the set_rx_mode handler
in the multicast list whether it is a unicast or multicast address.
This was confusing the code when it was trying to search for addresses
that needed to be deleted from the VSI, because it was looking for the
VSI unicast address in the netdev unicast list.  The result was that a
new unicast address would get added to the VSI list and then immediately
removed, and would never actually make it down into the hardware.

This patch removes the separation from unicast and multicast in the search
for filters to be deleted.  It also simplifies the logic a little with a
jump to the bottom of the loop when an address is found.  Now it doesn't
matter which netdev list the address is hiding in, we'll check them all.

Change-ID: Ie3685a92427ae7d2212bf948919ce295bc7a874c
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 2f41f3358672dfda67c1e254f1e823d98e6a3099)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40evf/i40evf_main.c