ixgbevf: Adjust to handle unassigned MAC address from PF
authorGreg Rose <gregory.v.rose@intel.com>
Wed, 13 Feb 2013 03:02:05 +0000 (03:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 Mar 2013 08:13:46 +0000 (01:13 -0700)
commite1941a74338d8c655c92b058e72acc141fd9e813
tree9fb99154d87a7411e814c8ba96cab3171e21e986
parent35055928c7b1d078ddde656357db3093f383d846
ixgbevf: Adjust to handle unassigned MAC address from PF

If the administrator has not assigned a MAC address to the VF via the
PF then handle it gracefully by generating a temporary MAC address.
This ensures that we always know when we have a random address and
udev won't get upset about it.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: Stefan Assmann <sassmann@kpanic.de>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/intel/ixgbevf/vf.c