]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: Prevent false warning for lack of FC NPIV
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Tue, 15 Mar 2016 17:52:04 +0000 (19:52 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 02:28:49 +0000 (19:28 -0700)
commit767c31172d6b3cc65b932d67942c08afd54fff76
tree9170d9ee0dfb0da9926e023ccc9b4fb291c84528
parent73763da6884a9395793eb259cb2407af9b42cbed
bnx2x: Prevent false warning for lack of FC NPIV

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.

Reported-by: Andrew Patterson <andrew.patterson@hpe.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23718192
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c