Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a252bebe authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

tcp: mark tcp_congestion_ops read_mostly

parent cc7e17ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt)
}


static struct tcp_congestion_ops bictcp = {
static struct tcp_congestion_ops bictcp __read_mostly = {
	.init		= bictcp_init,
	.ssthresh	= bictcp_recalc_ssthresh,
	.cong_avoid	= bictcp_cong_avoid,
+1 −1
Original line number Diff line number Diff line
@@ -405,7 +405,7 @@ static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt_us)
		hystart_update(sk, delay);
}

static struct tcp_congestion_ops cubictcp = {
static struct tcp_congestion_ops cubictcp __read_mostly = {
	.init		= bictcp_init,
	.ssthresh	= bictcp_recalc_ssthresh,
	.cong_avoid	= bictcp_cong_avoid,
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ static u32 hstcp_ssthresh(struct sock *sk)
}


static struct tcp_congestion_ops tcp_highspeed = {
static struct tcp_congestion_ops tcp_highspeed __read_mostly = {
	.init		= hstcp_init,
	.ssthresh	= hstcp_ssthresh,
	.cong_avoid	= hstcp_cong_avoid,
+1 −1
Original line number Diff line number Diff line
@@ -284,7 +284,7 @@ static void htcp_state(struct sock *sk, u8 new_state)
	}
}

static struct tcp_congestion_ops htcp = {
static struct tcp_congestion_ops htcp __read_mostly = {
	.init		= htcp_init,
	.ssthresh	= htcp_recalc_ssthresh,
	.cong_avoid	= htcp_cong_avoid,
+1 −1
Original line number Diff line number Diff line
@@ -162,7 +162,7 @@ static void hybla_cong_avoid(struct sock *sk, u32 ack, u32 in_flight)
	tp->snd_cwnd = min_t(u32, tp->snd_cwnd, tp->snd_cwnd_clamp);
}

static struct tcp_congestion_ops tcp_hybla = {
static struct tcp_congestion_ops tcp_hybla __read_mostly = {
	.init		= hybla_init,
	.ssthresh	= tcp_reno_ssthresh,
	.min_cwnd	= tcp_reno_min_cwnd,
Loading