android_kernel_google_msm/arch/powerpc
Eric Dumazet adc3caedd0 net: introduce SO_MAX_PACING_RATE
As mentioned in commit afe4fd0624 ("pkt_sched: fq: Fair Queue packet
scheduler"), this patch adds a new socket option.

SO_MAX_PACING_RATE offers the application the ability to cap the
rate computed by transport layer. Value is in bytes per second.

u32 val = 1000000;
setsockopt(sockfd, SOL_SOCKET, SO_MAX_PACING_RATE, &val, sizeof(val));

To be effectively paced, a flow must use FQ packet scheduler.

Note that a packet scheduler takes into account the headers for its
computations. The effective payload rate depends on MSS and retransmits
if any.

I chose to make this pacing rate a SOL_SOCKET option instead of a
TCP one because this can be used by other protocols.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steinar H. Gunderson <sesse@google.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: Iea51b6104a5420d5c9ed1ea7382cbd53bdb8f4be
2020-11-30 19:31:32 +03:00
..
boot powerpc/mpc85xx: Add ranges to etsec2 nodes 2015-06-19 11:40:32 +08:00
configs netfilter: remove xt_NOTRACK 2018-12-07 22:04:24 +04:00
include/asm net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
kernel BACKPORT: FROMLIST: mm: ASLR: use get_random_long() 2017-12-27 22:50:17 +03:00
kvm KVM: PPC: Emulate dcbf 2014-03-11 16:10:03 -07:00
lib powerpc: Restore registers on error exit from csum_partial_copy_generic() 2014-07-09 10:51:21 -07:00
math-emu
mm BACKPORT: FROMLIST: mm: ASLR: use get_random_long() 2017-12-27 22:50:17 +03:00
net
oprofile
perf powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH 2015-09-18 09:20:30 +08:00
platforms new helper: done_path_create() 2018-12-07 22:28:48 +04:00
sysdev powerpc/MSI: Fix race condition in tearing down MSI interrupts 2016-04-27 18:55:19 +08:00
xmon powerpc/xmon: Fix another endiannes issue in RTAS call from xmon 2015-04-14 17:33:55 +08:00
Kconfig powerpc: Work around gcc miscompilation of __pa() on 64-bit 2013-09-07 21:58:14 -07:00
Kconfig.debug
Makefile powerpc: Fix 64 bit builds with binutils 2.24 2014-06-16 13:45:45 -07:00
relocs_check.pl