PERFORCE change 118925 for review

Kip Macy kmacy at FreeBSD.org
Sun Apr 29 02:57:08 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=118925

Change 118925 by kmacy at kmacy_vt-x:opentoe_init on 2007/04/29 02:56:25

	rather than overloading random unused fields as in linux
	add a pointer to a separate structure for TOE tracking of socket state

Affected files ...

.. //depot/projects/opentoe/sys/sys/socketvar.h#4 edit

Differences ...

==== //depot/projects/opentoe/sys/sys/socketvar.h#4 (text+ko) ====

@@ -131,6 +131,7 @@
 #define	SB_AIO		0x80		/* AIO operations queued */
 #define	SB_KNOTE	0x100		/* kernel note attached */
 #define	SB_AUTOSIZE	0x800		/* automatically size socket buffer */
+#define	SB_TOE		0x1000		/* socket is associated with a TOE */
 
 	void	(*so_upcall)(struct socket *, void *, int);
 	void	*so_upcallarg;
@@ -145,6 +146,7 @@
 		void	*so_accept_filter_arg;	/* saved filter args */
 		char	*so_accept_filter_str;	/* saved user args */
 	} *so_accf;
+	void	*so_toe;		/* (b) TOE private data */
 };
 
 #define SB_EMPTY_FIXUP(sb) do {						\


More information about the p4-projects mailing list