1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/netinet
Archie Cobbs 7734ea0612 Improve performance in the case where ip_output() returns an error.
When this happens, we know for sure that the packet data was not
received by the peer. Therefore, back out any advancing of the
transmit sequence number so that we send the same data the next
time we transmit a packet, avoiding a guaranteed missed packet and
its resulting TCP transmit slowdown.

In most systems ip_output() probably never returns an error, and
so this problem is never seen. However, it is more likely to occur
with device drivers having short output queues (causing ENOBUFS to
be returned when they are full), not to mention low memory situations.

Moreover, because of this problem writers of slow devices were
required to make an unfortunate choice between (a) having a relatively
short output queue (with low latency but low TCP bandwidth because
of this problem) or (b) a long output queue (with high latency and
high TCP bandwidth). In my particular application (ISDN) it took
an output queue equal to ~5 seconds of transmission to avoid ENOBUFS.
A more reasonable output queue of 0.5 seconds resulted in only about
50% TCP throughput. With this patch full throughput was restored in
the latter case.

Reviewed by:	freebsd-net
2000-08-03 23:23:36 +00:00
..
libalias Whitespace only: 2000-07-31 13:49:21 +00:00
accf_data.c return of the accept filter part II 2000-06-20 01:09:23 +00:00
accf_http.c return of the accept filter part II 2000-06-20 01:09:23 +00:00
fil.c fix conflicts 2000-07-19 14:02:09 +00:00
icmp6.h sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
icmp_var.h sysctl'ize ICMP_BANDLIM and ICMP_BANDLIM_SUPPRESS_OUTPUT. 2000-05-22 16:12:28 +00:00
if_atm.c
if_atm.h
if_ether.c Extra sanity check when arp proxyall is enabled. Don't send an arp 2000-07-13 19:31:01 +00:00
if_ether.h
if_fddi.h
igmp_var.h
igmp.c
igmp.h
in_cksum.c
in_gif.c sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
in_gif.h sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
in_hostcache.c
in_hostcache.h
in_pcb.c When a connection is being dropped due to a listen queue overflow, 2000-07-21 23:26:37 +00:00
in_pcb.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
in_proto.c Make netstat(1) to be aware of divert(4) sockets. 2000-08-03 14:09:52 +00:00
in_rmx.c
in_systm.h
in_var.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
in.c sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
in.h sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
ip6.h remove m_pulldown statistics, which is highly experimental and does not 2000-07-12 16:39:13 +00:00
ip_auth.c Change __FreeBSD_Version into the proper __FreeBSD_version. 2000-08-01 17:14:38 +00:00
ip_auth.h fix conflicts 2000-05-24 03:17:16 +00:00
ip_compat.h fix up conflicts 2000-05-24 04:40:17 +00:00
ip_divert.c Make netstat(1) to be aware of divert(4) sockets. 2000-08-03 14:09:52 +00:00
ip_dummynet.c close PR 19544 - ipfw pipe delete causes panic when no pipes defined 2000-07-17 20:03:27 +00:00
ip_dummynet.h Implement WF2Q+ in dummynet. 2000-06-08 09:45:23 +00:00
ip_ecn.c sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
ip_ecn.h sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
ip_encap.c sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
ip_encap.h sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
ip_fil.c Change __FreeBSD_Version into the proper __FreeBSD_version. 2000-08-01 17:14:38 +00:00
ip_fil.h activate pfil_hooks and covert ipfilter to use it 2000-07-31 13:11:42 +00:00
ip_flow.c Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
ip_flow.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
ip_frag.c fix conflicts 2000-07-19 14:02:09 +00:00
ip_frag.h It would have been nice if this actually compiled. Close the header 2000-05-24 09:08:55 +00:00
ip_ftp_pxy.c fix conflicts 2000-07-19 14:02:09 +00:00
ip_fw.c Add tcpoptions to ipfw. This works much in the same way as ipoptions do. 2000-06-08 15:34:51 +00:00
ip_fw.h Add tcpoptions to ipfw. This works much in the same way as ipoptions do. 2000-06-08 15:34:51 +00:00
ip_icmp.c Add boundary checks against IP options. 2000-06-02 20:18:38 +00:00
ip_icmp.h
ip_input.c Nonexistent <sys/pfil.h> -> <net/pfil.h> 2000-07-31 23:41:47 +00:00
ip_log.c fix conflicts 2000-07-19 14:02:09 +00:00
ip_mroute.c
ip_mroute.h
ip_nat.c fix conflicts 2000-07-19 14:02:09 +00:00
ip_nat.h fix conflicts 2000-07-19 14:02:09 +00:00
ip_output.c activate pfil_hooks and covert ipfilter to use it 2000-07-31 13:11:42 +00:00
ip_proxy.c fix conflicts 2000-05-24 04:21:35 +00:00
ip_proxy.h fix conflicts 2000-05-24 04:21:35 +00:00
ip_raudio_pxy.c fix up conflicts 2000-05-24 04:40:17 +00:00
ip_rcmd_pxy.c fix conflicts 2000-07-19 14:02:09 +00:00
ip_state.c fix conflicts 2000-07-19 14:02:09 +00:00
ip_state.h fix conflicts 2000-07-19 14:02:09 +00:00
ip_var.h sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
ip.h
ipl.h fix conflicts 2000-07-19 14:02:09 +00:00
ipprotosw.h activate pfil_hooks and covert ipfilter to use it 2000-07-31 13:11:42 +00:00
mlfk_ipl.c fix up conflicts 2000-05-24 04:40:17 +00:00
raw_ip.c sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
tcp_debug.c sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
tcp_debug.h
tcp_fsm.h
tcp_input.c When a connection is being dropped due to a listen queue overflow, 2000-07-21 23:26:37 +00:00
tcp_output.c Improve performance in the case where ip_output() returns an error. 2000-08-03 23:23:36 +00:00
tcp_reass.c When a connection is being dropped due to a listen queue overflow, 2000-07-21 23:26:37 +00:00
tcp_seq.h
tcp_subr.c When a connection is being dropped due to a listen queue overflow, 2000-07-21 23:26:37 +00:00
tcp_timer.c Previous commit changing SYSCTL_HANDLER_ARGS violated KNF. 2000-07-04 11:25:35 +00:00
tcp_timer.h
tcp_timewait.c When a connection is being dropped due to a listen queue overflow, 2000-07-21 23:26:37 +00:00
tcp_usrreq.c
tcp_var.h When a connection is being dropped due to a listen queue overflow, 2000-07-21 23:26:37 +00:00
tcp.h
tcpip.h
udp_usrreq.c sync with kame tree as of july00. tons of bug fixes/improvements. 2000-07-04 16:35:15 +00:00
udp_var.h
udp.h