Skip to content
  • Shannon Nelson's avatar
    i40e/i40evf: fix unicast mac address add · 2f41f335
    Shannon Nelson authored
    
    
    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: default avatarShannon Nelson <shannon.nelson@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    2f41f335