Deleted Added
full compact
tcp_output.c (206844) tcp_output.c (207369)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)tcp_output.c 8.4 (Berkeley) 5/24/95
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)tcp_output.c 8.4 (Berkeley) 5/24/95
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet/tcp_output.c 206844 2010-04-19 15:15:36Z ken $");
33__FBSDID("$FreeBSD: head/sys/netinet/tcp_output.c 207369 2010-04-29 11:52:42Z bz $");
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37#include "opt_ipsec.h"
38#include "opt_tcpdebug.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>

--- 40 unchanged lines hidden (view full) ---

82#include <machine/in_cksum.h>
83
84#include <security/mac/mac_framework.h>
85
86#ifdef notyet
87extern struct mbuf *m_copypack();
88#endif
89
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37#include "opt_ipsec.h"
38#include "opt_tcpdebug.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>

--- 40 unchanged lines hidden (view full) ---

82#include <machine/in_cksum.h>
83
84#include <security/mac/mac_framework.h>
85
86#ifdef notyet
87extern struct mbuf *m_copypack();
88#endif
89
90VNET_DEFINE(int, path_mtu_discovery);
91VNET_DEFINE(int, ss_fltsz);
92VNET_DEFINE(int, ss_fltsz_local);
93VNET_DEFINE(int, tcp_do_newreno);
94VNET_DEFINE(int, tcp_do_tso);
95VNET_DEFINE(int, tcp_do_autosndbuf);
96VNET_DEFINE(int, tcp_autosndbuf_inc);
97VNET_DEFINE(int, tcp_autosndbuf_max);
98
90VNET_DEFINE(int, path_mtu_discovery) = 1;
99SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, path_mtu_discovery, CTLFLAG_RW,
100 &VNET_NAME(path_mtu_discovery), 1,
101 "Enable Path MTU Discovery");
102
91SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, path_mtu_discovery, CTLFLAG_RW,
92 &VNET_NAME(path_mtu_discovery), 1,
93 "Enable Path MTU Discovery");
94
95VNET_DEFINE(int, ss_fltsz) = 1;
103SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, slowstart_flightsize, CTLFLAG_RW,
104 &VNET_NAME(ss_fltsz), 1,
105 "Slow start flight size");
106
96SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, slowstart_flightsize, CTLFLAG_RW,
97 &VNET_NAME(ss_fltsz), 1,
98 "Slow start flight size");
99
100VNET_DEFINE(int, ss_fltsz_local) = 4;
107SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, local_slowstart_flightsize,
108 CTLFLAG_RW, &VNET_NAME(ss_fltsz_local), 1,
109 "Slow start flight size for local networks");
110
101SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, local_slowstart_flightsize,
102 CTLFLAG_RW, &VNET_NAME(ss_fltsz_local), 1,
103 "Slow start flight size for local networks");
104
105VNET_DEFINE(int, tcp_do_newreno) = 1;
111SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, newreno, CTLFLAG_RW,
112 &VNET_NAME(tcp_do_newreno), 0,
113 "Enable NewReno Algorithms");
114
106SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, newreno, CTLFLAG_RW,
107 &VNET_NAME(tcp_do_newreno), 0,
108 "Enable NewReno Algorithms");
109
110VNET_DEFINE(int, tcp_do_tso) = 1;
111#define V_tcp_do_tso VNET(tcp_do_tso)
115SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, tso, CTLFLAG_RW,
116 &VNET_NAME(tcp_do_tso), 0,
117 "Enable TCP Segmentation Offload");
118
112SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, tso, CTLFLAG_RW,
113 &VNET_NAME(tcp_do_tso), 0,
114 "Enable TCP Segmentation Offload");
115
116VNET_DEFINE(int, tcp_do_autosndbuf) = 1;
117#define V_tcp_do_autosndbuf VNET(tcp_do_autosndbuf)
119SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, sendbuf_auto, CTLFLAG_RW,
120 &VNET_NAME(tcp_do_autosndbuf), 0,
121 "Enable automatic send buffer sizing");
122
118SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, sendbuf_auto, CTLFLAG_RW,
119 &VNET_NAME(tcp_do_autosndbuf), 0,
120 "Enable automatic send buffer sizing");
121
122VNET_DEFINE(int, tcp_autosndbuf_inc) = 8*1024;
123#define V_tcp_autosndbuf_inc VNET(tcp_autosndbuf_inc)
123SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, sendbuf_inc, CTLFLAG_RW,
124 &VNET_NAME(tcp_autosndbuf_inc), 0,
125 "Incrementor step size of automatic send buffer");
126
124SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, sendbuf_inc, CTLFLAG_RW,
125 &VNET_NAME(tcp_autosndbuf_inc), 0,
126 "Incrementor step size of automatic send buffer");
127
128VNET_DEFINE(int, tcp_autosndbuf_max) = 256*1024;
129#define V_tcp_autosndbuf_max VNET(tcp_autosndbuf_max)
127SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, sendbuf_max, CTLFLAG_RW,
128 &VNET_NAME(tcp_autosndbuf_max), 0,
129 "Max size of automatic send buffer");
130
131
132/*
133 * Tcp output routine: figure out what should be sent and send it.
134 */

--- 1330 unchanged lines hidden ---
130SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, sendbuf_max, CTLFLAG_RW,
131 &VNET_NAME(tcp_autosndbuf_max), 0,
132 "Max size of automatic send buffer");
133
134
135/*
136 * Tcp output routine: figure out what should be sent and send it.
137 */

--- 1330 unchanged lines hidden ---