136ea2fe3SNavdeep Parhar.\" Copyright (c) 2015, 2018 Chelsio Inc 254912308SNavdeep Parhar.\" All rights reserved. 354912308SNavdeep Parhar.\" 454912308SNavdeep Parhar.\" Redistribution and use in source and binary forms, with or without 554912308SNavdeep Parhar.\" modification, are permitted provided that the following conditions are met: 654912308SNavdeep Parhar.\" 754912308SNavdeep Parhar.\" 1. Redistributions of source code must retain the above copyright notice, 854912308SNavdeep Parhar.\" this list of conditions and the following disclaimer. 954912308SNavdeep Parhar.\" 1054912308SNavdeep Parhar.\" 2. Redistributions in binary form must reproduce the above copyright 1154912308SNavdeep Parhar.\" notice, this list of conditions and the following disclaimer in the 1254912308SNavdeep Parhar.\" documentation and/or other materials provided with the distribution. 1354912308SNavdeep Parhar.\" 1454912308SNavdeep Parhar.\" 3. Neither the name of the Chelsio Inc nor the names of its 1554912308SNavdeep Parhar.\" contributors may be used to endorse or promote products derived from 1654912308SNavdeep Parhar.\" this software without specific prior written permission. 1754912308SNavdeep Parhar.\" 1854912308SNavdeep Parhar.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 1954912308SNavdeep Parhar.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2054912308SNavdeep Parhar.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2154912308SNavdeep Parhar.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 2254912308SNavdeep Parhar.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2354912308SNavdeep Parhar.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2454912308SNavdeep Parhar.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2554912308SNavdeep Parhar.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2654912308SNavdeep Parhar.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2754912308SNavdeep Parhar.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2854912308SNavdeep Parhar.\" POSSIBILITY OF SUCH DAMAGE. 2954912308SNavdeep Parhar.\" 3054912308SNavdeep Parhar.\" * Other names and brands may be claimed as the property of others. 3154912308SNavdeep Parhar.\" 3254912308SNavdeep Parhar.\" $FreeBSD$ 3354912308SNavdeep Parhar.\" 34*93dcd077SNavdeep Parhar.Dd Sep 18, 2018 3554912308SNavdeep Parhar.Dt CXGBETOOL 8 3654912308SNavdeep Parhar.Os 3754912308SNavdeep Parhar.Sh NAME 3854912308SNavdeep Parhar.Nm cxgbetool 3954912308SNavdeep Parhar.Nd Userspace companion to 4054912308SNavdeep Parhar.Xr cxgbe 4 4154912308SNavdeep Parhar.Sh SYNOPSIS 4254912308SNavdeep Parhar.Bl -item -compact 4354912308SNavdeep Parhar.It 4454912308SNavdeep Parhar.Nm Ar nexus command Op Ar parameter ... 4554912308SNavdeep Parhar.Pp 4654912308SNavdeep Parhar.It 4754912308SNavdeep Parhar.Nm Ar nexus Cm clearstats Ar port_id 4854912308SNavdeep Parhar.It 4954912308SNavdeep Parhar.Nm Ar nexus Cm context Bro Cm ingress | egress | fl | cong Brc Ar cntxt_id 5054912308SNavdeep Parhar.It 5136ea2fe3SNavdeep Parhar.Nm Ar nexus Cm hashfilter mode 5254912308SNavdeep Parhar.It 5336ea2fe3SNavdeep Parhar.Nm Ar nexus Cm hashfilter Ar filter-specification 5436ea2fe3SNavdeep Parhar.It 5536ea2fe3SNavdeep Parhar.Nm Ar nexus Cm hashfilter Ar idx Cm delete 5636ea2fe3SNavdeep Parhar.It 5736ea2fe3SNavdeep Parhar.Nm Ar nexus Cm hashfilter list 5836ea2fe3SNavdeep Parhar.It 5936ea2fe3SNavdeep Parhar.Nm Ar nexus Cm filter mode 6036ea2fe3SNavdeep Parhar.It 6136ea2fe3SNavdeep Parhar.Nm Ar nexus Cm filter Ar idx Ar filter-specification 6236ea2fe3SNavdeep Parhar.It 636ba81353SNavdeep Parhar.Nm Ar nexus Cm filter Ar idx Cm delete Op Cm prio Bro Cm 0 | 1 Brc 6454912308SNavdeep Parhar.It 6554912308SNavdeep Parhar.Nm Ar nexus Cm filter list 6654912308SNavdeep Parhar.It 6754912308SNavdeep Parhar.Nm Ar nexus Cm i2c Ar port_id devaddr addr Op Ar len 6854912308SNavdeep Parhar.It 6954912308SNavdeep Parhar.Nm Ar nexus Cm loadcfg Ar fw-config.txt 7054912308SNavdeep Parhar.It 7154912308SNavdeep Parhar.Nm Ar nexus Cm loadcfg clear 7254912308SNavdeep Parhar.It 7354912308SNavdeep Parhar.Nm Ar nexus Cm loadfw Ar fw-image.bin 7454912308SNavdeep Parhar.It 7554912308SNavdeep Parhar.Nm Ar nexus Cm memdump Ar addr len 7654912308SNavdeep Parhar.It 771131c927SNavdeep Parhar.Nm Ar nexus Cm policy Ar cop.txt 781131c927SNavdeep Parhar.It 791131c927SNavdeep Parhar.Nm Ar nexus Cm policy clear 801131c927SNavdeep Parhar.It 8154912308SNavdeep Parhar.Nm Ar nexus Bro Cm reg | reg64 Brc Ar addr Ns Op Ar =val 8254912308SNavdeep Parhar.It 8354912308SNavdeep Parhar.Nm Ar nexus Cm regdump Op Ar register-block ... 8454912308SNavdeep Parhar.It 8554912308SNavdeep Parhar.Nm Ar nexus Cm sched-class Ar sub-command Op Ar param Ar value 8654912308SNavdeep Parhar.It 8754912308SNavdeep Parhar.Nm Ar nexus Cm sched-queue Ar port Ar queue Ar class 8854912308SNavdeep Parhar.It 8954912308SNavdeep Parhar.Nm Ar nexus Cm stdio 9054912308SNavdeep Parhar.It 9154912308SNavdeep Parhar.Nm Ar nexus Cm tcb Ar tid 9254912308SNavdeep Parhar.El 9354912308SNavdeep Parhar.Sh DESCRIPTION 9454912308SNavdeep Parhar.Nm 9554912308SNavdeep Parharprovides command-line access to features and debug facilities exported by 9654912308SNavdeep Parhar.Xr cxgbe 4 9754912308SNavdeep Parharvia private ioctls. 9854912308SNavdeep ParharThe target nexus device, 9954912308SNavdeep Parhar.Va t4nex%d 10054912308SNavdeep Parhar, is always the first argument. 10154912308SNavdeep Parhar(The parent nexus for an Ethernet port 10254912308SNavdeep Parhar.Va cxgbe%d 10354912308SNavdeep Parharis listed in 10454912308SNavdeep Parhar.Va dev.cxgbe.%d.%parent 10554912308SNavdeep Parharin the 10654912308SNavdeep Parhar.Xr sysctl 8 10754912308SNavdeep ParharMIB). 10854912308SNavdeep ParharThe rest consists of a command and any parameters required by that command. 10954912308SNavdeep Parhar.Ss Commands 11054912308SNavdeep Parhar.Bl -ohang 11154912308SNavdeep Parhar.It Cm clearstats Ar port_id 11254912308SNavdeep ParharClear all transmit, receive, and error statistics of all queues associated 11354912308SNavdeep Parharwith a port. 11454912308SNavdeep ParharThe total number of ports attached to a nexus is listed in 11554912308SNavdeep Parhar.Va dev.t4nex.%d.nports 11654912308SNavdeep Parharand the 0 based 11754912308SNavdeep Parhar.Ar port_id 11854912308SNavdeep Parharidentifies a port within this range. 11954912308SNavdeep Parhar.Pp 12054912308SNavdeep Parhar.Bl -item -compact 12154912308SNavdeep Parhar.It 12254912308SNavdeep Parhar.Cm context ingress Ar ingress_cntxt_id 12354912308SNavdeep Parhar.It 12454912308SNavdeep Parhar.Cm context cong Ar ingress_cntxt_id 12554912308SNavdeep Parhar.It 12654912308SNavdeep Parhar.Cm context egress Ar egress_cntxt_id 12754912308SNavdeep Parhar.It 12854912308SNavdeep Parhar.Cm context fl Ar flm_cntxt_id 12954912308SNavdeep Parhar.El 13054912308SNavdeep ParharDisplay hardware context for an ingress queue, congestion manager, egress 13154912308SNavdeep Parharqueue, or freelist manager. 13254912308SNavdeep Parhar.Bl -tag -width ingress_cntxt_id -compact 13354912308SNavdeep Parhar.It Ar ingress_cntxt_id 13454912308SNavdeep Parharcontext id of an ingress queue -- the value listed in one of 13554912308SNavdeep Parhar.Va dev.t4nex.%d.fwq.cntxt_id Ns , 13654912308SNavdeep Parhar.Va dev.cxgbe.%d.rxq.%d.cntxt_id Ns , 13754912308SNavdeep Parharor 13854912308SNavdeep Parhar.Va dev.cxgbe.%d.ofld_rxq.%d.cntxt_id Ns . 13954912308SNavdeep Parhar.It Ar egress_cntxt_id 14054912308SNavdeep Parharcontext id of an egress queue -- the value listed in one of 14154912308SNavdeep Parhar.Va dev.t4nex.%d.mgmtq.cntxt_id Ns , 14254912308SNavdeep Parhar.Va dev.cxgbe.%d.txq.%d.cntxt_id Ns , 14354912308SNavdeep Parhar.Va dev.cxgbe.%d.ctrlq.%d.cntxt_id Ns , 14454912308SNavdeep Parhar.Va dev.cxgbe.%d.ofld_txq.%d.cntxt_id Ns , 14554912308SNavdeep Parhar.Va dev.cxgbe.%d.rxq.%d.fl.cntxt_id Ns , 14654912308SNavdeep Parharor 14754912308SNavdeep Parhar.Va dev.cxgbe.%d.ofld_rxq.%d.fl.cntxt_id Ns . 14854912308SNavdeep ParharNote that freelists are egress queues too. 14954912308SNavdeep Parhar.It Ar flm_cntxt_id 15059daefd7SEnji Coopercontext id of a freelist manager. 15159daefd7SEnji CooperThe FLM context id is displayed in the 15254912308SNavdeep Parharegress context dump of a freelist as FLMcontextID. 15354912308SNavdeep Parhar.El 15436ea2fe3SNavdeep Parhar.Pp 15536ea2fe3SNavdeep Parhar.Bl -item -compact 15636ea2fe3SNavdeep Parhar.It 15736ea2fe3SNavdeep Parhar.Cm hashfilter mode 15836ea2fe3SNavdeep Parhar.It 15936ea2fe3SNavdeep Parhar.Cm filter mode 16036ea2fe3SNavdeep Parhar.El 16136ea2fe3SNavdeep ParharDisplay a list of match-criteria available for use in filter rules. 16236ea2fe3SNavdeep ParharA full list of match-criteria known to the chip is in the table below but not 16336ea2fe3SNavdeep Parharall can be used together and the firmware sets up the available parameters based 16436ea2fe3SNavdeep Parharon "filterMode" in the configuration file. 16536ea2fe3SNavdeep ParharEvery filter must conform to the filter mode -- multiple match criteria per 16636ea2fe3SNavdeep Parharfilter are allowed but only from among those in the current setting of the 16736ea2fe3SNavdeep Parharfilter mode. 16836ea2fe3SNavdeep ParharThe filter mode for hash filters is a subset of that for normal TCAM filters and 16936ea2fe3SNavdeep Parhardepends on the "filterMask" setting in the firmware configuration file. 17036ea2fe3SNavdeep ParharHash filters do not support masked matches and an exact value for every 17136ea2fe3SNavdeep Parharparameter in the output of "hashfilter mode" (except ipv4/ipv6) must be provided 17236ea2fe3SNavdeep Parharwhen creating a hash filter. 17354912308SNavdeep Parhar.Pp 17454912308SNavdeep Parhar(Note that 17554912308SNavdeep Parhar.Ar mask 17654912308SNavdeep Parhardefaults to all 1s when not provided explicitly. 17736ea2fe3SNavdeep ParharHash filters do not support masked matches. 17854912308SNavdeep ParharAlso note that many of the items being matched are discrete numeric 17954912308SNavdeep Parharvalues rather than bit fields and should be masked with caution.) 18054912308SNavdeep Parhar.TS 18154912308SNavdeep Parharcenter expand; 18236ea2fe3SNavdeep Parharcb cb cbw(40m) 18336ea2fe3SNavdeep Parharcb l l. 18436ea2fe3SNavdeep ParharCriteria Usage Matches if ... 18554912308SNavdeep Parhar_ 18636ea2fe3SNavdeep Parharipv4 T{ 18754912308SNavdeep Parhar.Cm type ipv4 18854912308SNavdeep ParharT} T{ 18954912308SNavdeep Parharincoming packet is an IPv4 datagram. 19054912308SNavdeep ParharT} 19154912308SNavdeep Parhar_ 19236ea2fe3SNavdeep Parharipv6 T{ 19354912308SNavdeep Parhar.Cm type ipv6 19454912308SNavdeep ParharT} T{ 19554912308SNavdeep Parharincoming packet is an IPv6 datagram. 19654912308SNavdeep ParharT} 19754912308SNavdeep Parhar_ 19836ea2fe3SNavdeep Parharsip T{ 19954912308SNavdeep Parhar.Cm sip Ar addr Ns Op / Ns Ar mask 20054912308SNavdeep ParharT} T{ 20154912308SNavdeep Parharbitwise and of the source address in an incoming IP datagram with 20254912308SNavdeep Parhar.Ar mask 20354912308SNavdeep Parharequals 20454912308SNavdeep Parhar.Ar addr Ns . 20554912308SNavdeep Parhar.Ar addr 20654912308SNavdeep Parharcan be an IPv4 or IPv6 address. 20754912308SNavdeep ParharT} 20854912308SNavdeep Parhar_ 20936ea2fe3SNavdeep Parhardip T{ 21054912308SNavdeep Parhar.Cm dip Ar addr Ns Op / Ns Ar mask 21154912308SNavdeep ParharT} T{ 21254912308SNavdeep Parharbitwise and of the destination address in an incoming IP datagram with 21354912308SNavdeep Parhar.Ar mask 21454912308SNavdeep Parharequals 21554912308SNavdeep Parhar.Ar addr Ns . 21654912308SNavdeep Parhar.Ar addr 21754912308SNavdeep Parharcan be an IPv4 or IPv6 address. 21854912308SNavdeep ParharT} 21954912308SNavdeep Parhar_ 22036ea2fe3SNavdeep Parharsport T{ 22154912308SNavdeep Parhar.Cm sport Ar port Ns Op : Ns Ar mask 22254912308SNavdeep ParharT} T{ 22354912308SNavdeep Parharbitwise and of the source port in an incoming TCP or UDP datagram with 22454912308SNavdeep Parhar.Ar mask 22554912308SNavdeep Parharequals 22654912308SNavdeep Parhar.Ar port Ns . 22754912308SNavdeep ParharT} 22854912308SNavdeep Parhar_ 22936ea2fe3SNavdeep Parhardport T{ 23054912308SNavdeep Parhar.Cm dport Ar port Ns Op : Ns Ar mask 23154912308SNavdeep ParharT} T{ 23254912308SNavdeep Parharbitwise and of the destination port in an incoming TCP or UDP datagram with 23354912308SNavdeep Parhar.Ar mask 23454912308SNavdeep Parharequals 23554912308SNavdeep Parhar.Ar port Ns . 23654912308SNavdeep ParharT} 23754912308SNavdeep Parhar_ 23836ea2fe3SNavdeep Parharfcoe T{ 23954912308SNavdeep Parhar.Cm fcoe Brq 0 | 1 24054912308SNavdeep ParharT} T{ 24154912308SNavdeep Parharincoming frame is Fibre Channel over Ethernet(1) or not(0). 24254912308SNavdeep ParharT} 24354912308SNavdeep Parhar_ 24436ea2fe3SNavdeep Parhariport T{ 24554912308SNavdeep Parhar.Cm iport Ar val Ns Op : Ns Ar mask 24654912308SNavdeep ParharT} T{ 24754912308SNavdeep Parharbitwise and of the ingress port with 24854912308SNavdeep Parhar.Ar mask 24954912308SNavdeep Parharequals 25054912308SNavdeep Parhar.Ar val Ns . 25154912308SNavdeep ParharThe ingress port is a 3 bit number that identifies the port on which a 25254912308SNavdeep Parharframe arrived. 25354912308SNavdeep ParharPhysical ports are numbered 0-3 and 4-7 are internal loopback paths 25454912308SNavdeep Parharwithin the chip. 25554912308SNavdeep ParharNote that ingress port is not a bit field so it is not always possible 25654912308SNavdeep Parharto match an arbitrary subset of ingress ports with a single filter rule. 25754912308SNavdeep ParharT} 25854912308SNavdeep Parhar_ 25936ea2fe3SNavdeep Parharovlan T{ 26054912308SNavdeep Parhar.Cm ovlan Ar tag Ns Op : Ns Ar mask 26154912308SNavdeep ParharT} T{ 26254912308SNavdeep Parharbitwise and of the 16-bit outer VLAN tag of an incoming frame with 26354912308SNavdeep Parhar.Ar mask 26454912308SNavdeep Parharequals 26554912308SNavdeep Parhar.Ar tag Ns . 26654912308SNavdeep ParharT} 26754912308SNavdeep Parhar_ 26836ea2fe3SNavdeep Parharvlan T{ 26954912308SNavdeep Parhar.Cm vlan Ar tag Ns Op : Ns Ar mask 27054912308SNavdeep ParharT} T{ 27154912308SNavdeep Parharbitwise and of the 16-bit VLAN tag of an incoming QinQ frame with 27254912308SNavdeep Parhar.Ar mask 27354912308SNavdeep Parharequals 27454912308SNavdeep Parhar.Ar tag Ns . 27554912308SNavdeep ParharThe inner VLAN tag is used if the incoming frame is QinQ. 27654912308SNavdeep ParharT} 27754912308SNavdeep Parhar_ 27836ea2fe3SNavdeep Parhartos T{ 27954912308SNavdeep Parhar.Cm tos Ar val Ns Op : Ns Ar mask 28054912308SNavdeep ParharT} T{ 28154912308SNavdeep Parharbitwise and of the 8-bit IP Type of Service/IPv6 Traffic Class in an 28254912308SNavdeep Parharincoming packet with 28354912308SNavdeep Parhar.Ar mask 28454912308SNavdeep Parharequals 28554912308SNavdeep Parhar.Ar val Ns . 28654912308SNavdeep ParharT} 28754912308SNavdeep Parhar_ 28836ea2fe3SNavdeep Parharproto T{ 28954912308SNavdeep Parhar.Cm proto Ar ipproto Ns Op : Ns Ar mask 29054912308SNavdeep ParharT} T{ 29154912308SNavdeep Parharbitwise and of the 8-bit IP protocol in an incoming packet with 29254912308SNavdeep Parhar.Ar mask 29354912308SNavdeep Parharequals 29454912308SNavdeep Parhar.Ar ipproto Ns . 29554912308SNavdeep ParharT} 29654912308SNavdeep Parhar_ 29736ea2fe3SNavdeep Parharethtype T{ 29854912308SNavdeep Parhar.Cm ethtype Ar type Ns Op : Ns Ar mask 29954912308SNavdeep ParharT} T{ 30054912308SNavdeep Parharbitwise and of the 16-bit Ethernet type field of an incoming frame with 30154912308SNavdeep Parhar.Ar mask 30254912308SNavdeep Parharequals 30354912308SNavdeep Parhar.Ar type Ns . 30454912308SNavdeep ParharT} 30554912308SNavdeep Parhar_ 30636ea2fe3SNavdeep Parharmacidx T{ 30754912308SNavdeep Parhar.Cm macidx Ar idx Ns Op : Ns Ar mask 30854912308SNavdeep ParharT} T{ 30954912308SNavdeep Parharbitwise and of the MAC Address Match Index of an incoming frame with 31054912308SNavdeep Parhar.Ar mask 31154912308SNavdeep Parharequals 31254912308SNavdeep Parhar.Ar idx Ns . 31354912308SNavdeep ParharThe MAC Address Match Index refers to an entry in the MPS TCAM or in the 31454912308SNavdeep ParharMPS hash. See 31554912308SNavdeep Parhar.Cm matchtype 31654912308SNavdeep Parharfor more information. 31754912308SNavdeep ParharT} 31854912308SNavdeep Parhar_ 31936ea2fe3SNavdeep Parharmatchtype T{ 32054912308SNavdeep Parhar.Cm matchtype Ar type Ns Op : Ns Ar mask 32154912308SNavdeep ParharT} T{ 32254912308SNavdeep Parharbitwise and of the Match Type of an incoming frame with 32354912308SNavdeep Parhar.Ar mask 32454912308SNavdeep Parharequals 32554912308SNavdeep Parhar.Ar idx Ns . 32654912308SNavdeep ParharMatch Type is one of the following: 32754912308SNavdeep Parhar.Bl -tag -width "n" -compact 32854912308SNavdeep Parhar.It 0 32954912308SNavdeep Parhardestination MAC in incoming frame is a unicast L2 address that is 33054912308SNavdeep Parharprogrammed in the MPS TCAM. 33154912308SNavdeep Parhar.Cm macidx 33254912308SNavdeep Parharcan be used to match the index (and thus the MAC address) of the match 33354912308SNavdeep Parharin the TCAM. 33454912308SNavdeep Parhar.It 1 33554912308SNavdeep Parhardestination MAC in incoming frame is a unicast L2 address that "hit" a 33654912308SNavdeep Parharhash entry in the MPS hash table. 33754912308SNavdeep Parhar.Cm macidx 33854912308SNavdeep Parharcan be used to match the index of the entry in the MPS hash table. 33954912308SNavdeep Parhar.It 2 34054912308SNavdeep Parhardestination MAC in incoming frame is a multicast L2 address that is 34154912308SNavdeep Parharprogrammed in the MPS TCAM. 34254912308SNavdeep Parhar.Cm macidx 34354912308SNavdeep Parharcan be used to match the index (and thus the MAC address) of the match 34454912308SNavdeep Parharin the TCAM. 34554912308SNavdeep Parhar.It 3 34654912308SNavdeep Parhardestination MAC in incoming frame is a multicast L2 address that "hit" 34754912308SNavdeep Parharan entry in the MPS hash table. 34854912308SNavdeep Parhar.It 4 34954912308SNavdeep Parharinterface on which incoming frame was received is in promiscuous mode 35054912308SNavdeep Parharand the destination MAC in the frame is not a broadcast address, and 35154912308SNavdeep Parhardoes not match in the MPS TCAM or the MPS hash either. (The frame would 35254912308SNavdeep Parharhave been discarded if the interface wasn't in promiscuous mode.) 35354912308SNavdeep Parhar.It 5 35454912308SNavdeep Parharinterface on which incoming frame was received is in promiscuous mode 35554912308SNavdeep Parharand the destination MAC in the frame is not a broadcast address; it 35654912308SNavdeep Parharwasn't looked up in the MPS TCAM or the MPS hash because the chip is 35754912308SNavdeep Parharconfigured to give precedence to promiscuous mode classification. 35854912308SNavdeep Parhar.It 6 35954912308SNavdeep Parhardestination MAC in incoming frame is a broadcast address. 36054912308SNavdeep Parhar.It 7 36154912308SNavdeep ParharNot documented. Do not use. 36254912308SNavdeep Parhar.El 36354912308SNavdeep ParharT} 36454912308SNavdeep Parhar_ 36536ea2fe3SNavdeep Parharfrag T{ 36654912308SNavdeep Parhar.Cm frag Brq 0 | 1 36754912308SNavdeep ParharT} T{ 36854912308SNavdeep Parharincoming frame is part of a fragmented IP datagram(1) or not(0). 36954912308SNavdeep ParharT} 37054912308SNavdeep Parhar.TE 37136ea2fe3SNavdeep Parhar.Pp 37236ea2fe3SNavdeep Parhar.Bl -item -compact 37336ea2fe3SNavdeep Parhar.It 37436ea2fe3SNavdeep Parhar.Cm hashfilter Ar filter-specification 37536ea2fe3SNavdeep Parhar.It 37636ea2fe3SNavdeep Parhar.Cm filter Ar idx Ar filter-specification 37736ea2fe3SNavdeep Parhar.El 37836ea2fe3SNavdeep ParharProgram a filter. 37936ea2fe3SNavdeep Parhar.Pp 38036ea2fe3SNavdeep ParharTCAM filters: The number of available filters is in 38136ea2fe3SNavdeep Parhardev.<nexus>.<instance>.nfilters. 38236ea2fe3SNavdeep Parhar.Ar idx 38336ea2fe3SNavdeep Parharmust be an unused index between 0 and nfilters - 1. 3846ba81353SNavdeep ParharIPv6 filters consume 4 consecutive entries on T4/T5 and 2 on T6 and 38536ea2fe3SNavdeep Parhar.Ar idx 38636ea2fe3SNavdeep Parharmust be aligned to 4 or 2 in this case. 38736ea2fe3SNavdeep Parhar.Pp 38836ea2fe3SNavdeep ParharHash filters: These reside in the card's memory instead of its TCAM and are 38936ea2fe3SNavdeep Parharenabled with a special configuration file that is selected with 39036ea2fe3SNavdeep Parhar.Cm hw.cxgbe.config_file="hashfilter" 39136ea2fe3SNavdeep Parharin loader.conf. 39236ea2fe3SNavdeep ParharThere are at least half a million filters available with the sample config 39336ea2fe3SNavdeep Parharshipped with the driver. 39436ea2fe3SNavdeep ParharNote that the hardware selects the index for a hashfilter and this index is 39536ea2fe3SNavdeep Parhardisplayed when the filter is created. 39636ea2fe3SNavdeep ParharHash and TCAM filters can be used together. 39736ea2fe3SNavdeep Parhar.Pp 39854912308SNavdeep Parhar.Ar filter-specification 39936ea2fe3SNavdeep Parharconsists of one or more matches (see Usage in the table above) to try against an 40036ea2fe3SNavdeep Parharincoming frame, an action to perform when all matches succeed, and some 40136ea2fe3SNavdeep Parharadditional operational parameters. 40236ea2fe3SNavdeep ParharHashfilters require an exact value for the 5-tuple (sip, dip, sport, dport, 40336ea2fe3SNavdeep Parharproto) and for any other match-criteria listed in "hashfilter mode". 40436ea2fe3SNavdeep ParharPossible filter actions are 40536ea2fe3SNavdeep Parhar.Cm drop Ns , 40636ea2fe3SNavdeep Parhar.Cm pass Ns , or 40736ea2fe3SNavdeep Parhar.Cm switch Ns . 40836ea2fe3SNavdeep Parhar.Pp 40936ea2fe3SNavdeep Parhar.Bl -tag -width nat_dport -offset indent -compact 41036ea2fe3SNavdeep ParharOperational parameters that can be used with all filters: 41136ea2fe3SNavdeep Parhar.It Cm hitcnts 41236ea2fe3SNavdeep ParharCount filter hits: 0 or 1 (default). 41336ea2fe3SNavdeep Parhar.It Cm prio 41436ea2fe3SNavdeep ParharFilter has priority over active and server regions of TCAM: 0 (default) or 1. 41536ea2fe3SNavdeep Parhar.El 41636ea2fe3SNavdeep Parhar.Pp 41736ea2fe3SNavdeep Parhar.Bl -tag -width nat_dport -offset indent -compact 41836ea2fe3SNavdeep ParharOperational parameters that can be used with filters with 41936ea2fe3SNavdeep Parhar.Cm action pass Ns : 42036ea2fe3SNavdeep Parhar.It Cm queue 421*93dcd077SNavdeep ParharContext id of an ingress queue to which to deliver the packet. 422*93dcd077SNavdeep ParharThe context id is available in 423*93dcd077SNavdeep Parhar.Va dev.cxgbe.%d.rxq.%d.cntxt_id . 424*93dcd077SNavdeep ParharBy default, packets that hit a filter with action pass are delivered based on 425*93dcd077SNavdeep Parhartheir RSS hash as usual. 426*93dcd077SNavdeep ParharUse this to steer them to a particular queue. 42736ea2fe3SNavdeep Parhar.It Cm rpttid 42836ea2fe3SNavdeep ParharReport the filter tid instead of the RSS hash in the rx descriptor. 42936ea2fe3SNavdeep Parhar0 (default) or 1. 43036ea2fe3SNavdeep Parhar.It Cm tcbhash 43136ea2fe3SNavdeep ParharSelect TCB hash information in rx descriptor. 43236ea2fe3SNavdeep Parhar0 (default) or 1 43336ea2fe3SNavdeep Parhar.El 43436ea2fe3SNavdeep Parhar.Pp 43536ea2fe3SNavdeep Parhar.Bl -tag -width nat_dport -offset indent -compact 43636ea2fe3SNavdeep ParharOperational parameters that can be used with filters with 43736ea2fe3SNavdeep Parhar.Cm action switch Ns : 43836ea2fe3SNavdeep Parhar.It Cm eport 43936ea2fe3SNavdeep ParharEgress port number on which to send the packet matching the filter. 44036ea2fe3SNavdeep Parhar0 to dev.<nexus>.<instance>.nports - 1. 44136ea2fe3SNavdeep Parhar.It Cm dmac 44236ea2fe3SNavdeep ParharReplace packet destination MAC address with the one provided before switching 44336ea2fe3SNavdeep Parharit out of eport. 44436ea2fe3SNavdeep Parhar.It Cm smac 44536ea2fe3SNavdeep ParharReplace packet source MAC address with the one provided before switching it 44636ea2fe3SNavdeep Parharout of eport. 44736ea2fe3SNavdeep Parhar.It Cm swapmac 44836ea2fe3SNavdeep ParharSwap packet source and destination MAC addresses before switching it out of 44936ea2fe3SNavdeep Parhareport. 45036ea2fe3SNavdeep Parhar.It Cm vlan 45136ea2fe3SNavdeep ParharInsert, remove, or rewrite the VLAN tag before switching the packet out of 45236ea2fe3SNavdeep Parhareport. 45336ea2fe3SNavdeep Parhar.Cm vlan=none 45436ea2fe3SNavdeep Parharremoves the tag, 45536ea2fe3SNavdeep Parhar.Cm vlan= Ns Ar tag 45636ea2fe3SNavdeep Parharreplaces the existing tag with the one provided, and 45736ea2fe3SNavdeep Parhar.Cm vlan=+ Ns Ar tag 45836ea2fe3SNavdeep Parharinserts the given tag into the frame. 45936ea2fe3SNavdeep Parhar.It Cm nat 46036ea2fe3SNavdeep ParharSpecify the desired NAT mode. Valid NAT modes values are: 46136ea2fe3SNavdeep Parhar.Bl -tag -width dip-dp-sip -compact 46236ea2fe3SNavdeep Parhar.It Cm dip 46336ea2fe3SNavdeep ParharPerform NAT on destination IP. 46436ea2fe3SNavdeep Parhar.It Cm dip-dp 46536ea2fe3SNavdeep ParharPerform NAT on destination IP, destination port. 46636ea2fe3SNavdeep Parhar.It Cm dip-dp-sip 46736ea2fe3SNavdeep ParharPerform NAT on destination IP, destination port, source IP. 46836ea2fe3SNavdeep Parhar.It Cm dip-dp-sp 46936ea2fe3SNavdeep ParharPerform NAT on destination IP, destination port, source port. 47036ea2fe3SNavdeep Parhar.It Cm sip-sp 47136ea2fe3SNavdeep ParharPerform NAT on source IP, source port. 47236ea2fe3SNavdeep Parhar.It Cm dip-sip-sp 47336ea2fe3SNavdeep ParharPerform NAT on destination IP, source IP, source port. 47436ea2fe3SNavdeep Parhar.It Cm all 47536ea2fe3SNavdeep ParharPerform NAT on all 4-tuple fields. 47636ea2fe3SNavdeep Parhar.El 47736ea2fe3SNavdeep Parhar.It Cm natflag 47836ea2fe3SNavdeep ParharPerform NAT only on segments which do not have TCP FIN or RST set. 47936ea2fe3SNavdeep Parhar.It Cm natseq 48036ea2fe3SNavdeep ParharPerform NAT only if incoming segment's sequence number + payload length is less 48136ea2fe3SNavdeep Parharthan this supplied value. 48236ea2fe3SNavdeep Parhar.It Cm nat_dip 48336ea2fe3SNavdeep ParharPerform NAT using this destination IP. 48436ea2fe3SNavdeep Parhar.It Cm nat_sip 48536ea2fe3SNavdeep ParharPerform NAT using this source IP. 48636ea2fe3SNavdeep Parhar.It Cm nat_dport 48736ea2fe3SNavdeep ParharPerform NAT using this destination port. 48836ea2fe3SNavdeep Parhar.It Cm nat_sport 48936ea2fe3SNavdeep ParharPerform NAT using this source port. 49036ea2fe3SNavdeep ParharPerform NAT only if incoming segment's sequence number + payload length is less 49136ea2fe3SNavdeep Parharthan this supplied value. 49236ea2fe3SNavdeep Parhar.El 49336ea2fe3SNavdeep Parhar.Pp 49436ea2fe3SNavdeep Parhar.Bl -item -compact 49536ea2fe3SNavdeep Parhar.It 49636ea2fe3SNavdeep Parhar.Cm hashfilter Ar idx Cm delete 49736ea2fe3SNavdeep Parhar.It 49836ea2fe3SNavdeep Parhar.Cm filter Ar idx Cm delete 49936ea2fe3SNavdeep Parhar.El 50054912308SNavdeep ParharDelete filter that is at the given index. 50154912308SNavdeep Parhar.It Cm filter Cm list 50254912308SNavdeep ParharList all filters programmed into the hardware. 50354912308SNavdeep Parhar.It Cm i2c Ar port_id devaddr addr Op Ar len 50454912308SNavdeep Parhar.It Cm loadcfg Ar fw-config.txt 50554912308SNavdeep ParharInstall the firmware configuration file contained in 50654912308SNavdeep Parhar.Ar fw-config.txt 50754912308SNavdeep Parharto the card. 50854912308SNavdeep ParharSet hw.cxgbe.config_file="flash" in loader.conf to get 50954912308SNavdeep Parhar.Xr cxgbe 4 51054912308SNavdeep Parharto use the on-flash configuration. 51154912308SNavdeep Parhar.It Cm loadcfg Cm clear 51254912308SNavdeep ParharErase configuration file from the card. 51354912308SNavdeep Parhar.It Cm loadfw Ar fw-image.bin 51454912308SNavdeep ParharInstall the firmware contained in 51554912308SNavdeep Parhar.Ar fw-image.bin 51654912308SNavdeep Parharto the card. 51754912308SNavdeep Parhar.It Cm memdump Ar addr len 51854912308SNavdeep ParharDisplay 51954912308SNavdeep Parhar.Ar len 52054912308SNavdeep Parharbytes of data of the card's memory starting at 52154912308SNavdeep Parhar.Ar addr Ns . 52254912308SNavdeep ParharThe card's memory map is available in 52354912308SNavdeep Parhar.Va dev.t4nex.%d.misc.meminfo Ns . 5241131c927SNavdeep Parhar.It Cm policy Ar cop.txt 5251131c927SNavdeep ParharInstall the Connection Offload Policy (COP) in 5261131c927SNavdeep Parhar.Ar cop.txt Ns . 5271131c927SNavdeep ParharA COP offers fine-grained control over which connections get offloaded and with 5281131c927SNavdeep Parharwhat parameters. 5291131c927SNavdeep ParharSet 5301131c927SNavdeep Parhar.Cm hw.cxgbe.cop_managed_offloading="1" 5311131c927SNavdeep Parharin loader.conf to ensure that t4_tom will not offload any connection before a 5321131c927SNavdeep ParharCOP is installed. 5331131c927SNavdeep ParharNote that t4_tom must be loaded and operational (IFCAP_TOE enabled) as always 5341131c927SNavdeep Parharfor any kind of offload based on the hardware TOE. 5351131c927SNavdeep Parhar.Bl -column -offset indent "COP installed" "cop_managed_offloading" "Behavior" 5361131c927SNavdeep Parhar.It Sy COP installed Ta Sy cop_managed_offloading Ta Sy Behavior 5371131c927SNavdeep Parhar.It NO Ta 0 Ta offload all [Default] 5381131c927SNavdeep Parhar.It NO Ta 1 Ta no offload 5391131c927SNavdeep Parhar.It YES Ta Don't Care Ta Rule based offload 5401131c927SNavdeep Parhar.El 5411131c927SNavdeep Parhar.Pp 5421131c927SNavdeep ParharThe policy file consists of empty lines, comments (lines begining with #) and 5431131c927SNavdeep Parharany number of rules. 5441131c927SNavdeep ParharRules are applied in the order they appear in the file and processing stops at 5451131c927SNavdeep Parharthe first match. 5461131c927SNavdeep ParharThere is an implicit rule that disables offload for connections that do not 5471131c927SNavdeep Parharmatch anything in the policy. 5481131c927SNavdeep Parhar.Pp 5491131c927SNavdeep ParharEach rule consists of a filter part, which determines what connections the 5501131c927SNavdeep Parharrule applies to, and a settings part, which determines whether whether matching 5511131c927SNavdeep Parharconnections will be offloaded and, if so, with what settings. 5521131c927SNavdeep ParharThe general form of a rule is 5531131c927SNavdeep Parhar.Bl -ohang -offset indent 5541131c927SNavdeep Parhar.It Cm \&[ Ar socket-type Cm \&] Ar pcap-filter Cm => Ar settings 5551131c927SNavdeep Parhar.Pp 5561131c927SNavdeep Parhar.Ar socket-type 5571131c927SNavdeep Parharis one of the following. 5581131c927SNavdeep Parhar.Bl -tag -width "X" -compact 5591131c927SNavdeep Parhar.It Sy A 5601131c927SNavdeep ParharActive open. 5611131c927SNavdeep ParharConnection is being opened by this host. 5621131c927SNavdeep Parhar.It Sy P 5631131c927SNavdeep ParharPassive open. 5641131c927SNavdeep ParharConnection was requested by a peer. 5651131c927SNavdeep Parhar.It Sy L 5661131c927SNavdeep ParharListen called on a socket. 5671131c927SNavdeep ParharDisabling offload in such a rule will prevent a hardware listener from being started. 5681131c927SNavdeep Parhar.It Sy D 5691131c927SNavdeep ParharDon't care. 5701131c927SNavdeep ParharMatches all of the above. 5711131c927SNavdeep Parhar.El 5721131c927SNavdeep Parhar.Pp 5731131c927SNavdeep Parhar.Ar pcap-filter 5741131c927SNavdeep Parharis an expression that follows the 5751131c927SNavdeep Parhar.Xr pcap-filter 7 5761131c927SNavdeep Parharsyntax, or it is the keyword 5771131c927SNavdeep Parhar.Cm all 5781131c927SNavdeep Parharthat matches everything. 5791131c927SNavdeep Parhar.Pp 5801131c927SNavdeep Parhar.Ar settings 5811131c927SNavdeep Parhardetermine whether connections matching 5821131c927SNavdeep Parhar.Ar socket-type 5831131c927SNavdeep Parharand 5841131c927SNavdeep Parhar.Ar pcap-filter 5851131c927SNavdeep Parharare offloaded and optionally sets some per-connection properties if they are. 5861131c927SNavdeep ParharA combination of the following is allowed. 5871131c927SNavdeep Parhar.Bl -tag -width "timestamp" -compact 5881131c927SNavdeep Parhar.It Cm offload 5891131c927SNavdeep ParharConnection should be offloaded. 5901131c927SNavdeep ParharUse 5911131c927SNavdeep Parhar.Cm !offload 5921131c927SNavdeep Parharor 5931131c927SNavdeep Parhar.Cm not offload 5941131c927SNavdeep Parharto disable offload instead. 5951131c927SNavdeep Parhar.It Cm coalesce 5961131c927SNavdeep ParharEnable rx payload coalescing. 5971131c927SNavdeep ParharNegate to disable. 5981131c927SNavdeep Parhar.It Cm timestamp 5991131c927SNavdeep ParharEnable TCP timestamp option. 6001131c927SNavdeep ParharNegate to disable. 6011131c927SNavdeep Parhar.It Cm sack 6021131c927SNavdeep ParharEnable TCP Selective Acknowledgements (SACK). 6031131c927SNavdeep ParharNegate to disable. 6041131c927SNavdeep Parhar.It Cm nagle 6051131c927SNavdeep ParharEnable Nagle's algorithm. 6061131c927SNavdeep ParharNegate to disable. 6071131c927SNavdeep Parhar.It Cm ecn 6081131c927SNavdeep ParharEnable Explicit Congestion Notification (ECN). 6091131c927SNavdeep ParharNegate to disable. 6101131c927SNavdeep Parhar.It Cm ddp 6111131c927SNavdeep ParharUse Direct Data Placement (zero copy receive) and zero copy transmit on the 6121131c927SNavdeep Parharconnection to service AIO requests on the socket. 6131131c927SNavdeep ParharNegate to disable. 6141131c927SNavdeep Parhar.It Cm tls 6151131c927SNavdeep ParharSet ULP mode to ULP_MODE_TLS. 6161131c927SNavdeep Parhar.It Cm cong Ar algo 6171131c927SNavdeep ParharUse the specified congestion control algorithm. 6181131c927SNavdeep Parhar.Ar algo 6191131c927SNavdeep Parharmust be one of 6201131c927SNavdeep Parhar.Cm reno Ns , Cm tahoe Ns , Cm newreno Ns , or Cm highspeed Ns . 6211131c927SNavdeep Parhar.It Cm class Ar sc 6221131c927SNavdeep ParharBind the connection to the specified tx scheduling class. 6231131c927SNavdeep ParharValid range is 0 to 14 (for T4) and 0 to 15 (T5 onwards). 6241131c927SNavdeep Parhar.It Cm rxq Ar qid 6251131c927SNavdeep ParharUse the specified offload rx queue. 6261131c927SNavdeep Parhar.Ar qid 6271131c927SNavdeep Parharshould be between 0 and nofldrxq for the ifnet. 6281131c927SNavdeep Parhar.It Cm txq Ar qnum 6291131c927SNavdeep ParharUse the specified offload tx queue. 6301131c927SNavdeep Parhar.Ar qid 6311131c927SNavdeep Parharshould be between 0 and nofldtxq for the ifnet. 6321131c927SNavdeep Parhar.It Cm bind Ar qnum 6331131c927SNavdeep ParharShorthand for 6341131c927SNavdeep Parhar.Cm rxq Ar qnum Cm txq Ar qnum Ns . 6351131c927SNavdeep ParharUse only when nofldrxq is the same as nofldtxq. 6361131c927SNavdeep Parhar.It Cm mss Ar val 6371131c927SNavdeep ParharSet the advertised TCP MSS in the SYN for this connection to 6381131c927SNavdeep Parhar.Ar val 6391131c927SNavdeep Parhar(in bytes). 6401131c927SNavdeep ParharThe hardware MTU table must already have an entry that is suitable for the MSS. 6411131c927SNavdeep Parhar.El 6421131c927SNavdeep Parhar.Pp 6431131c927SNavdeep Parhar.It Example of a COP. 6441131c927SNavdeep ParharNote that hardware listener for port 22 will be IPv4 only because the rule 6451131c927SNavdeep Parharbefore it will prevent any IPv6 servers other than the first two. Also note 6461131c927SNavdeep Parharthat outgoing connections to 192.168/16 are the only outgoing connections that 6471131c927SNavdeep Parharwill get offloaded. 6481131c927SNavdeep Parhar.Bd -literal 6491131c927SNavdeep Parhar[L] port 80 => offload 6501131c927SNavdeep Parhar[L] port 443 => offload 6511131c927SNavdeep Parhar[L] ip6 => !offload 6521131c927SNavdeep Parhar[L] port 22 => offload 6531131c927SNavdeep Parhar[P] dst port 80 => offload cong highspeed !sack !ecn 6541131c927SNavdeep Parhar[P] dst port 443 => offload tls 6551131c927SNavdeep Parhar[A] dst net 192.168/16 => offload 6561131c927SNavdeep Parhar[A] all => !offload 6571131c927SNavdeep Parhar[D] port 22 => offload !nagle 6581131c927SNavdeep Parhar.Ed 6591131c927SNavdeep Parhar.El 6601131c927SNavdeep Parhar.It Cm policy clear 6611131c927SNavdeep ParharRemove the Connection Offload Policy (COP) if one is in use. 66254912308SNavdeep Parhar.It Bro Cm reg | reg64 Brc Ar addr Ns Op Ar =val 66354912308SNavdeep Parhar.It Cm regdump Op Ar register-block ... 66459daefd7SEnji CooperDisplay contents of device registers. 66559daefd7SEnji CooperOne or more 66654912308SNavdeep Parhar.Ar register-block 66754912308SNavdeep Parharcan be specified to limit the registers displayed. 66854912308SNavdeep ParharThe default is to display registers for all blocks. 66954912308SNavdeep ParharRegisters with read side effects are not read during a 67054912308SNavdeep Parhar.Cm regdump 67154912308SNavdeep Parharoperation. 67254912308SNavdeep Parhar.Ar register-block 67354912308SNavdeep Parharcan be 67454912308SNavdeep Parhar.Cm sge pci dbg mc ma edc0 edc1 cim tp ulp_rx ulp_tx pmrx pmtx mps cplsw 67554912308SNavdeep Parhar.Cm smb i2c mi uart pmu sf pl le ncsi xgmac Ns . 67654912308SNavdeep Parhar.It Cm sched-class config Op Ar param Ar value 67754912308SNavdeep ParharConfigure optional feature capabilities for the TX scheduler. 67854912308SNavdeep Parhar.Bl -ohang -offset indent 67954912308SNavdeep Parhar.It Sy type Ar scheduler-type 68054912308SNavdeep ParharUse packet for the packet scheduler. 68154912308SNavdeep Parhar.It Sy minmax Ar value 68254912308SNavdeep ParharA non-zero value will enable "minmax" mode; a zero value will disable "minmax" mode. 68354912308SNavdeep Parhar.Pp 68454912308SNavdeep ParharNOTE: Many (most) of the parameters and constraints are adapter-specific 68554912308SNavdeep Parhar- for instance the number of channels and classes which are available 68659daefd7SEnji Cooperwhether various modes are implemented, etc. 68759daefd7SEnji CooperConsult the adapter documentation for specific information on any limitations. 68854912308SNavdeep Parhar.El 68954912308SNavdeep Parhar.It Cm sched-class params Op Ar param Ar value 69054912308SNavdeep ParharConfigure parameters for a scheduling class. 69154912308SNavdeep Parhar.Bl -ohang -offset indent 69254912308SNavdeep Parhar.It Sy type Ar scheduler-type 69354912308SNavdeep ParharUse packet for packet scheduler. 69454912308SNavdeep Parhar.It Sy level Ar scheduler-hierarchy-level 69554912308SNavdeep ParharThe "level" within the scheduling hierarchy which is being programed: 69654912308SNavdeep Parhar.Pp 69754912308SNavdeep Parhar.Bl -tag -width "cl-wrr" -compact -offset indent 69854912308SNavdeep Parhar.It Sy cl-rl 69954912308SNavdeep ParharClass Rate Limiting. 70054912308SNavdeep Parhar.Pp 70154912308SNavdeep Parhar.It Sy cl-wrr 70254912308SNavdeep ParharClass Weighted Round Robin. 70354912308SNavdeep Parhar.Pp 7040d7404baSNavdeep Parhar.It Sy ch-rl 70554912308SNavdeep ParharChannel Rate Limiting. 70654912308SNavdeep Parhar.El 70754912308SNavdeep Parhar.It Sy mode Ar scheduler-mode 70854912308SNavdeep ParharThe mode in which the scheduling class is going to operate: 70954912308SNavdeep Parhar.Pp 71054912308SNavdeep Parhar.Bl -tag -width "class" -compact -offset indent 71154912308SNavdeep Parhar.It Sy class 71254912308SNavdeep ParharAll of the "flows" bound to the scheduling class will be held to aggregate scheduling constraints. 71354912308SNavdeep Parhar.Pp 71454912308SNavdeep Parhar.It Sy flow 71554912308SNavdeep ParharEach of the "flows" bound to the scheduling class will be held to the scheduling constraints. 71654912308SNavdeep Parhar.El 71754912308SNavdeep Parhar.Pp 71854912308SNavdeep ParharE.g. if the scheduling class has a TX bandwidth of 10Mb/s, in 71954912308SNavdeep Parhar.Cm class 72054912308SNavdeep Parharmode, all of the "flows" bound to the class would be limited to an 72154912308SNavdeep Parharaggregate bandwidth of 10Mb/s; but in 72254912308SNavdeep Parhar.Cm flow 72354912308SNavdeep Parharmode, each of the "flows" bound to the scheduling class would be limited to 10Mb/s. 72454912308SNavdeep Parhar.It Sy rate-unit Ar scheduler-rate-unit 72554912308SNavdeep ParharThe units of the scheduler rate constraints: 72654912308SNavdeep Parhar.Pp 72754912308SNavdeep Parhar.Bl -tag -width "bits" -compact -offset indent 72854912308SNavdeep Parhar.It Sy bits 72954912308SNavdeep Parharbit rate in Kb/s. 73054912308SNavdeep Parhar.Pp 73154912308SNavdeep Parhar.It Sy pkts 73254912308SNavdeep Parharpackets/s. 73354912308SNavdeep Parhar.El 73454912308SNavdeep Parhar.It Sy rate-mode Ar scheduler-rate-mode 73554912308SNavdeep ParharThe mode of the scheduler rate constraints: 73654912308SNavdeep Parhar.Pp 73754912308SNavdeep Parhar.Bl -tag -width "relative" -compact -offset indent 73854912308SNavdeep Parhar.It Sy relative 73954912308SNavdeep Parharpercent of port rate. 74054912308SNavdeep Parhar.Pp 74154912308SNavdeep Parhar.It Sy absolute 74254912308SNavdeep ParharKb/s. 74354912308SNavdeep Parhar.El 74454912308SNavdeep Parhar.It Sy channel Ar scheduler-channel-index 74554912308SNavdeep ParharThe scheduling channel to which the scheduling class will be bound. 74654912308SNavdeep Parhar.It Sy class Ar scheduler-class-index 74754912308SNavdeep ParharThe scheduling class being programmed. 74854912308SNavdeep Parhar.It Sy min-rate Ar minimum-rate 74954912308SNavdeep ParharThe minimum guaranteed rate to which a rate-limiting scheduling class hierarchy will have access. 75054912308SNavdeep Parhar.It Sy max-rate Ar maximum-rate 75154912308SNavdeep ParharThe maximum rate for a rate-limiting scheduling class hierarchy. 75254912308SNavdeep Parhar.It Sy weight Ar round-robin-weight 75354912308SNavdeep ParharThe weight to be used for a weighted-round-robin scheduling hierarchy. 75454912308SNavdeep Parhar.It Sy pkt-size Ar average-packet-size 75554912308SNavdeep ParharThe average packet size will be used to compute scheduler constraints for a rate-limited scheduler class hierarchy. 75654912308SNavdeep Parhar.Pp 75754912308SNavdeep ParharNOTE: Many (most) of the parameters and constraints are adapter-specific - for instance the number of channels and classes which are available, 75859daefd7SEnji Cooperwhether various modes are implemented, etc. 75959daefd7SEnji CooperConsult the adapter documentation for specific information on any limitations. 76054912308SNavdeep Parhar.El 76154912308SNavdeep Parhar.It Cm sched-queue Ar port queue class 76254912308SNavdeep ParharBind the indicated port's NIC TX 76354912308SNavdeep Parhar.Ar queue 76454912308SNavdeep Parharto the specified TX Scheduler 76554912308SNavdeep Parhar.Ar class. 76654912308SNavdeep ParharIf the TX 76754912308SNavdeep Parhar.Ar queue 76854912308SNavdeep Parharis 76954912308SNavdeep Parhar.Cm all, * 77054912308SNavdeep Parharor any negative value, the binding will apply to 77154912308SNavdeep Parharall of the TX queues associated with the 77254912308SNavdeep Parhar.Ar interface. 77354912308SNavdeep ParharIf the class is 77454912308SNavdeep Parhar.Cm unbind, clear 77554912308SNavdeep Parharor any negative value, the TX queue(s) will be unbound from 77654912308SNavdeep Parharany current TX Scheduler Class binding. 77754912308SNavdeep Parhar.It Cm stdio 77854912308SNavdeep ParharSwitch to interactive mode. 77954912308SNavdeep Parhar.It Cm tcb Ar tid 78054912308SNavdeep ParharDisplay contents of the hardware TCB (TCP Control Block) for the 78154912308SNavdeep Parharconnection identfied by 78254912308SNavdeep Parhar.Ar tid Ns . 78354912308SNavdeep Parhar.El 78454912308SNavdeep Parhar.Sh FILES 78554912308SNavdeep Parhar/sys/dev/cxgbe/t4_ioctl.h 78654912308SNavdeep Parhar.Sh AUTHORS 78754912308SNavdeep ParharThis manual page was written by 78854912308SNavdeep Parhar.An Navdeep Parhar Aq np@FreeBSD.org . 789