be2net: fix to dynamically generate MAC Address for VFs
authorAjit Khaparde <ajitk@serverengines.com>
Wed, 25 Aug 2010 00:32:33 +0000 (00:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2010 23:41:25 +0000 (16:41 -0700)
commit6d87f5c3ac5856bf1309700e2f15e2e7fcd3c578
tree2ba12a7c04aeb3ecef77881f03147b334dc9fe9b
parentaa7c6e5fa08bb5014b6432a690d28748f11e93fc
be2net: fix to dynamically generate MAC Address for VFs

The BE ASIC/firmware doesnot reserve and assign MAC address for VFs.
This results in the VF interfaces being created with MAC Address 0.
The code change proposed takes the MAC address of PF to generate a seed.
MAC Address for VFs are assigned incrementally starting from the seed.
These addresses are programmed in the ASIC by the PF and the VF driver
queries for the MAC address during its probe.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h
drivers/net/benet/be_main.c