xref: /linux/Documentation/ABI/testing/sysfs-bus-fcoe (revision 6a891b071b640e1de44c4a5117fa2c974dcfa84a)
1*6a891b07SRobert LoveWhat:		/sys/bus/fcoe/
2*6a891b07SRobert LoveDate:		August 2012
3*6a891b07SRobert LoveKernelVersion:	TBD
4*6a891b07SRobert LoveContact:	Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org
5*6a891b07SRobert LoveDescription:	The FCoE bus. Attributes in this directory are control interfaces.
6*6a891b07SRobert LoveAttributes:
7*6a891b07SRobert Love
8*6a891b07SRobert Love	ctlr_create: 'FCoE Controller' instance creation interface. Writing an
9*6a891b07SRobert Love		     <ifname> to this file will allocate and populate sysfs with a
10*6a891b07SRobert Love		     fcoe_ctlr_device (ctlr_X). The user can then configure any
11*6a891b07SRobert Love		     per-port settings and finally write to the fcoe_ctlr_device's
12*6a891b07SRobert Love		     'start' attribute to begin the kernel's discovery and login
13*6a891b07SRobert Love		     process.
14*6a891b07SRobert Love
15*6a891b07SRobert Love	ctlr_destroy: 'FCoE Controller' instance removal interface. Writing a
16*6a891b07SRobert Love		       fcoe_ctlr_device's sysfs name to this file will log the
17*6a891b07SRobert Love		       fcoe_ctlr_device out of the fabric or otherwise connected
18*6a891b07SRobert Love		       FCoE devices. It will also free all kernel memory allocated
19*6a891b07SRobert Love		       for this fcoe_ctlr_device and any structures associated
20*6a891b07SRobert Love		       with it, this includes the scsi_host.
21*6a891b07SRobert Love
22354d1123SRobert LoveWhat:		/sys/bus/fcoe/devices/ctlr_X
239a74e884SRobert LoveDate:		March 2012
249a74e884SRobert LoveKernelVersion:	TBD
259a74e884SRobert LoveContact:	Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org
26*6a891b07SRobert LoveDescription:	'FCoE Controller' instances on the fcoe bus.
27*6a891b07SRobert Love		The FCoE Controller now has a three stage creation process.
28*6a891b07SRobert Love		1) Write interface name to ctlr_create 2) Configure the FCoE
29*6a891b07SRobert Love		Controller (ctlr_X) 3) Enable the FCoE Controller to begin
30*6a891b07SRobert Love		discovery and login. The FCoE Controller is destroyed by
31*6a891b07SRobert Love		writing it's name, i.e. ctlr_X to the ctlr_delete file.
32*6a891b07SRobert Love
339a74e884SRobert LoveAttributes:
349a74e884SRobert Love
359a74e884SRobert Love	fcf_dev_loss_tmo: Device loss timeout peroid (see below). Changing
369a74e884SRobert Love			  this value will change the dev_loss_tmo for all
379a74e884SRobert Love			  FCFs discovered by this controller.
389a74e884SRobert Love
39*6a891b07SRobert Love	mode:		  Display or change the FCoE Controller's mode. Possible
40*6a891b07SRobert Love			  modes are 'Fabric' and 'VN2VN'. If a FCoE Controller
41*6a891b07SRobert Love			  is started in 'Fabric' mode then FIP FCF discovery is
42*6a891b07SRobert Love			  initiated and ultimately a fabric login is attempted.
43*6a891b07SRobert Love			  If a FCoE Controller is started in 'VN2VN' mode then
44*6a891b07SRobert Love			  FIP VN2VN discovery and login is performed. A FCoE
45*6a891b07SRobert Love			  Controller only supports one mode at a time.
46*6a891b07SRobert Love
47*6a891b07SRobert Love	enabled:	  Whether an FCoE controller is enabled or disabled.
48*6a891b07SRobert Love			  0 if disabled, 1 if enabled. Writing either 0 or 1
49*6a891b07SRobert Love			  to this file will enable or disable the FCoE controller.
50*6a891b07SRobert Love
5133cb82dcSRobert Love	lesb/link_fail:   Link Error Status Block (LESB) link failure count.
529a74e884SRobert Love
5333cb82dcSRobert Love	lesb/vlink_fail:  Link Error Status Block (LESB) virtual link
549a74e884SRobert Love			  failure count.
559a74e884SRobert Love
5633cb82dcSRobert Love	lesb/miss_fka:    Link Error Status Block (LESB) missed FCoE
579a74e884SRobert Love			  Initialization Protocol (FIP) Keep-Alives (FKA).
589a74e884SRobert Love
5933cb82dcSRobert Love	lesb/symb_err:    Link Error Status Block (LESB) symbolic error count.
609a74e884SRobert Love
6133cb82dcSRobert Love	lesb/err_block:   Link Error Status Block (LESB) block error count.
629a74e884SRobert Love
6333cb82dcSRobert Love	lesb/fcs_error:   Link Error Status Block (LESB) Fibre Channel
649a74e884SRobert Love			  Serivces error count.
659a74e884SRobert Love
669a74e884SRobert LoveNotes: ctlr_X (global increment starting at 0)
679a74e884SRobert Love
68354d1123SRobert LoveWhat:		/sys/bus/fcoe/devices/fcf_X
699a74e884SRobert LoveDate:		March 2012
709a74e884SRobert LoveKernelVersion:	TBD
719a74e884SRobert LoveContact:	Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org
729a74e884SRobert LoveDescription:	'FCoE FCF' instances on the fcoe bus. A FCF is a Fibre Channel
739a74e884SRobert Love		Forwarder, which is a FCoE switch that can accept FCoE
749a74e884SRobert Love		(Ethernet) packets, unpack them, and forward the embedded
759a74e884SRobert Love		Fibre Channel frames into a FC fabric. It can also take
769a74e884SRobert Love		outbound FC frames and pack them in Ethernet packets to
779a74e884SRobert Love		be sent to their destination on the Ethernet segment.
789a74e884SRobert LoveAttributes:
799a74e884SRobert Love
809a74e884SRobert Love	fabric_name: Identifies the fabric that the FCF services.
819a74e884SRobert Love
829a74e884SRobert Love	switch_name: Identifies the FCF.
839a74e884SRobert Love
849a74e884SRobert Love	priority:    The switch's priority amongst other FCFs on the same
859a74e884SRobert Love		     fabric.
869a74e884SRobert Love
879a74e884SRobert Love	selected:    1 indicates that the switch has been selected for use;
889a74e884SRobert Love		     0 indicates that the swich will not be used.
899a74e884SRobert Love
909a74e884SRobert Love	fc_map:      The Fibre Channel MAP
919a74e884SRobert Love
929a74e884SRobert Love	vfid:	     The Virtual Fabric ID
939a74e884SRobert Love
949a74e884SRobert Love	mac:         The FCF's MAC address
959a74e884SRobert Love
969a74e884SRobert Love	fka_peroid:  The FIP Keep-Alive peroid
979a74e884SRobert Love
989a74e884SRobert Love	fabric_state: The internal kernel state
999a74e884SRobert Love		      "Unknown" - Initialization value
1009a74e884SRobert Love		      "Disconnected" - No link to the FCF/fabric
1019a74e884SRobert Love		      "Connected" - Host is connected to the FCF
1029a74e884SRobert Love		      "Deleted" - FCF is being removed from the system
1039a74e884SRobert Love
1049a74e884SRobert Love	dev_loss_tmo: The device loss timeout peroid for this FCF.
1059a74e884SRobert Love
1069a74e884SRobert LoveNotes: A device loss infrastructre similar to the FC Transport's
1079a74e884SRobert Love       is present in fcoe_sysfs. It is nice to have so that a
1089a74e884SRobert Love       link flapping adapter doesn't continually advance the count
1099a74e884SRobert Love       used to identify the discovered FCF. FCFs will exist in a
1109a74e884SRobert Love       "Disconnected" state until either the timer expires and the
1119a74e884SRobert Love       FCF becomes "Deleted" or the FCF is rediscovered and becomes
1129a74e884SRobert Love       "Connected."
1139a74e884SRobert Love
1149a74e884SRobert Love
1159a74e884SRobert LoveUsers: The first user of this interface will be the fcoeadm application,
1169a74e884SRobert Love       which is commonly packaged in the fcoe-utils package.
117