projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
471bd29
)
tcp: Don't check PRUS_OOB again in tcp_usr_send
author
Sepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 8 Dec 2011 05:38:37 +0000 (13:38 +0800)
committer
Sepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 8 Dec 2011 05:41:39 +0000 (13:41 +0800)
- It is not necessary; it was checked in sosendtcp
- It does not work w/ asynchronized pru_send
Reminded-by: dillon@
sys/netinet/tcp_usrreq.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/netinet/tcp_usrreq.c
b/sys/netinet/tcp_usrreq.c
index
31b5ac5
..
2a2f1fd
100644
(file)
--- a/
sys/netinet/tcp_usrreq.c
+++ b/
sys/netinet/tcp_usrreq.c
@@
-757,6
+757,13
@@
tcp_usr_send(netmsg_t msg)
tp = intotcpcb(inp);
TCPDEBUG1();
+#ifdef foo
+ /*
+ * This is no longer necessary, since:
+ * - sosendtcp() has already checked it for us
+ * - It does not work with asynchronized send
+ */
+
/*
* Don't let too much OOB data build up
*/
@@
-767,6
+774,7
@@
tcp_usr_send(netmsg_t msg)
goto out;
}
}
+#endif
/*
* Pump the data into the socket.