OSDN Git Service

fcoe: Use the fcoe_sysfs control interface
authorRobert Love <robert.w.love@intel.com>
Tue, 27 Nov 2012 06:53:35 +0000 (06:53 +0000)
committerRobert Love <robert.w.love@intel.com>
Fri, 14 Dec 2012 18:38:54 +0000 (10:38 -0800)
commit435c86679a24ead623c8a47ca31038e250a75e05
tree2ee9bc3a2d338bc641c099f9c7aa792bf1db0460
parent6a891b071b640e1de44c4a5117fa2c974dcfa84a
fcoe: Use the fcoe_sysfs control interface

This patch adds support for the new fcoe_sysfs
control interface to fcoe.ko. It keeps the deprecated
interface in tact and therefore either the legacy
or the new control interfaces can be used. A mixed mode
is not supported. A user must either use the new
interfaces or the old ones, but not both.

The fcoe_ctlr's link state is now driven by both the
netdev link state as well as the fcoe_ctlr_device's
enabled attribute. The link must be up and the
fcoe_ctlr_device must be enabled before the FCoE
Controller starts discovery or login.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
drivers/scsi/fcoe/fcoe.c
drivers/scsi/fcoe/fcoe_ctlr.c