Date: Sun, 14 Oct 2007 00:53:26 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 127489 for review Message-ID: <200710140053.l9E0rQI5096715@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=127489 Change 127489 by kmacy@kmacy:storage:toestack on 2007/10/14 00:53:15 add extension to mbuf for cpl packets Affected files ... .. //depot/projects/toestack/sys/dev/cxgb/ulp/toecore/toedev.h#3 edit Differences ... ==== //depot/projects/toestack/sys/dev/cxgb/ulp/toecore/toedev.h#3 (text+ko) ==== @@ -49,14 +49,13 @@ TOE_RELEASE_ALL, }; - #define TOENAMSIZ 16 /* belongs in linux/netdevice.h */ #define NETIF_F_TCPIP_OFFLOAD (1 << 15) /* Get the toedev associated with a ifnet */ -#define TOEDEV(netdev) (*(struct toedev **)&(netdev)->if_softc) +#define TOEDEV(ifp) ((ifp)->if_spare2) /* offload type ids */ enum { @@ -171,4 +170,28 @@ } #endif /* CONFIG_TCP_OFFLOAD */ + +struct m_toe_ { + void (*mt_arp_fail)(struct toedev *, struct mbuf *); + struct socket *mt_so; +}; + +#define TMLEN (MLEN - sizeof(struct m_toe_)) + +struct toe_mbuf { + struct m_hdr m_hdr; + union { + struct { + struct pkthdr MH_pkthdr; /* M_PKTHDR set */ + union { + struct m_ext_ MH_ext; /* M_EXT set */ + char MH_databuf[MHLEN]; + } MH_dat; + struct m_toe_ MH_toe; /* M_TOE set */ + } MH; + char M_databuf[TMLEN]; /* !M_PKTHDR, !M_EXT */ + } M_dat; +}; + + #endif /* _OFFLOAD_DEV_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710140053.l9E0rQI5096715>