mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
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>
This commit is contained in:
parent
7ab8b0b432
commit
7a2414a50b
@ -450,9 +450,8 @@ static inline void be_vf_eth_addr_generate(struct be_adapter *adapter, u8 *mac)
|
|||||||
mac[5] = (u8)(addr & 0xFF);
|
mac[5] = (u8)(addr & 0xFF);
|
||||||
mac[4] = (u8)((addr >> 8) & 0xFF);
|
mac[4] = (u8)((addr >> 8) & 0xFF);
|
||||||
mac[3] = (u8)((addr >> 16) & 0xFF);
|
mac[3] = (u8)((addr >> 16) & 0xFF);
|
||||||
mac[2] = 0xC9;
|
/* Use the OUI from the current MAC address */
|
||||||
mac[1] = 0x00;
|
memcpy(mac, adapter->netdev->dev_addr, 3);
|
||||||
mac[0] = 0x00;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void be_cq_notify(struct be_adapter *adapter, u16 qid, bool arm,
|
extern void be_cq_notify(struct be_adapter *adapter, u16 qid, bool arm,
|
||||||
|
Loading…
Reference in New Issue
Block a user