Deleted Added
full compact
tcp_sack.c (292003) tcp_sack.c (292309)
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 292003 2015-12-08 21:21:48Z hiren $");
74__FBSDID("$FreeBSD: head/sys/netinet/tcp_sack.c 292309 2015-12-16 00:56:45Z rrs $");
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>

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

594 /* Send one or 2 segments based on how much new data was acked. */
595 if ((BYTES_THIS_ACK(tp, th) / tp->t_maxseg) >= 2)
596 num_segs = 2;
597 tp->snd_cwnd = (tp->sackhint.sack_bytes_rexmit +
598 (tp->snd_nxt - tp->sack_newdata) + num_segs * tp->t_maxseg);
599 if (tp->snd_cwnd > tp->snd_ssthresh)
600 tp->snd_cwnd = tp->snd_ssthresh;
601 tp->t_flags |= TF_ACKNOW;
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>

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

594 /* Send one or 2 segments based on how much new data was acked. */
595 if ((BYTES_THIS_ACK(tp, th) / tp->t_maxseg) >= 2)
596 num_segs = 2;
597 tp->snd_cwnd = (tp->sackhint.sack_bytes_rexmit +
598 (tp->snd_nxt - tp->sack_newdata) + num_segs * tp->t_maxseg);
599 if (tp->snd_cwnd > tp->snd_ssthresh)
600 tp->snd_cwnd = tp->snd_ssthresh;
601 tp->t_flags |= TF_ACKNOW;
602 (void) tcp_output(tp);
602 (void) tp->t_fb->tfb_tcp_output(tp);
603}
604
605#if 0
606/*
607 * Debug version of tcp_sack_output() that walks the scoreboard. Used for
608 * now to sanity check the hint.
609 */
610static struct sackhole *

--- 91 unchanged lines hidden ---
603}
604
605#if 0
606/*
607 * Debug version of tcp_sack_output() that walks the scoreboard. Used for
608 * now to sanity check the hint.
609 */
610static struct sackhole *

--- 91 unchanged lines hidden ---