freebsd-skq/sys/dev/cxgb
np 30b63b91fa 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
..
common Multiple fixes related to queue set sizing and resources: 2010-03-31 00:27:49 +00:00
sys mvec routines should have no knowledge of the SG engine. 2009-06-25 21:50:15 +00:00
ulp There is no need to test __FreeBSD_version for features that have 2010-02-24 10:16:18 +00:00
bin2h.pl Update the Chelsio driver to the latest bits from Chelsio 2009-03-10 19:22:45 +00:00
cxgb_adapter.h Increase response queue size to avoid starvation, add a counter 2010-04-02 17:50:52 +00:00
cxgb_include.h - Remove default NIC dependency on ulp headers 2008-09-24 01:19:08 +00:00
cxgb_ioctl.h Add support for hardware filters to cxgb(4). The T3 chip can inspect 2010-05-05 00:41:40 +00:00
cxgb_main.c Add support for hardware filters to cxgb(4). The T3 chip can inspect 2010-05-05 00:41:40 +00:00
cxgb_offload.c Minor updates to the Chelsio driver, including removing an LOR. 2009-03-23 19:58:26 +00:00
cxgb_offload.h There is no need to test __FreeBSD_version for features that have 2010-02-24 10:16:18 +00:00
cxgb_osdep.h There is no need to test __FreeBSD_version for features that have 2010-02-24 10:16:18 +00:00
cxgb_sge.c Increase response queue size to avoid starvation, add a counter 2010-04-02 17:50:52 +00:00
cxgb_t3fw.c Update the Chelsio driver to the latest bits from Chelsio 2009-03-10 19:22:45 +00:00
cxgb_t3fw.h T3 firmware 7.8.0 for cxgb(4) 2009-12-01 22:23:15 +00:00
t3b_protocol_sram.h move remaining binaries in to blob headers 2008-02-26 23:05:05 +00:00
t3b_tp_eeprom.h move remaining binaries in to blob headers 2008-02-26 23:05:05 +00:00
t3c_protocol_sram.h Update the Chelsio driver to the latest bits from Chelsio 2009-03-10 19:22:45 +00:00
t3c_tp_eeprom.h Update the Chelsio driver to the latest bits from Chelsio 2009-03-10 19:22:45 +00:00
t3cdev.h MFSVN: 2008-05-05 01:41:53 +00:00