android_kernel_google_msm/arch/xtensa/include/asm
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
..
Kbuild
asm-offsets.h
asmmacro.h
atomic.h Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
auxvec.h
barrier.h Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
bitops.h Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
bitsperlong.h
bootparam.h
bug.h
bugs.h
byteorder.h
cache.h dma-mapping: rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN 2010-08-11 08:59:21 -07:00
cacheasm.h
cacheflush.h
checksum.h
cmpxchg.h Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
coprocessor.h
cpumask.h
cputime.h
current.h
delay.h
device.h
div64.h
dma-mapping.h dma-mapping: remove dma_is_consistent API 2010-08-11 08:59:21 -07:00
dma.h Fix common misspellings 2011-03-31 11:26:23 -03:00
elf.h
emergency-restart.h
errno.h
exec.h Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
fb.h
fcntl.h
flat.h
ftrace.h
futex.h
gpio.h
hardirq.h xtensa: fix build fail on undefined ack_bad_irq 2012-04-26 18:35:32 -04:00
highmem.h
hw_irq.h
io.h xtensa: fix build error in xtensa/include/asm/io.h 2012-04-23 12:30:03 -04:00
ioctl.h
ioctls.h xtensa: replace IOCTL code definitions with constants 2014-09-25 11:49:12 +08:00
ipcbuf.h
irq.h
irq_regs.h
irqflags.h Fix IRQ flag handling naming 2010-10-07 14:08:55 +01:00
kdebug.h
kmap_types.h
linkage.h
local.h
local64.h
mman.h coredump: add VM_NODUMP, MADV_NODUMP, MADV_CLEAR_NODUMP 2012-03-23 16:58:42 -07:00
mmu.h
mmu_context.h
module.h
msgbuf.h
mutex.h
nommu.h
nommu_context.h
page.h xtensa/mm: remove WANT_PAGE_VIRTUAL 2011-05-25 08:39:02 -07:00
param.h
pci-bridge.h
pci.h PCI: Xtensa: convert pcibios_set_master() to a non-inlined function 2012-01-06 12:10:41 -08:00
percpu.h
pgalloc.h
pgtable.h xtensa: fix TLBTEMP_BASE_2 region handling in fast_second_level_miss 2014-09-25 11:49:12 +08:00
platform.h
poll.h
posix_types.h xtensa: Use generic posix_types.h 2012-02-14 12:01:30 -08:00
processor.h
ptrace.h ptrace: unify show_regs() prototype 2011-07-26 16:49:43 -07:00
regs.h
resource.h
rmap.h
rwsem.h rwsem: Move duplicate function prototypes to linux/rwsem.h 2011-01-27 12:30:39 +01:00
scatterlist.h remove needless ISA_DMA_THRESHOLD 2010-08-07 18:15:50 +02:00
sections.h
segment.h
sembuf.h
serial.h
setup.h Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h signal: Define __ARCH_HAS_SA_RESTORER so we know whether to clear sa_restorer 2013-04-05 10:04:14 -07:00
smp.h
socket.h net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
sockios.h
spinlock.h
stat.h
statfs.h
string.h xtensa: fix memscan() 2012-02-03 16:16:40 -08:00
swab.h
switch_to.h Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
syscall.h
termbits.h tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
termios.h
thread_info.h freezer: remove now unused TIF_FREEZE 2011-11-21 12:32:25 -08:00
timex.h
tlb.h
tlbflush.h
topology.h
types.h consolidate umode_t declarations 2012-01-03 22:55:17 -05:00
uaccess.h Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
ucontext.h
unaligned.h
unistd.h xtensa: re-wire umount syscall to sys_oldumount 2015-02-02 17:05:16 +08:00
user.h
vga.h
xor.h