diff options
author | Shannon Nelson <shannon.nelson@intel.com> | 2015-08-26 15:14:20 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2015-10-07 14:26:04 -0700 |
commit | 2f41f3358672dfda67c1e254f1e823d98e6a3099 (patch) | |
tree | e5e26f525af249ec5dab704eb3ae83aba9fa288f /net/hsr/hsr_netlink.c | |
parent | a72a5abcb37beac163704efba6a3d33ebca4d90a (diff) |
i40e/i40evf: fix unicast mac address add
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>
Diffstat (limited to 'net/hsr/hsr_netlink.c')
0 files changed, 0 insertions, 0 deletions