summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-07-20 02:02:50 +0000
committerkmacy <kmacy@FreeBSD.org>2008-07-20 02:02:50 +0000
commit4bbab6ecc1c060442559e29a8ccb45b644e7f8da (patch)
tree1c61c332eb19cfafc77cc75cc43e9c13738758d0 /sys/netinet
parent86bb1c4f2b0a39090db999fc2b59a5f6a517ed10 (diff)
downloadFreeBSD-src-4bbab6ecc1c060442559e29a8ccb45b644e7f8da.zip
FreeBSD-src-4bbab6ecc1c060442559e29a8ccb45b644e7f8da.tar.gz
remove unused toedev functions and add comments for rest
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/toedev.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/sys/netinet/toedev.h b/sys/netinet/toedev.h
index 6cd2d13..4bce203 100644
--- a/sys/netinet/toedev.h
+++ b/sys/netinet/toedev.h
@@ -78,15 +78,35 @@ struct toedev {
struct ifnet *tod_lldev; /* first interface */
const struct tom_info *tod_offload_mod; /* TCP offload module */
- int (*tod_open)(struct toedev *dev);
- int (*tod_close)(struct toedev *dev);
+ /*
+ * This TOE device is capable of offloading the connection for socket so
+ */
int (*tod_can_offload)(struct toedev *dev, struct socket *so);
+
+ /*
+ * Establish a connection to nam using the TOE device dev
+ */
int (*tod_connect)(struct toedev *dev, struct socket *so,
struct rtentry *rt, struct sockaddr *nam);
+ /*
+ * Send an mbuf down to the toe device
+ */
int (*tod_send)(struct toedev *dev, struct mbuf *m);
+ /*
+ * Receive an array of mbufs from the TOE device dev
+ */
int (*tod_recv)(struct toedev *dev, struct mbuf **m, int n);
+ /*
+ * Device specific ioctl interface
+ */
int (*tod_ctl)(struct toedev *dev, unsigned int req, void *data);
+ /*
+ * Update L2 entry in toedev
+ */
void (*tod_arp_update)(struct toedev *dev, struct rtentry *neigh);
+ /*
+ * Failover from one toe device to another
+ */
void (*tod_failover)(struct toedev *dev, struct ifnet *bond_ifp,
struct ifnet *ndev, int event);
void *tod_priv; /* driver private data */
OpenPOWER on IntegriCloud