PERFORCE change 128446 for review
Kip Macy
kmacy at FreeBSD.org
Wed Oct 31 20:21:37 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=128446
Change 128446 by kmacy at kmacy:storage:toestack on 2007/11/01 03:21:13
add placeholder routines for toe usrreqs
Affected files ...
.. //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c#9 edit
Differences ...
==== //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c#9 (text+ko) ====
@@ -41,6 +41,7 @@
#include <sys/socket.h>
#include <sys/syslog.h>
#include <sys/socketvar.h>
+#include <sys/protosw.h>
#include <net/if.h>
#include <net/route.h>
@@ -121,8 +122,56 @@
*/
#define MIN_RCV_WND (24 * 1024U)
-static struct toe_usrreqs cxgb_toe_usrreqs;
+static int
+cxgb_toe_disconnect(struct tcpcb *tp)
+{
+ printf("%s UNIMPLEMENTED!!!!\n", __FUNCTION__);
+ return (0);
+}
+
+static int
+cxgb_toe_abort(struct tcpcb *tp)
+{
+ printf("%s UNIMPLEMENTED!!!!\n", __FUNCTION__);
+ return (0);
+}
+
+static int
+cxgb_toe_send(struct tcpcb *tp)
+{
+ printf("%s UNIMPLEMENTED!!!!\n", __FUNCTION__);
+ return (0);
+}
+
+static int
+cxgb_toe_listen_start(struct tcpcb *tp)
+{
+ printf("%s UNIMPLEMENTED!!!!\n", __FUNCTION__);
+ return (0);
+}
+
+static int
+cxgb_toe_listen_stop(struct tcpcb *tp)
+{
+ printf("%s UNIMPLEMENTED!!!!\n", __FUNCTION__);
+ return (0);
+}
+
+static int
+cxgb_toe_rcvd(struct tcpcb *tp)
+{
+ printf("%s UNIMPLEMENTED!!!!\n", __FUNCTION__);
+ return (0);
+}
+static struct toe_usrreqs cxgb_toe_usrreqs = {
+ .tu_disconnect = cxgb_toe_disconnect,
+ .tu_abort = cxgb_toe_abort,
+ .tu_send = cxgb_toe_send,
+ .tu_listen_start = cxgb_toe_listen_start,
+ .tu_listen_stop = cxgb_toe_listen_stop,
+ .tu_rcvd = cxgb_toe_rcvd,
+};
void
t3_enable_ddp(struct socket *so, int on)
@@ -594,7 +643,7 @@
if (t3_push_frames(sk, 1))
sk->sk_write_space(sk);
#endif
-
+
soisconnected(so);
tp->t_state = TCPS_ESTABLISHED;
tcpstat.tcps_connects++;
More information about the p4-projects
mailing list