]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2fc: NPIV ports go offline when interface is brought down & up
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Tue, 24 Jan 2012 02:00:48 +0000 (18:00 -0800)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 01:36:53 +0000 (09:36 +0800)
commitaa7588c56bcbd3f9af4356db4b46b32d8e50bf13
treea76c541e7f09dcab47db5dc4f8f9125dcf814aa2
parent5d24dc28d0a45cb160d0d62ee5176b56e9de2c1b
bnx2fc: NPIV ports go offline when interface is brought down & up

When there are 255 NPIV ports, and the interface is brought down & up, both
physical and NPIV ports are logged off and never logged back in. Since
discovery happens on single CPU, XID resources on that CPU will be limited,
which when exhausted the discovery fails. Increase the XID resource range to
ensure that the discovery completes successfully. Also ensure that
fc_exch_mgr_alloc() doesn't fail on the system that has lower number of CPUs.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 7d742f659e00f08016a4446a9134036e47f9a0cf)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/bnx2fc/bnx2fc.h
drivers/scsi/bnx2fc/bnx2fc_fcoe.c