diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2011-02-11 08:36:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-12 00:14:45 -0500 |
commit | 7a2414a50b071d84dae8fbca51d10009e07e535f (patch) | |
tree | 4a64ef02392045959634174e08811b42baa0e9f9 /drivers/net/benet/be.h | |
parent | 7ab8b0b432cf5110624858e23ef264982e542f17 (diff) |
be2net: For the VF MAC, use the OUI from current MAC address
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>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r-- | drivers/net/benet/be.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index add0b93350dd..3a800e2bc94b 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h | |||
@@ -450,9 +450,8 @@ static inline void be_vf_eth_addr_generate(struct be_adapter *adapter, u8 *mac) | |||
450 | mac[5] = (u8)(addr & 0xFF); | 450 | mac[5] = (u8)(addr & 0xFF); |
451 | mac[4] = (u8)((addr >> 8) & 0xFF); | 451 | mac[4] = (u8)((addr >> 8) & 0xFF); |
452 | mac[3] = (u8)((addr >> 16) & 0xFF); | 452 | mac[3] = (u8)((addr >> 16) & 0xFF); |
453 | mac[2] = 0xC9; | 453 | /* Use the OUI from the current MAC address */ |
454 | mac[1] = 0x00; | 454 | memcpy(mac, adapter->netdev->dev_addr, 3); |
455 | mac[0] = 0x00; | ||
456 | } | 455 | } |
457 | 456 | ||
458 | extern void be_cq_notify(struct be_adapter *adapter, u16 qid, bool arm, | 457 | extern void be_cq_notify(struct be_adapter *adapter, u16 qid, bool arm, |