Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f72839d0 authored by Dmitry Kravkov's avatar Dmitry Kravkov Committed by David S. Miller
Browse files

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: default avatarDmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c14a09b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);