freebsd-dev/usr.sbin/cxgbtool
Navdeep Parhar d6da836201 Add support for hardware filters to cxgb(4). The T3 chip can inspect
L2/3/4 headers and can drop or steer packets as instructed.  Filtering
based on src ip, dst ip, src port, dst port, 802.1q, udp/tcp, and mac
addr is possible.  Add support in cxgbtool to program these filters.
Some simple examples:

Drop all tcp/80 traffic coming from the subnet specified.
# cxgbtool cxgb2 filter 0 sip 192.168.1.0/24 dport 80 type tcp action drop

Steer all incoming UDP traffic to qset 0.
# cxgbtool cxgb2 filter 1 type udp queue 0 action pass

Steer all tcp traffic from 192.168.1.1 to qset 1.
# cxgbtool cxgb2 filter 2 sip 192.168.1.1 type tcp queue 1 action pass

Drop fragments.
# cxgbtool cxgb2 filter 3 type frag action drop

List all filters.
# cxgbtool cxgb2 filter list
index         SIP                DIP     sport dport VLAN PRI P/MAC type Q
    0     192.168.1.0/24         0.0.0.0     *    80    0 0/1 */*    tcp -
    1         0.0.0.0/0          0.0.0.0     *     *    0 0/1 */*    udp 0
    2     192.168.1.1/32         0.0.0.0     *     *    0 0/1 */*    tcp 1
    3         0.0.0.0/0          0.0.0.0     *     *    0 0/1 */*   frag -
16367         0.0.0.0/0          0.0.0.0     *     *    0 0/1 */*      * *

MFC after:	2 weeks
2010-05-05 00:41:40 +00:00
..
cxgbtool.c Add support for hardware filters to cxgb(4). The T3 chip can inspect 2010-05-05 00:41:40 +00:00
Makefile Add missing newline in last line of file. 2010-02-16 09:10:21 +00:00
reg_defs_t3.c Allow cxgbtool to build with WARNS=6 2010-02-23 23:01:41 +00:00
reg_defs_t3b.c Allow cxgbtool to build with WARNS=6 2010-02-23 23:01:41 +00:00
reg_defs_t3c.c Allow cxgbtool to build with WARNS=6 2010-02-23 23:01:41 +00:00
reg_defs.c Allow cxgbtool to build with WARNS=6 2010-02-23 23:01:41 +00:00
version.h Update the Chelsio driver to the latest bits from Chelsio 2009-03-10 19:22:45 +00:00