Patch "bnx2x: Prevent false warning for lack of FC NPIV" has been added to the 4.4-stable tree
This is a note to let you know that I've just added the patch titled
bnx2x: Prevent false warning for lack of FC NPIV
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
bnx2x-prevent-false-warning-for-lack-of-fc-npiv.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
1e6bb1a3540fec3ef112b9a89dda88e684c3ff59Mon Sep 17 00:00:00 2001
From: Yuval Mintz <[email protected]>
Date: Tue, 15 Mar 2016 19:52:04 +0200
Subject: bnx2x: Prevent false warning for lack of FC NPIV
From: Yuval Mintz <[email protected]>
commit 1e6bb1a3540fec3ef112b9a89dda88e684c3ff59 upstream.
Not all adapters have FC-NPIV configured. If bnx2fc is used with such an adapter, driver would read irrelevant data from the the nvram and log "FC-NPIV table with bad length..." In system logs.
Simply accept that reading '0' as the feature offset in nvram indicates the feature isn't there and return.
--- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +4 -0
@@ -14819,6 +14819,10 @@ static int bnx2x_get_fc_npiv(struct net_ } offset =SHMEM2_RD (bp, fc_npiv_nvram_tbl_addr[BP_PORT (bp)]); +if (!offset) { +DP (BNX2X_MSG_MCP ,"No FC-NPIV in NVRAM\n" ); + goto out; + }DP (BNX2X_MSG_MCP ,"Offset of FC-NPIV in NVRAM: %08x\n" , offset);/* Read the table contents from nvram */
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/bnx2x-prevent-false-warning-for-lack-of-fc-npiv.patch