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

Commit 40790571 authored by Sudarsana Reddy Kalluru's avatar Sudarsana Reddy Kalluru Committed by Greg Kroah-Hartman
Browse files

bnx2x: Clear fip MAC when fcoe offload support is disabled



[ Upstream commit bbf666c1af916ed74795493c564df6fad462cc80 ]

On some customer setups it was observed that shmem contains a non-zero fip
MAC for 57711 which would lead to enabling of SW FCoE.
Add a software workaround to clear the bad fip mac address if no FCoE
connections are supported.

Signed-off-by: default avatarSudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: default avatarAriel Elior <ariel.elior@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 1231e259
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -11733,8 +11733,10 @@ static void bnx2x_get_fcoe_info(struct bnx2x *bp)
	 * If maximum allowed number of connections is zero -
	 * If maximum allowed number of connections is zero -
	 * disable the feature.
	 * disable the feature.
	 */
	 */
	if (!bp->cnic_eth_dev.max_fcoe_conn)
	if (!bp->cnic_eth_dev.max_fcoe_conn) {
		bp->flags |= NO_FCOE_FLAG;
		bp->flags |= NO_FCOE_FLAG;
		eth_zero_addr(bp->fip_mac);
	}
}
}


static void bnx2x_get_cnic_info(struct bnx2x *bp)
static void bnx2x_get_cnic_info(struct bnx2x *bp)