PERFORCE change 127489 for review
Kip Macy
kmacy at FreeBSD.org
Sat Oct 13 17:53:26 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=127489
Change 127489 by kmacy at 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_ */
More information about the p4-projects
mailing list