diff options
author | kmacy <kmacy@FreeBSD.org> | 2007-12-12 20:21:39 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2007-12-12 20:21:39 +0000 |
commit | 95a448c7cbf19f26d0ed071ced5ce83aeeb2c4b2 (patch) | |
tree | c7a5f0158e1ded62414c64123f2a5e2dfb9e8bbd /sys/netinet/tcp_var.h | |
parent | a1921d35de90ba4ecff3390530b83d7e3e97af0e (diff) | |
download | FreeBSD-src-95a448c7cbf19f26d0ed071ced5ce83aeeb2c4b2.zip FreeBSD-src-95a448c7cbf19f26d0ed071ced5ce83aeeb2c4b2.tar.gz |
Add driver independent interface to offload active established TCP connections
Reviewed by: silby
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r-- | sys/netinet/tcp_var.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index 0999043..1d29a18 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -123,6 +123,7 @@ struct tcpcb { #define TF_SIGNATURE 0x400000 /* require MD5 digests (RFC2385) */ #define TF_FORCEDATA 0x800000 /* force out a byte */ #define TF_TSO 0x1000000 /* TSO enabled on this connection */ +#define TF_TOE 0x2000000 /* this connection is offloaded */ tcp_seq snd_una; /* send unacknowledged */ tcp_seq snd_max; /* highest sequence number sent; @@ -206,7 +207,9 @@ struct tcpcb { int t_rttlow; /* smallest observerved RTT */ u_int32_t rfbuf_ts; /* recv buffer autoscaling timestamp */ int rfbuf_cnt; /* recv buffer autoscaling byte count */ - void *t_pspare[5]; /* toe usrreqs / toepcb * / congestion algo / vimage / 1 general use */ + void *t_pspare[3]; /* toe usrreqs / toepcb * / congestion algo / vimage / 1 general use */ + struct toe_usrreqs *t_tu; /* offload operations vector */ + void *t_toe; /* TOE pcb pointer */ }; #define IN_FASTRECOVERY(tp) (tp->t_flags & TF_FASTRECOVERY) |