OSDN Git Service

ice: set VF default LAN address
authorPaul Greenwalt <paul.greenwalt@intel.com>
Sat, 16 May 2020 00:36:40 +0000 (17:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2020 00:05:02 +0000 (17:05 -0700)
commitbf8987df8aa57da884276b07a64307eac577eaaf
treeb39cb711026f06b6d51b8ddaf2baa94125704ec3
parentf0cbbb9c6e06532fc839770de20e1e94e0d999dd
ice: set VF default LAN address

Remove is_zero_ether_add() check when setting the VF default LAN address.
This check assumed that the address had been delete and zeroed before
calling ice_vc_add_mac_addr(). Now the default LAN address will be set
to the last unicast MAC address added by the VF.

The default LAN address is reported by the PF via ndo_get_vf_config.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c