Skip to content

Commit 87fbd9f

Browse files
committed
tcp: remove unused socket option names
These IPPROTO_TCP-level socket option names correspond to socket options, which are not implemented. So remove them. Thanks to Peter Lei for suggesting this change. Reviewed by: rscheff, thj Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D46623
1 parent 99215a1 commit 87fbd9f

File tree

2 files changed

+21
-28
lines changed

2 files changed

+21
-28
lines changed

sys/netinet/tcp.h

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ __tcp_set_flags(struct tcphdr *th, uint16_t flags)
211211
#define TCP_CONGESTION 64 /* get/set congestion control algorithm */
212212
#define TCP_CCALGOOPT 65 /* get/set cc algorithm specific options */
213213
#define TCP_MAXUNACKTIME 68 /* maximum time without making progress (sec) */
214-
#define TCP_MAXPEAKRATE 69 /* maximum peak rate allowed (kbps) */
214+
/* unused; was TCP_MAXPEAKRATE */
215215
#define TCP_IDLE_REDUCE 70 /* Reduce cwnd on idle input */
216216
#define TCP_REMOTE_UDP_ENCAPS_PORT 71 /* Enable TCP over UDP tunneling via the specified port */
217217
#define TCP_DELACK 72 /* socket option for delayed ack */
@@ -233,57 +233,53 @@ __tcp_set_flags(struct tcphdr *th, uint16_t flags)
233233
/* Options for Rack and BBR */
234234
#define TCP_REUSPORT_LB_NUMA 1026 /* set listen socket numa domain */
235235
#define TCP_RACK_MBUF_QUEUE 1050 /* Do we allow mbuf queuing if supported */
236-
#define TCP_RACK_PROP 1051 /* Not used */
236+
/* unused; was TCP_RACK_PROP */
237237
#define TCP_RACK_TLP_REDUCE 1052 /* RACK TLP cwnd reduction (bool) */
238-
#define TCP_RACK_PACE_REDUCE 1053 /* RACK Pacingv reduction factor (divisor) */
238+
/* unused; was TCP_RACK_PACE_REDUCE */
239239
#define TCP_RACK_PACE_MAX_SEG 1054 /* Max TSO size we will send */
240240
#define TCP_RACK_PACE_ALWAYS 1055 /* Use the always pace method */
241-
#define TCP_RACK_PROP_RATE 1056 /* Not used */
241+
/* unused; was TCP_RACK_PROP_RATE */
242242
#define TCP_RACK_PRR_SENDALOT 1057 /* Allow PRR to send more than one seg */
243243
#define TCP_RACK_MIN_TO 1058 /* Minimum time between rack t-o's in ms */
244-
#define TCP_RACK_EARLY_RECOV 1059 /* Not used */
244+
/* unused; was TCP_RACK_EARLY_RECOV */
245245
#define TCP_RACK_EARLY_SEG 1060 /* If early recovery max segments */
246246
#define TCP_RACK_REORD_THRESH 1061 /* RACK reorder threshold (shift amount) */
247247
#define TCP_RACK_REORD_FADE 1062 /* Does reordering fade after ms time */
248248
#define TCP_RACK_TLP_THRESH 1063 /* RACK TLP theshold i.e. srtt+(srtt/N) */
249249
#define TCP_RACK_PKT_DELAY 1064 /* RACK added ms i.e. rack-rtt + reord + N */
250-
#define TCP_RACK_TLP_INC_VAR 1065 /* Does TLP include rtt variance in t-o */
250+
/* unused; was TCP_RACK_TLP_INC_VAR */
251+
/* unused */
251252
#define TCP_BBR_IWINTSO 1067 /* Initial TSO window for BBRs first sends */
252-
#define TCP_BBR_RECFORCE 1068 /* Enter recovery force out a segment disregard pacer no longer valid */
253+
/* unused; was TCP_BBR_RECFORCE */
253254
#define TCP_BBR_STARTUP_PG 1069 /* Startup pacing gain */
254255
#define TCP_BBR_DRAIN_PG 1070 /* Drain pacing gain */
255-
#define TCP_BBR_RWND_IS_APP 1071 /* Rwnd limited is considered app limited */
256+
/* unused; was TCP_BBR_RWND_IS_APP */
256257
#define TCP_BBR_PROBE_RTT_INT 1072 /* How long in useconds between probe-rtt */
257-
#define TCP_BBR_ONE_RETRAN 1073 /* Is only one segment allowed out during retran */
258+
/* unused; was TCP_BBR_ONE_RETRAN */
258259
#define TCP_BBR_STARTUP_LOSS_EXIT 1074 /* Do we exit a loss during startup if not 20% incr */
259-
#define TCP_BBR_USE_LOWGAIN 1075 /* lower the gain in PROBE_BW enable */
260-
#define TCP_BBR_LOWGAIN_THRESH 1076 /* Unused after 2.3 morphs to TSLIMITS >= 2.3 */
260+
/* unused; was TCP_BBR_USE_LOWGAIN */
261261
#define TCP_BBR_TSLIMITS 1076 /* Do we use experimental Timestamp limiting for our algo */
262-
#define TCP_BBR_LOWGAIN_HALF 1077 /* Unused after 2.3 */
263262
#define TCP_BBR_PACE_OH 1077 /* Reused in 4.2 for pacing overhead setting */
264-
#define TCP_BBR_LOWGAIN_FD 1078 /* Unused after 2.3 */
265-
#define TCP_BBR_HOLD_TARGET 1078 /* For 4.3 on */
263+
/* unused; was TCP_BBR_HOLD_TARGET */
266264
#define TCP_BBR_USEDEL_RATE 1079 /* Enable use of delivery rate for loss recovery */
267265
#define TCP_BBR_MIN_RTO 1080 /* Min RTO in milliseconds */
268266
#define TCP_BBR_MAX_RTO 1081 /* Max RTO in milliseconds */
269-
#define TCP_BBR_REC_OVER_HPTS 1082 /* Recovery override htps settings 0/1/3 */
270-
#define TCP_BBR_UNLIMITED 1083 /* Not used before 2.3 and morphs to algorithm >= 2.3 */
267+
/* unused; was TCP_BBR_REC_OVER_HPTS */
271268
#define TCP_BBR_ALGORITHM 1083 /* What measurement algo does BBR use netflix=0, google=1 */
272-
#define TCP_BBR_DRAIN_INC_EXTRA 1084 /* Does the 3/4 drain target include the extra gain */
273-
#define TCP_BBR_STARTUP_EXIT_EPOCH 1085 /* what epoch gets us out of startup */
269+
/* unused; was TCP_BBR_DRAIN_INC_EXTRA */
270+
/* unused; was TCP_BBR_STARTUP_EXIT_EPOCH */
274271
#define TCP_BBR_PACE_PER_SEC 1086
275272
#define TCP_BBR_PACE_DEL_TAR 1087
276273
#define TCP_BBR_PACE_SEG_MAX 1088
277274
#define TCP_BBR_PACE_SEG_MIN 1089
278275
#define TCP_BBR_PACE_CROSS 1090
279-
#define TCP_RACK_IDLE_REDUCE_HIGH 1092 /* Reduce the highest cwnd seen to IW on idle */
280-
#define TCP_RACK_MIN_PACE 1093 /* Do we enforce rack min pace time */
281-
#define TCP_RACK_MIN_PACE_SEG 1094 /* If so what is the seg threshould */
282-
#define TCP_RACK_GP_INCREASE 1094 /* After 4.1 its the GP increase in older rack */
276+
/* unused */
277+
/* unused; was TCP_RACK_IDLE_REDUCE_HIGH */
278+
/* unused; was TCP_RACK_MIN_PACE */
279+
/* unused; was TCP_RACK_GP_INCREASE */
283280
#define TCP_RACK_TLP_USE 1095
284-
#define TCP_BBR_ACK_COMP_ALG 1096 /* Not used */
285281
#define TCP_BBR_TMR_PACE_OH 1096 /* Recycled in 4.2 */
286-
#define TCP_BBR_EXTRA_GAIN 1097
282+
/* unused; was TCP_BBR_EXTRA_GAIN */
287283
#define TCP_RACK_DO_DETECTION 1097 /* Recycle of extra gain for rack, attack detection */
288284
#define TCP_BBR_RACK_RTT_USE 1098 /* what RTT should we use 0, 1, or 2? */
289285
#define TCP_BBR_RETRAN_WTSO 1099
@@ -302,7 +298,6 @@ __tcp_set_flags(struct tcphdr *th, uint16_t flags)
302298
#define TCP_BBR_POLICER_DETECT 1111 /* Turn on/off google mode policer detection */
303299
#define TCP_BBR_RACK_INIT_RATE 1112 /* Set an initial pacing rate for when we have no b/w in kbits per sec */
304300
#define TCP_RACK_RR_CONF 1113 /* Rack rapid recovery configuration control*/
305-
#define TCP_RACK_CHEAT_NOT_CONF_RATE TCP_RACK_RR_CONF
306301
#define TCP_RACK_GP_INCREASE_CA 1114 /* GP increase for Congestion Avoidance */
307302
#define TCP_RACK_GP_INCREASE_SS 1115 /* GP increase for Slow Start */
308303
#define TCP_RACK_GP_INCREASE_REC 1116 /* GP increase for Recovery */
@@ -325,7 +320,7 @@ __tcp_set_flags(struct tcphdr *th, uint16_t flags)
325320
#define TCP_REC_ABC_VAL 1134 /* Do we use the ABC value for recovery or the override one from sysctl */
326321
#define TCP_RACK_MEASURE_CNT 1135 /* How many measurements are required in GP pacing */
327322
#define TCP_DEFER_OPTIONS 1136 /* Defer options until the proper number of measurements occur, does not defer TCP_RACK_MEASURE_CNT */
328-
#define TCP_FAST_RSM_HACK 1137 /* Not used in modern stacks */
323+
/* unused; was TCP_FAST_RSM_HACK */
329324
#define TCP_RACK_PACING_BETA 1138 /* Changing the beta for pacing */
330325
#define TCP_RACK_PACING_BETA_ECN 1139 /* Changing the beta for ecn with pacing */
331326
#define TCP_RACK_TIMER_SLOP 1140 /* Set or get the timer slop used */

sys/netinet/tcp_stacks/bbr.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14215,10 +14215,8 @@ bbr_set_sockopt(struct tcpcb *tp, struct sockopt *sopt)
1421514215
case TCP_BBR_ALGORITHM:
1421614216
case TCP_BBR_TSLIMITS:
1421714217
case TCP_BBR_IWINTSO:
14218-
case TCP_BBR_RECFORCE:
1421914218
case TCP_BBR_STARTUP_PG:
1422014219
case TCP_BBR_DRAIN_PG:
14221-
case TCP_BBR_RWND_IS_APP:
1422214220
case TCP_BBR_PROBE_RTT_INT:
1422314221
case TCP_BBR_PROBE_RTT_GAIN:
1422414222
case TCP_BBR_PROBE_RTT_LEN:

0 commit comments

Comments
 (0)