]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40evf: properly handle ndo_set_mac_address calls
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 31 Aug 2015 23:54:44 +0000 (19:54 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:33 +0000 (08:32 -0800)
commitef7492a62910afc2db9400b0983dec49a20f443f
tree9c70f016f5767ac3b3149dba099d3a0a5a5c0dd6
parentb5bd331424fc625bd5a61f6fcee9171541caa22c
i40evf: properly handle ndo_set_mac_address calls

Orabug: 22342532

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.

Change-ID: I817bf620c869c5a80e6a7eab65c9cbad1dc89799
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 14e52ee26bdfd6ad00075b66089b4b63fe36fff0)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf.h
drivers/net/ethernet/intel/i40evf/i40evf_main.c