mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
bnx2x: use SAN Mac for FCoE.
Current logic causes chips running in switch dependent multi-function FCoE mode not to configure their MAC, leading to an all 0s MAC. This patch configures the interface with the SAN Mac instead. Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Ariel Elior <ariele@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c14a09b785
commit
f72839d036
1 changed files with 1 additions and 1 deletions
|
@ -10789,7 +10789,7 @@ static void bnx2x_get_cnic_mac_hwinfo(struct bnx2x *bp)
|
|||
/* Zero primary MAC configuration */
|
||||
memset(bp->dev->dev_addr, 0, ETH_ALEN);
|
||||
|
||||
if (IS_MF_FCOE_AFEX(bp))
|
||||
if (IS_MF_FCOE_AFEX(bp) || IS_MF_FCOE_SD(bp))
|
||||
/* use FIP MAC as primary MAC */
|
||||
memcpy(bp->dev->dev_addr, fip_mac, ETH_ALEN);
|
||||
|
||||
|
|
Loading…
Reference in a new issue