PERFORCE change 128444 for review
Kip Macy
kmacy at FreeBSD.org
Wed Oct 31 18:40:48 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=128444
Change 128444 by kmacy at kmacy:storage:toestack on 2007/11/01 01:40:43
- remove some debug print statements
- notify the stack that we are connected
Affected files ...
.. //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c#8 edit
Differences ...
==== //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c#8 (text+ko) ====
@@ -172,18 +172,10 @@
const struct t3c_data *td;
struct toedev *toed;
- printf("getting toedev\n");
-
toed = TOE_DEV(so);
- printf("toedev=%p\n", toed);
-
- printf("getting tom_data\n");
d = TOM_DATA(toed);
- printf("tom_data=%p\n", d);
if (d == NULL)
panic("tom_data not set");
-
- printf("d->cdev=%p\n", d->cdev);
td = T3C_DATA(d->cdev);
#ifdef notyet
@@ -282,7 +274,6 @@
tp->t_toe = toep;
toep->tp_toedev = dev;
- printf("tp->tp_toedev=%p\n", dev);
toep->tp_tid = tid;
toep->tp_l2t = e;
@@ -294,7 +285,6 @@
printf("mss selected\n");
tp->rcv_wnd = select_rcv_wnd(so);
- printf("rcv_wnd selected\n");
toep->tp_ulp_mode = TOM_TUNABLE(dev, ddp) && !(so->so_options & SO_NO_DDP) &&
tp->rcv_wnd >= MIN_DDP_RCV_WIN ? ULP_MODE_TCPDDP : 0;
toep->tp_qset_idx = 0;
@@ -405,6 +395,8 @@
INP_LOCK(inp);
if (tp->t_state == TCPS_SYN_SENT || tp->t_state == TCPS_SYN_RECEIVED) {
fail_act_open(so, EHOSTUNREACH);
+ printf("freeing %p\n", m);
+
m_free(m);
}
INP_UNLOCK(inp);
@@ -450,6 +442,8 @@
if (toep->tp_ulp_mode)
t3_enable_ddp(so, 0);
+ soisconnecting(so);
+
return (0);
free_tid:
@@ -579,6 +573,8 @@
sk_wake_async(sk, 0, POLL_OUT);
#endif
}
+ printf("freeing %p\n", m);
+
m_free(m);
#ifdef notyet
/*
@@ -598,6 +594,11 @@
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