Thread (32 messages) 32 messages, 9 authors, 2016-09-30

RE: [PATCH v4 net-next 13/16] tcp: allow congestion control to expand send buffer differently

flat view

From: David Laight <hidden>
Date: 2016-09-21 09:28:25

From: Stephen Hemminger
Sent: 20 September 2016 18:48
...
quoted
-	sndmem = 2 * nr_segs * per_mss;
+	sndmem = ca_ops->sndbuf_expand ? ca_ops->sndbuf_expand(sk) : 2;
You could avoid the conditional (if it mattered) by inheriting a default value
that would mean changing all existing congestion control modules.
So doing it this way makes life easier.
The indirect call is probably worse than the conditional.

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help