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
..
2010-04-13 12:10:55 +00:00
2010-02-13 02:30:43 +00:00
2010-04-28 22:25:27 +00:00
2009-11-28 17:48:25 +00:00
2009-12-29 21:51:28 +00:00
2009-07-10 08:18:08 +00:00
2010-05-03 07:32:50 +00:00
2010-04-19 22:10:40 +00:00
2010-05-03 16:55:50 +00:00
2010-05-02 14:46:05 +00:00
2009-05-13 22:31:25 +00:00
2010-02-08 20:57:42 +00:00
2010-04-19 22:10:40 +00:00
2010-04-26 21:08:15 +00:00
2010-01-07 21:01:37 +00:00
2009-11-30 11:44:03 +00:00
2009-09-14 23:08:19 +00:00
2010-01-07 21:01:37 +00:00
2010-05-03 07:32:50 +00:00
2010-01-07 21:01:37 +00:00
2009-09-14 21:33:00 +00:00
2010-01-28 08:41:30 +00:00
2010-04-30 08:37:00 +00:00
2010-05-03 07:32:50 +00:00
2010-04-29 06:16:00 +00:00
2009-12-22 21:02:46 +00:00
2010-04-30 02:35:46 +00:00
2009-06-26 11:45:06 +00:00
2010-04-26 18:56:06 +00:00
2010-03-28 00:10:09 +00:00
2009-06-26 11:45:06 +00:00
2010-05-03 07:32:50 +00:00
2010-05-03 07:32:50 +00:00
2010-01-05 20:42:25 +00:00
2010-05-03 20:57:16 +00:00
2010-05-03 07:32:50 +00:00
2010-01-26 03:42:34 +00:00
2009-06-10 17:41:24 +00:00
2010-04-28 18:49:45 +00:00
2010-05-03 07:32:50 +00:00
2009-09-06 12:01:29 +00:00
2010-05-03 07:32:50 +00:00
2009-06-30 12:35:47 +00:00
2010-05-03 07:32:50 +00:00
2010-01-12 17:59:58 +00:00
2010-05-03 07:32:50 +00:00
2010-05-03 07:32:50 +00:00
2010-05-05 00:41:40 +00:00
2010-01-03 23:28:32 +00:00
2009-05-29 06:41:23 +00:00
2010-01-07 21:01:37 +00:00
2009-12-15 19:58:23 +00:00
2010-01-08 17:20:41 +00:00
2010-05-04 15:55:41 +00:00
2010-04-28 19:22:52 +00:00
2010-05-03 07:32:50 +00:00
2009-06-11 17:06:58 +00:00
2010-05-03 07:32:50 +00:00
2010-04-27 15:50:25 +00:00
2009-11-20 20:43:16 +00:00
2010-05-03 07:32:50 +00:00
2010-01-03 23:26:29 +00:00
2010-01-07 21:01:37 +00:00
2010-04-07 21:38:42 +00:00
2009-12-14 22:28:32 +00:00
2010-05-03 07:32:50 +00:00
2010-03-29 17:24:23 +00:00
2010-01-10 05:15:46 +00:00
2010-04-19 22:10:40 +00:00
2010-02-22 21:01:08 +00:00
2010-01-07 21:01:37 +00:00
2009-12-29 21:51:28 +00:00
2010-03-03 17:55:51 +00:00
2010-01-28 08:41:30 +00:00
2010-01-07 21:01:37 +00:00
2010-01-28 08:41:30 +00:00
2010-05-01 22:04:58 +00:00
2010-01-11 04:13:06 +00:00
2009-12-16 12:25:27 +00:00
2010-01-24 10:50:20 +00:00
2010-05-03 07:32:50 +00:00
2010-02-01 21:21:10 +00:00
2010-01-07 21:01:37 +00:00
2010-05-03 07:32:50 +00:00
2010-01-08 20:40:28 +00:00
2010-04-28 15:38:01 +00:00
2009-12-18 12:10:42 +00:00
2009-12-17 00:21:12 +00:00
2010-05-03 07:32:50 +00:00
2010-01-07 21:01:37 +00:00
2010-05-03 18:39:40 +00:00
2010-03-05 03:37:42 +00:00
2010-05-03 07:32:50 +00:00
2010-05-03 07:32:50 +00:00
2009-11-19 18:37:55 +00:00
2010-04-16 16:33:05 +00:00
2010-02-22 22:05:49 +00:00
2009-09-22 11:29:11 +00:00
2009-06-08 20:24:29 +00:00
2009-12-29 21:51:28 +00:00
2010-05-03 07:32:50 +00:00
2009-12-28 22:56:30 +00:00
2009-11-19 22:14:23 +00:00
2009-09-26 12:45:28 +00:00
2010-01-08 15:57:56 +00:00
2010-05-03 07:32:50 +00:00
2009-12-25 22:58:43 +00:00
2009-06-11 17:06:58 +00:00
2010-05-03 20:31:13 +00:00
2010-03-02 17:34:11 +00:00
2010-02-17 17:03:04 +00:00
2010-04-30 19:01:55 +00:00
2010-01-01 22:47:53 +00:00
2009-08-20 19:17:53 +00:00
2010-01-28 08:41:30 +00:00
2009-08-20 19:17:53 +00:00
2010-05-02 22:48:27 +00:00
2010-05-04 22:24:19 +00:00
2010-05-02 19:28:30 +00:00
2010-05-03 07:32:50 +00:00
2010-04-15 14:26:52 +00:00
2010-05-03 07:32:50 +00:00
2009-06-11 17:14:28 +00:00
2010-04-19 22:10:40 +00:00
2009-06-26 11:45:06 +00:00
2009-06-09 13:33:03 +00:00
2009-06-11 17:14:28 +00:00
2009-09-06 09:59:02 +00:00
2010-01-27 14:43:28 +00:00
2010-05-03 07:32:50 +00:00
2010-04-02 21:48:27 +00:00
2010-01-07 21:01:37 +00:00
2010-01-03 23:31:58 +00:00
2009-08-20 19:17:53 +00:00
2009-06-11 17:15:44 +00:00
2010-03-11 15:25:47 +00:00
2009-11-19 22:14:23 +00:00
2010-05-03 07:32:50 +00:00
2010-05-03 07:32:50 +00:00
2010-03-23 20:08:18 +00:00
2009-08-20 19:17:53 +00:00
2009-09-06 10:27:45 +00:00
2009-12-11 03:08:07 +00:00
2010-05-02 19:05:57 +00:00
2010-05-03 07:32:50 +00:00
2009-05-25 22:50:11 +00:00
2010-04-09 22:50:28 +00:00
2009-09-05 08:38:25 +00:00
2010-01-07 21:01:37 +00:00
2010-05-03 07:32:50 +00:00
2009-06-13 08:57:04 +00:00
2009-06-26 11:45:06 +00:00
2010-05-04 21:23:59 +00:00
2009-05-29 06:41:23 +00:00
2010-03-11 08:03:56 +00:00
2010-05-02 12:07:47 +00:00
2010-04-20 19:30:12 +00:00
2009-11-06 14:55:01 +00:00
2010-05-03 07:32:50 +00:00
2010-05-03 07:32:50 +00:00
2010-05-03 07:32:50 +00:00
2009-08-23 08:04:40 +00:00
2010-05-04 16:56:59 +00:00
2009-06-25 18:46:30 +00:00
2009-06-11 17:06:58 +00:00
2010-01-08 02:43:20 +00:00
2009-06-11 17:14:28 +00:00
2010-03-01 16:52:11 +00:00
2010-04-27 18:05:33 +00:00
2010-04-07 18:42:21 +00:00
2009-12-29 21:51:28 +00:00
2010-05-03 15:51:59 +00:00
2009-11-19 22:14:23 +00:00
2010-01-28 08:41:30 +00:00
2009-11-20 13:28:06 +00:00
2010-01-28 08:41:30 +00:00
2009-12-25 17:34:43 +00:00
2009-06-26 11:45:06 +00:00
2009-08-31 22:09:48 +00:00
2010-05-02 19:07:19 +00:00
2010-03-29 17:26:24 +00:00
2010-05-03 07:32:50 +00:00
2009-12-25 00:23:47 +00:00
2009-06-26 11:45:06 +00:00
2010-05-03 07:32:50 +00:00
2009-11-19 22:14:23 +00:00
2010-05-03 07:32:50 +00:00
2010-05-03 07:32:50 +00:00
2010-05-03 07:32:50 +00:00
2010-05-03 07:32:50 +00:00
2010-03-12 22:58:52 +00:00
2010-01-03 23:29:49 +00:00