android_kernel_google_msm/arch/mips
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
..
alchemy
ar7
ath79 MIPS: ath79: Fix ar933x watchdog clock 2013-09-26 17:15:50 -07:00
bcm47xx
bcm63xx
boot MIPS: ZBOOT: add missing <linux/string.h> include 2014-12-01 18:02:32 +08:00
cavium-octeon MIPS: OCTEON: make get_system_type() thread-safe 2014-09-25 11:49:10 +08:00
cobalt
configs netfilter: remove xt_NOTRACK 2018-12-07 22:04:24 +04:00
dec
emma
fw
include/asm net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
jazz
jz4740
kernel vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
lantiq
lasat
lib
loongson MIPS: Loongson: Make platform serial setup always built-in. 2015-04-14 17:33:38 +08:00
math-emu
mipssim
mm BACKPORT: FROMLIST: mm: ASLR: use get_random_long() 2017-12-27 22:50:17 +03:00
mti-malta
netlogic
oprofile MIPS: oprofile: Fix backtrace on 64-bit kernel 2015-02-02 17:05:22 +08:00
pci
pmc-sierra
pnx833x
pnx8550
power MIPS: Hibernate: flush TLB entries earlier 2015-09-18 09:20:28 +08:00
powertv
rb532
sgi-ip22
sgi-ip27
sgi-ip32
sibyte
sni
txx9
vr41xx
wrppmc
Kbuild
Kbuild.platforms
Kconfig MIPS: Expose missing pci_io{map,unmap} declarations 2013-08-20 08:26:27 -07:00
Kconfig.debug
Makefile kbuild: Fix gcc -x syntax 2012-10-13 05:38:37 +09:00