[Intel-wired-lan] [next PATCH S14 04/15] i40evf: properly handle ndo_set_mac_address calls

Bowers, AndrewX andrewx.bowers at intel.com
Fri Sep 11 21:36:50 UTC 2015


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Catherine Sullivan
> Sent: Monday, August 31, 2015 4:55 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S14 04/15] i40evf: properly handle
> ndo_set_mac_address calls
> 
> From: Mitch Williams <mitch.a.williams at intel.com>
> 
> The driver was not correctly handling calls to its ndo_set_mac_address
> method. It did not properly check to see if the override would be allowed by
> the PF driver, and never removed the old address from its filter list.
> 
> Add a new flag to the adapter struct which is set if the MAC address is
> assigned by the PF. Check this flag and don't allow the MAC address to be
> changed if it is set. Search for and properly remove the filter for the old MAC
> address when the new one is set.
> 
> Signed-off-by: Mitch Williams <mitch.a.williams at intel.com>
> Change-ID: I817bf620c869c5a80e6a7eab65c9cbad1dc89799
> ---
>  drivers/net/ethernet/intel/i40evf/i40evf.h      |  1 +
>  drivers/net/ethernet/intel/i40evf/i40evf_main.c | 18 +++++++++++++++---
>  2 files changed, 16 insertions(+), 3 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
Code changes present in tree, can change VF MAC with ethtool and ip.


More information about the Intel-wired-lan mailing list