Date: Wed, 12 Dec 2007 04:29:58 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 130663 for review Message-ID: <200712120429.lBC4TwGC089548@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=130663 Change 130663 by kmacy@kmacy:storage:toehead on 2007/12/12 04:29:25 add TOE interface to TCP Affected files ... .. //depot/projects/toehead/sys/conf/files#2 edit .. //depot/projects/toehead/sys/netinet/tcp_ofld.c#1 add .. //depot/projects/toehead/sys/netinet/tcp_ofld.h#1 add .. //depot/projects/toehead/sys/netinet/tcp_var.h#2 edit .. //depot/projects/toehead/sys/netinet/toedev.h#1 add .. //depot/projects/toehead/sys/sys/socket.h#2 edit Differences ... ==== //depot/projects/toehead/sys/conf/files#2 (text+ko) ==== @@ -1888,6 +1888,7 @@ netinet/tcp_hostcache.c optional inet netinet/tcp_input.c optional inet netinet/tcp_output.c optional inet +netinet/tcp_ofld.c optional inet netinet/tcp_reass.c optional inet netinet/tcp_sack.c optional inet netinet/tcp_subr.c optional inet ==== //depot/projects/toehead/sys/netinet/tcp_var.h#2 (text+ko) ==== @@ -123,6 +123,7 @@ #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 @@ 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) ==== //depot/projects/toehead/sys/sys/socket.h#2 (text+ko) ==== @@ -118,6 +118,8 @@ #define SO_ACCEPTFILTER 0x1000 /* there is an accept filter */ #define SO_BINTIME 0x2000 /* timestamp received dgram traffic */ #endif +#define SO_NOOFFLOAD 0x4000 /* socket cannot be offloaded */ +#define SO_NO_DDP 0x8000 /* disable direct data placement */ /* * Additional options, not kept in so_options.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712120429.lBC4TwGC089548>