Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

/sys/class/iscsi_connection

FieldValue
SubsystemiSCSI transport, drivers/scsi/scsi_transport_iscsi.c (transport class iscsi_connection_class via DECLARE_TRANSPORT_CLASS, name “iscsi_connection”)
Config gateCONFIG_SCSI_ISCSI_ATTRS (see iscsi_transport.md)
ABI documentationnone found - checked the stable/, testing/ and obsolete/ ABI listings and grep for iscsi; attributes below are named by drivers/scsi/scsi_transport_iscsi.c (iscsi_conn_attrs[])
Sincenot stated by the sources checked
Live (5.10.134 host)class present with 0 entries
Ledger IDSYSC-iscsi_connection

What it represents

One device per TCP/IP connection inside an iSCSI session. A single-connection session has one; multiconnection sessions (MC/S) have several. The device carries the live login/transport parameters and the peer address state.

Relationship to the device model

Connection devices are children of their session device: the show helpers resolve the session with iscsi_dev_to_session(dev->parent) (scsi_transport_iscsi.c), so the /sys/devices hierarchy nests connections under sessions under hosts. Which of the attributes below appear is decided per transport by attr_is_visible.

Attributes (representative; source: scsi_transport_iscsi.c iscsi_conn_attrs[])

AttributeR/WMeaning
address, portROPeer (target) IP address and port
persistent_address, persistent_portROAddress and port recorded in the persisted configuration
local_ipaddr, local_portROLocal address and port of the connection
exp_statsn, statsnROExpected and current status/command sequence numbers
max_recv_dlength, max_xmit_dlengthRONegotiated PDU length limits
header_digest, data_digestRODigest negotiation state
ping_tmo, recv_tmo, keepalive_tmoROTimeout parameters (ISCSI_PARAM_PING_TMO et al.)
tcp_wsf, tcp_xmit_wsf, tcp_recv_wsf, tcp_timer_scale, tcp_timestamp_enable, tcp_nagle_disableROTCP tuning state
stateROConnection state string (show_conn_state)
ipv4_tos, ipv6_traffic_class, ipv6_flow_label, is_fw_assigned_ipv6, fragment_disable, ifmarker, ofmarkerROAddress-family specific and marker state

Safety and writes

All connection attributes are read-only. Peer and persistent address/port pairs are the values tools print when diagnosing a hung session. Empty on the container host.

References