Page MenuHomeFreeBSD

Add read-only sysctls for all tunables in the cxgbe(4) driver.
ClosedPublic

Authored by jhb on Nov 27 2018, 5:08 PM.

Details

Test Plan
  • Checked sysctl hw.cxgbe output after loading the driver.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb created this revision.Nov 27 2018, 5:08 PM
np accepted this revision.Nov 27 2018, 5:12 PM
This revision is now accepted and ready to land.Nov 27 2018, 5:12 PM
jhb added a comment.Nov 27 2018, 5:21 PM

Some sample output:

# sysctl hw.cxgbe
hw.cxgbe.lro_mbufs: 0
hw.cxgbe.lro_entries: 8
hw.cxgbe.tscale: 1
hw.cxgbe.safest_rx_cluster: 4096
hw.cxgbe.largest_rx_cluster: 16384
hw.cxgbe.allow_mbufs_in_cluster: 1
hw.cxgbe.fl_pack: -1
hw.cxgbe.buffer_packing: -1
hw.cxgbe.cong_drop: 0
hw.cxgbe.spg_len: 64
hw.cxgbe.fl_pad: -1
hw.cxgbe.fl_pktshift: 0
hw.cxgbe.cop_managed_offloading: 0
hw.cxgbe.panic_on_fatal_err: 0
hw.cxgbe.pcie_relaxed_ordering: 0
hw.cxgbe.num_vis: 1
hw.cxgbe.fcoecaps_allowed: 0
hw.cxgbe.iscsicaps_allowed: 67
hw.cxgbe.cryptocaps_allowed: -1
hw.cxgbe.rdmacaps_allowed: 3
hw.cxgbe.toecaps_allowed: 1
hw.cxgbe.niccaps_allowed: 33
hw.cxgbe.switchcaps_allowed: 3
hw.cxgbe.linkcaps_allowed: 0
hw.cxgbe.nbmcaps_allowed: 0
hw.cxgbe.fw_install: 1
hw.cxgbe.autoneg: -1
hw.cxgbe.fec: -1
hw.cxgbe.pause_settings: 7
hw.cxgbe.config_file: default
hw.cxgbe.interrupt_types: 7
hw.cxgbe.qsize_rxq: 1024
hw.cxgbe.qsize_txq: 1024
hw.cxgbe.holdoff_pktc_idx: -1
hw.cxgbe.holdoff_timer_idx: 1
hw.cxgbe.holdoff_pktc_idx_ofld: -1
hw.cxgbe.holdoff_timer_idx_ofld: 1
hw.cxgbe.nofldrxq_vi: 1
hw.cxgbe.nofldtxq_vi: 1
hw.cxgbe.nofldrxq: 2
hw.cxgbe.nofldtxq: 8
hw.cxgbe.rsrv_noflowq: 0
hw.cxgbe.nrxq_vi: 1
hw.cxgbe.ntxq_vi: 1
hw.cxgbe.nrxq: 8
hw.cxgbe.ntxq: 8
hw.cxgbe.toe.rexmt_backoff.15: -1
hw.cxgbe.toe.rexmt_backoff.14: -1
hw.cxgbe.toe.rexmt_backoff.13: -1
hw.cxgbe.toe.rexmt_backoff.12: -1
hw.cxgbe.toe.rexmt_backoff.11: -1
hw.cxgbe.toe.rexmt_backoff.10: -1
hw.cxgbe.toe.rexmt_backoff.9: -1
hw.cxgbe.toe.rexmt_backoff.8: -1
hw.cxgbe.toe.rexmt_backoff.7: -1
hw.cxgbe.toe.rexmt_backoff.6: -1
hw.cxgbe.toe.rexmt_backoff.5: -1
hw.cxgbe.toe.rexmt_backoff.4: -1
hw.cxgbe.toe.rexmt_backoff.3: -1
hw.cxgbe.toe.rexmt_backoff.2: -1
hw.cxgbe.toe.rexmt_backoff.1: -1
hw.cxgbe.toe.rexmt_backoff.0: -1
hw.cxgbe.toe.rexmt_count: 0
hw.cxgbe.toe.rexmt_max: 0
hw.cxgbe.toe.rexmt_min: 0
hw.cxgbe.toe.keepalive_count: 0
hw.cxgbe.toe.keepalive_interval: 0
hw.cxgbe.toe.keepalive_idle: 0
# sysctl -d hw.cxgbe
hw.cxgbe: cxgbe(4) parameters
hw.cxgbe.lro_mbufs: Enable presorting of LRO frames
hw.cxgbe.lro_entries: Number of LRO entries per RX queue
hw.cxgbe.tscale: Interrupt holdoff timer scale on T6+
hw.cxgbe.safest_rx_cluster: Safe rx cluster (bytes)
hw.cxgbe.largest_rx_cluster: Largest rx cluster (bytes)
hw.cxgbe.allow_mbufs_in_cluster: Allow driver to create mbufs within a rx cluster
hw.cxgbe.fl_pack: payload pack boundary (bytes)
hw.cxgbe.buffer_packing: Enable buffer packing
hw.cxgbe.cong_drop: Congestion control for RX queues (0 = backpressure, 1 = drop
hw.cxgbe.spg_len: status page size (bytes)
hw.cxgbe.fl_pad: payload pad boundary (bytes)
hw.cxgbe.fl_pktshift: payload DMA offset in rx buffer (bytes)
hw.cxgbe.cop_managed_offloading: COP (Connection Offload Policy) controls all TOE offload
hw.cxgbe.panic_on_fatal_err: panic on fatal firmware errors
hw.cxgbe.pcie_relaxed_ordering: PCIe Relaxed Ordering: 0 = disable, 1 = enable, 2 = leave alone
hw.cxgbe.num_vis: Number of VIs per port
hw.cxgbe.fcoecaps_allowed: Default FCoE capabilities
hw.cxgbe.iscsicaps_allowed: Default iSCSI capabilities
hw.cxgbe.cryptocaps_allowed: Default crypto capabilities
hw.cxgbe.rdmacaps_allowed: Default RDMA capabilities
hw.cxgbe.toecaps_allowed: Default TCP offload capabilities
hw.cxgbe.niccaps_allowed: Default NIC capabilities
hw.cxgbe.switchcaps_allowed: Default switch capabilities
hw.cxgbe.linkcaps_allowed: Default link capabilities
hw.cxgbe.nbmcaps_allowed: Default NBM capabilities
hw.cxgbe.fw_install: Firmware auto-install (0 = prohibited, 1 = allowed, 2 = encouraged)
hw.cxgbe.autoneg: Link autonegotiation
hw.cxgbe.fec: Forward Error Correction (bit 0 = RS, bit 1 = BASER_RS)
hw.cxgbe.pause_settings: PAUSE settings (bit 0 = rx_pause, 1 = tx_pause, 2 = pause_autoneg)
hw.cxgbe.config_file: Firmware configuration file
hw.cxgbe.interrupt_types: Interrupt types allowed (bit 0 = INTx, 1 = MSI, 2 = MSI-X)
hw.cxgbe.qsize_rxq: Number of descriptors in each RX queue
hw.cxgbe.qsize_txq: Number of descriptors in each TX queue
hw.cxgbe.holdoff_pktc_idx: Holdoff packet counter index
hw.cxgbe.holdoff_timer_idx: Holdoff timer index
hw.cxgbe.holdoff_pktc_idx_ofld: holdoff packet counter index for offload queues
hw.cxgbe.holdoff_timer_idx_ofld: Holdoff timer index for offload queues
hw.cxgbe.nofldrxq_vi: Number of offload RX queues per VI
hw.cxgbe.nofldtxq_vi: Number of offload TX queues per VI
hw.cxgbe.nofldrxq: Number of offload RX queues per port
hw.cxgbe.nofldtxq: Number of offload TX queues per port
hw.cxgbe.rsrv_noflowq: Reserve TX queue 0 of each VI for non-flowid packets
hw.cxgbe.nrxq_vi: Number of RX queues per VI
hw.cxgbe.ntxq_vi: Number of TX queues per VI
hw.cxgbe.nrxq: Number of RX queues per port
hw.cxgbe.ntxq: Number of TX queues per port
hw.cxgbe.toe.rexmt_backoff.15: 
hw.cxgbe.toe.rexmt_backoff.14: 
hw.cxgbe.toe.rexmt_backoff.13: 
hw.cxgbe.toe.rexmt_backoff.12: 
hw.cxgbe.toe.rexmt_backoff.11: 
hw.cxgbe.toe.rexmt_backoff.10: 
hw.cxgbe.toe.rexmt_backoff.9: 
hw.cxgbe.toe.rexmt_backoff.8: 
hw.cxgbe.toe.rexmt_backoff.7: 
hw.cxgbe.toe.rexmt_backoff.6: 
hw.cxgbe.toe.rexmt_backoff.5: 
hw.cxgbe.toe.rexmt_backoff.4: 
hw.cxgbe.toe.rexmt_backoff.3: 
hw.cxgbe.toe.rexmt_backoff.2: 
hw.cxgbe.toe.rexmt_backoff.1: 
hw.cxgbe.toe.rexmt_backoff.0: 
hw.cxgbe.toe.rexmt_count: Number of TOE retransmissions before abort
hw.cxgbe.toe.rexmt_max: Maximum TOE retransmit interval (us)
hw.cxgbe.toe.rexmt_min: Minimum TOE retransmit interval (us)
hw.cxgbe.toe.keepalive_count: Number of TOE keepalive probes before abort
hw.cxgbe.toe.keepalive_interval: TOE keepalive interval timer (us)
hw.cxgbe.toe.keepalive_idle: TOE keepalive idle timer (us)
This revision was automatically updated to reflect the committed changes.