]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 8 Nov 2016 16:45:47 +0000 (16:45 +0000)
commitf57a280744dccb43560f45f6039f8f682cce9139
treec756ad0a219686f8a1d6f42ee9065cb38b58ccdd
parent948393729dfe8b172cbd2b461dd5aae276122446
bnx2x: Prevent false warning for lack of FC NPIV

BugLink: http://bugs.launchpad.net/bugs/1637510
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.

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>
Signed-off-by: Juerg Haefliger <juerg.haefliger@hpe.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c