2017-03-03 03:11:58 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PROG= cxgbetool
|
|
|
|
MAN= cxgbetool.8
|
2018-03-14 00:04:58 +00:00
|
|
|
SRCS= cxgbetool.c
|
|
|
|
SRCS+= tcb_common.c
|
|
|
|
SRCS+= tcbinfot4.c tcbshowt4.c
|
|
|
|
SRCS+= tcbinfot5.c tcbshowt5.c
|
|
|
|
SRCS+= tcbinfot6.c tcbshowt6.c
|
2017-03-03 03:11:58 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/dev/cxgbe -I${SRCTOP}/sys -I.
|
cxgbe(4): Add support for Connection Offload Policy (aka COP).
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
2018-04-14 20:07:56 +01:00
|
|
|
LIBADD= pcap
|
2017-03-03 03:11:58 +00:00
|
|
|
WARNS?= 2
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|