]> git.baikalelectronics.ru Git - kernel.git/commit
libfcoe: Fix fcoe_sysfs VN2VN mode
authorRobert Love <robert.w.love@intel.com>
Mon, 25 Mar 2013 18:00:28 +0000 (11:00 -0700)
committerRobert Love <robert.w.love@intel.com>
Mon, 25 Mar 2013 23:04:22 +0000 (16:04 -0700)
commita4a585082f454953831267c5d53ce6db7256b413
treeb9b6916b3806d0daa61dcc060a884f8c5881e66e
parentd59e620ab20836e8bccb1c4a050cc6738d8e24d3
libfcoe: Fix fcoe_sysfs VN2VN mode

The libfc discovery layer is being initialized in the
'create' paths for both legacy libfcoe module parameters
and fcoe_sysfs control interfaces. The problem is that
for VN2VN mode the discovery layer is initialized as if
it were in 'fabric' mode and it is not re-configured when
the mode is changed to 'vn2vn'.

This patch splits out code that needs to be initialized
once and code that can, and should be, re-configured when
the mode changes. Additionally this patch makes that change
so that the discovery layer can be reconfigured to the
libfcoe implementation when in 'vn2vn' mode.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Tested-by: Jack Morgan <jack.morgan@intel.com>
Reviewed-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
drivers/scsi/fcoe/fcoe_ctlr.c