summaryrefslogtreecommitdiff
path: root/usr.sbin/cxgbetool
Commit message (Collapse)AuthorAgeFilesLines
* MFC r366616: cxgbetool(8): Remove dublicate word 'whether'Gordon Bergling2020-10-171-1/+1
| | | | Notes: svn path=/stable/12/; revision=366786
* MFC r339717, r339749, and r339809.Navdeep Parhar2019-03-271-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r339717: cxgbe(4): Allow "pass" filters to distribute matching traffic using a subset of a VI's RSS indirection table. This makes it possible to make groups out of rx queues and steer different kinds of traffic to different groups. For example, an interface with 8 rx queues could have all non-TCP traffic delivered to queues 0-3 and all TCP traffic to queues 4-7. Note that it is already possible for filters to steer traffic to a particular queue or to distribute it using the full indirection table (much like normal rx does). Sponsored by: Chelsio Communications r339749: cxgbe(4): Add a knob to split the rx queues for a netmap enabled interface into two groups. Filters can be used to match traffic and distribute it across a group. hw.cxgbe.nm_split_rss Sponsored by: Chelsio Communications r339809: cxgbetool(8): Add a subaction (tcbrss <n>) that can be used with "pass" action to distribute traffic using the half of the VI's RSS indirection table. The value specified should either be the start of the VI's RSS slice (available at dev.<ifname>.<inst>.rss_base since r339700) or the midpoint (rss_base + rss_size/2). The traffic that hits the filter will use the first or second half of the indirection table respectively. The indirection table can be populated in different ways to achieve different kinds of traffic/load distributions. For example, r339749 allows a netmap interface to have half the rx queues in the first half of the table and the rest in the other. Sponsored by: Chelsio Communications Notes: svn path=/stable/12/; revision=345595
* cxgbetool(8): The VLAN tag provided in the action for a filter must be prefixedNavdeep Parhar2018-09-212-12/+5
| | | | | | | | | | | with either '=' or '+'. Fix the description of the parameter in the man page while here. Approved by: re@ (kib@) Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=338872
* cxgbetool(8): Clarify the meaning of the "queue" parameter used to steerNavdeep Parhar2018-09-181-4/+7
| | | | | | | | | | traffic to a particular queue. Submitted by: Krishnamraju Eraparaju @ Chelsio Approved by: re@ (kib@) Notes: svn path=/head/; revision=338762
* cxgbetool(8): Userspace part of support for high priority filters on T6+.Navdeep Parhar2018-08-092-12/+70
| | | | | | | | MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=337539
* cxgbetool(8): Require and validate only those inputs that are applicableNavdeep Parhar2018-07-251-10/+16
| | | | | | | | | | | | | to the type of rate limiter being configured. For example, the class WRR scheduler doesn't need any kbps limits (it just needs the weights for each class), the channel scheduler doesn't need anything except the aggregate kbps to limit the channel to, and so on. MFC after: 3 days Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=336719
* cxgbetool(8): Reject invalid VLAN values.Navdeep Parhar2018-06-261-1/+4
| | | | | | | | | Submitted by: Krishnamraju Eraparaju @ Chelsio MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=335680
* cxgbetool: Disallow negative values for numeric parameters.Navdeep Parhar2018-06-041-23/+28
| | | | | | | Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=334645
* Re-apply r190640.Hans Petter Selasky2018-05-311-1/+0
| | | | | | | | | | | | | | | - Restore local change to include <net/bpf.h> inside pcap.h. This fixes ports build problems. - Update local copy of dlt.h with new DLT types. - Revert no longer needed <net/bpf.h> includes which were added as part of r334277. Suggested by: antoine@, delphij@, np@ MFC after: 3 weeks Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=334418
* MFV r333789: libpcap 1.9.0 (pre-release)Hans Petter Selasky2018-05-281-0/+1
| | | | | | | | MFC after: 1 month Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=334277
* cxgbetool(8): Provide user interface for hashfilters, hardware NAT, andNavdeep Parhar2018-05-152-87/+306
| | | | | | | | | other filtering related features that were recently added to the driver. Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=333621
* Fix typo in cxgbetool.8.Navdeep Parhar2018-04-151-1/+1
| | | | Notes: svn path=/head/; revision=332515
* cxgbe(4): Add support for Connection Offload Policy (aka COP).Navdeep Parhar2018-04-143-1/+596
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | COP allows fine-grained control on whether to offload a TCP connection using t4_tom, and what settings to apply to a connection selected for offload. t4_tom must still be loaded and IFCAP_TOE must still be enabled for full TCP offload to take place on an interface. The difference is that IFCAP_TOE used to be the only knob and would enable TOE for all new connections on the inteface, but now the driver will also consult the COP, if any, before offloading to the hardware TOE. A policy is a plain text file with any number of rules, one per line. Each rule has a "match" part consisting of a socket-type (L = listen, A = active open, P = passive open, D = don't care) and a pcap-filter(7) expression, and a "settings" part that specifies whether to offload the connection or not and the parameters to use if so. The general format of a rule is: [socket-type] expr => settings Example. See cxgbetool(8) for more information. [L] ip && port http => offload [L] port 443 => !offload [L] port ssh => offload [P] src net 192.168/16 && dst port ssh => offload !nagle !timestamp cong newreno [P] dst port ssh => offload !nagle ecn cong tahoe [P] dst port http => offload [A] dst port 443 => offload tls [A] dst net 192.168/16 => offload !timestamp cong highspeed The driver processes the rules for each new listen, active open, or passive open and stops at the first match. There is an implicit rule at the end of every policy that prohibits offload when no rule in the policy matches: [D] all => !offload This is a reworked and expanded version of a patch submitted by Krishnamraju Eraparaju @ Chelsio. Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=332506
* cxgbetool(8): Add the ability to decode hardware TCBs.Navdeep Parhar2018-03-1410-0/+6583
| | | | | | | | | Obtained from: Chelsio Communications MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=330887
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* cxgbetool(8): Do not close uninitialized fd on malloc failure.Navdeep Parhar2017-10-091-1/+0
| | | | | | | | MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=324443
* cxgbetool(8): Do not create a large file devoid of useful content whenNavdeep Parhar2017-10-071-8/+12
| | | | | | | | | | the dumpstate ioctl fails. Make the file world-readable while here. MFC after: 2 weeks Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=324379
* cxgbetool(8): mode must be specified when creating the dump file.Navdeep Parhar2017-09-131-1/+2
| | | | | | | | MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=323514
* cxgbe(4): Initial import of the "collect" component of Chelsio unifiedNavdeep Parhar2017-08-031-0/+37
| | | | | | | | | | | | | | | debug (cudbg) code, hooked up to the main driver via an ioctl. The ioctl can be used to collect the chip's internal state in a compressed dump file. These dumps can be decoded with the "view" component of cudbg. Obtained from: Chelsio Communications MFC after: 2 months Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=322014
* cxgbetool(8): Add loadboot and loadboot-cfg subcommands to install orNavdeep Parhar2017-07-181-0/+109
| | | | | | | | | | remove bootrom and boot config. MFC after: 2 weeks Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=321105
* Fix some trivial manlint warningsEnji Cooper2017-03-061-5/+9
| | | | | | | | | | | | | | Sentences should begin on new lines, per manlint. Bump .Dd for the change MFC after: 1 month Reviewed by: bcr Reported by: make manlint Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314785
* Add cxgbetool(8) to the base system.Navdeep Parhar2017-03-038-0/+166405
Move cxgbetool from tools/tools to usr.sbin. Compile and install it on platforms where cxgbe(4) is built by default. Knobs (WITH_CXGBETOOL and WITHOUT_CXGBETOOL) have been added so that the user can override the default setting. Reviewed by: ngie@, gnn@, bdrewery@ MFC after: 1 month Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D9854 Notes: svn path=/head/; revision=314579