Date: Sun, 29 Apr 2007 03:02:14 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 118926 for review Message-ID: <200704290302.l3T32EAf010468@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=118926 Change 118926 by kmacy@kmacy_vt-x:opentoe_init on 2007/04/29 03:02:05 TOE on linux appears to rely on having a backpointer from the skb to the socket - add a field to allow me to do the same on FreeBSD until I can find away around this The fact of the matter is that, network offload, like graphics offload, requires modifications to the layer interfaces - the current interfaces are not god-given and may need to be re-examined in the future. That said, I'm not going to advocate the skb style strategy of having pointers to everything in the network stack "just in case". Affected files ... .. //depot/projects/opentoe/sys/sys/mbuf.h#7 edit Differences ... ==== //depot/projects/opentoe/sys/sys/mbuf.h#7 (text+ko) ==== @@ -122,6 +122,7 @@ int csum_data; /* data field used by csum routines */ u_int16_t tso_segsz; /* TSO segment size */ u_int16_t ether_vtag; /* Ethernet 802.1p+q vlan tag */ + void * priv; /* opaque pointer for protocol offload support */ SLIST_HEAD(packet_tags, m_tag) tags; /* list of packet tags */ }; @@ -196,7 +197,8 @@ #define M_VLANTAG 0x10000 /* ether_vtag is valid */ #define M_PROMISC 0x20000 /* packet was not for us */ #define M_LRO 0x80000 /* large receive offload in use for packet */ -#define M_IOVEC 0x100000 /* mbuf immediate data area is used for cluster ptrs */ +#define M_IOVEC 0x100000 /* mbuf immediate data area is used for cluster ptrs */ +#define M_TOE 0x200000 /* packet is handled by protocol offload */ /* * External buffer types: identify ext_buf type.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704290302.l3T32EAf010468>