mirror of https://gitee.com/openkylin/linux.git
bnx2x: Clear fip MAC when fcoe offload support is disabled
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: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com> Signed-off-by: Ariel Elior <ariel.elior@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5146f95df7
commit
bbf666c1af
|
@ -11750,8 +11750,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)
|
||||||
|
|
Loading…
Reference in New Issue