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

Commit c7cd0928 authored by Sean Tranchetti's avatar Sean Tranchetti Committed by Gerrit - the friendly Code Review server
Browse files

drivers: rmnet_perf: Lower TCP and UDP coalescing byte limit



Lowering the byte limit from 65535 to 65000 helps prevent the truesize of
the final coalesced SKB from growing into the next power of 2 (~131,000).
This helps reduce the memory footprint of the module.

Change-Id: Ide9bbf2a899e29b1fa23072cee4bffba6b0ff65b
Signed-off-by: default avatarSean Tranchetti <stranche@codeaurora.org>
parent 3fa1ec15
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -27,7 +27,7 @@
#include "rmnet_perf_config.h"
#include "rmnet_perf_config.h"


/* Max number of bytes we allow tcp_opt to aggregate per flow */
/* Max number of bytes we allow tcp_opt to aggregate per flow */
unsigned int rmnet_perf_tcp_opt_flush_limit __read_mostly = 65536;
unsigned int rmnet_perf_tcp_opt_flush_limit __read_mostly = 65000;
module_param(rmnet_perf_tcp_opt_flush_limit, uint, 0644);
module_param(rmnet_perf_tcp_opt_flush_limit, uint, 0644);
MODULE_PARM_DESC(rmnet_perf_tcp_opt_flush_limit,
MODULE_PARM_DESC(rmnet_perf_tcp_opt_flush_limit,
		 "Max flush limiit for tcp_opt");
		 "Max flush limiit for tcp_opt");
+1 −1
Original line number Original line Diff line number Diff line
@@ -26,7 +26,7 @@
#include "rmnet_perf_config.h"
#include "rmnet_perf_config.h"


/* Max number of bytes we allow udp_opt to aggregate per flow */
/* Max number of bytes we allow udp_opt to aggregate per flow */
unsigned int rmnet_perf_udp_opt_flush_limit __read_mostly = 65536;
unsigned int rmnet_perf_udp_opt_flush_limit __read_mostly = 65000;
module_param(rmnet_perf_udp_opt_flush_limit, uint, 0644);
module_param(rmnet_perf_udp_opt_flush_limit, uint, 0644);
MODULE_PARM_DESC(rmnet_perf_udp_opt_flush_limit,
MODULE_PARM_DESC(rmnet_perf_udp_opt_flush_limit,
		 "Max flush limiit for udp_opt");
		 "Max flush limiit for udp_opt");