From: Sepherosa Ziehau Date: Thu, 8 Dec 2011 05:38:37 +0000 (+0800) Subject: tcp: Don't check PRUS_OOB again in tcp_usr_send X-Git-Tag: v3.0.0~440 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/8b0272b97de4fe9a1460bf12740a14d9692b9a37 tcp: Don't check PRUS_OOB again in tcp_usr_send - It is not necessary; it was checked in sosendtcp - It does not work w/ asynchronized pru_send Reminded-by: dillon@ --- diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 31b5ac504e..2a2f1fd552 100644 --- 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.