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

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

66 *
67 * The views and conclusions contained in the software and documentation
68 * are those of the authors and should not be interpreted as representing
69 * official policies, either expressed or implied, of the US Naval
70 * Research Laboratory (NRL).
71 */
72
73#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1994, 1995
3 * The Regents of the University of California.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

66 *
67 * The views and conclusions contained in the software and documentation
68 * are those of the authors and should not be interpreted as representing
69 * official policies, either expressed or implied, of the US Naval
70 * Research Laboratory (NRL).
71 */
72
73#include <sys/cdefs.h>
74__FBSDID("$FreeBSD: head/sys/netinet/tcp_sack.c 195699 2009-07-14 22:48:30Z rwatson $");
74__FBSDID("$FreeBSD: head/sys/netinet/tcp_sack.c 195727 2009-07-16 21:13:04Z rwatson $");
75
76#include "opt_inet.h"
77#include "opt_inet6.h"
78#include "opt_tcpdebug.h"
79
80#include <sys/param.h>
81#include <sys/systm.h>
82#include <sys/kernel.h>

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

123#include <machine/in_cksum.h>
124
125VNET_DECLARE(struct uma_zone *, sack_hole_zone);
126VNET_DEFINE(int, tcp_do_sack);
127VNET_DEFINE(int, tcp_sack_maxholes);
128VNET_DEFINE(int, tcp_sack_globalmaxholes);
129VNET_DEFINE(int, tcp_sack_globalholes);
130
75
76#include "opt_inet.h"
77#include "opt_inet6.h"
78#include "opt_tcpdebug.h"
79
80#include <sys/param.h>
81#include <sys/systm.h>
82#include <sys/kernel.h>

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

123#include <machine/in_cksum.h>
124
125VNET_DECLARE(struct uma_zone *, sack_hole_zone);
126VNET_DEFINE(int, tcp_do_sack);
127VNET_DEFINE(int, tcp_sack_maxholes);
128VNET_DEFINE(int, tcp_sack_globalmaxholes);
129VNET_DEFINE(int, tcp_sack_globalholes);
130
131#define V_sack_hole_zone VNET_GET(sack_hole_zone)
132#define V_tcp_do_sack VNET_GET(tcp_do_sack)
133#define V_tcp_sack_maxholes VNET_GET(tcp_sack_maxholes)
134#define V_tcp_sack_globalmaxholes VNET_GET(tcp_sack_globalmaxholes)
135#define V_tcp_sack_globalholes VNET_GET(tcp_sack_globalholes)
131#define V_sack_hole_zone VNET(sack_hole_zone)
132#define V_tcp_do_sack VNET(tcp_do_sack)
133#define V_tcp_sack_maxholes VNET(tcp_sack_maxholes)
134#define V_tcp_sack_globalmaxholes VNET(tcp_sack_globalmaxholes)
135#define V_tcp_sack_globalholes VNET(tcp_sack_globalholes)
136
137SYSCTL_NODE(_net_inet_tcp, OID_AUTO, sack, CTLFLAG_RW, 0, "TCP SACK");
138SYSCTL_VNET_INT(_net_inet_tcp_sack, OID_AUTO, enable, CTLFLAG_RW,
139 &VNET_NAME(tcp_do_sack), 0, "Enable/Disable TCP SACK support");
140
141SYSCTL_VNET_INT(_net_inet_tcp_sack, OID_AUTO, maxholes, CTLFLAG_RW,
142 &VNET_NAME(tcp_sack_maxholes), 0,
143 "Maximum number of TCP SACK holes allowed per connection");

--- 543 unchanged lines hidden ---
136
137SYSCTL_NODE(_net_inet_tcp, OID_AUTO, sack, CTLFLAG_RW, 0, "TCP SACK");
138SYSCTL_VNET_INT(_net_inet_tcp_sack, OID_AUTO, enable, CTLFLAG_RW,
139 &VNET_NAME(tcp_do_sack), 0, "Enable/Disable TCP SACK support");
140
141SYSCTL_VNET_INT(_net_inet_tcp_sack, OID_AUTO, maxholes, CTLFLAG_RW,
142 &VNET_NAME(tcp_sack_maxholes), 0,
143 "Maximum number of TCP SACK holes allowed per connection");

--- 543 unchanged lines hidden ---