be2net: For the VF MAC, use the OUI from current MAC address
authorAjit Khaparde <ajit.khaparde@emulex.com>
Fri, 11 Feb 2011 13:36:18 +0000 (13:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Feb 2011 05:14:45 +0000 (21:14 -0800)
Currently we are always using the Emulex OUI for a VF MAC address
while generating MAC for a VF.  Use OUI from current MAC instead.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h

index add0b93350dd9fb14e73706cdf33c986f100c650..3a800e2bc94b78c3bb9fec49d114a21f34d92721 100644 (file)
@@ -450,9 +450,8 @@ static inline void be_vf_eth_addr_generate(struct be_adapter *adapter, u8 *mac)
        mac[5] = (u8)(addr & 0xFF);
        mac[4] = (u8)((addr >> 8) & 0xFF);
        mac[3] = (u8)((addr >> 16) & 0xFF);
-       mac[2] = 0xC9;
-       mac[1] = 0x00;
-       mac[0] = 0x00;
+       /* Use the OUI from the current MAC address */
+       memcpy(mac, adapter->netdev->dev_addr, 3);
 }
 
 extern void be_cq_notify(struct be_adapter *adapter, u16 qid, bool arm,