]> git.karo-electronics.de Git - linux-beck.git/commit
igbvf: be sane about random MAC addresses
authorMitch A Williams <mitch.a.williams@intel.com>
Fri, 18 Jan 2013 08:57:20 +0000 (08:57 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 28 Jan 2013 11:18:13 +0000 (03:18 -0800)
commit8d56b6d507e0c4f6e24680fd202cbaad445935c5
tree15d1593e41ee1ab11ad162eb0fe1f89fbd641c8a
parent5ac6f91d39e0884813dc010e14552143cd1d0d8b
igbvf: be sane about random MAC addresses

Tighten up some of the code surrounding MAC addresses. Since the PF is
now giving all zeros instead of a random address, check for this case
and generate a random address. This ensures that we always know when we
have a random address and udev won't get upset about it.

Additionally, tighten up some of the log messages and clean up the
formatting.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: Stefan Assmann <sassmann@kpanic.de>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Tested-by: Stefan Assmann <sassmann@redhat.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igbvf/netdev.c