android_kernel_google_msm/arch/s390/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
airq.h
appldata.h
asm-offsets.h
atomic.h Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
auxvec.h
barrier.h Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
bitops.h
bitsperlong.h
bug.h
bugs.h
byteorder.h
cache.h
cacheflush.h
ccwdev.h
ccwgroup.h
checksum.h
chpid.h UAPI: Alter the S390 asm include guards to be recognisable by the UAPI splitter 2011-12-13 09:26:45 +00:00
chsc.h
cio.h
cmb.h
cmpxchg.h
compat.h s390/signal: set correct address space control 2012-11-26 11:38:01 -08:00
cpcmd.h
cpu.h
cpu_mf.h [S390] Fix build errors (fallout from system.h disintegration) 2012-03-30 09:41:12 +02:00
cputime.h [S390] rework idle code 2012-03-11 11:59:28 -04:00
crw.h
ctl_reg.h Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
current.h
dasd.h
debug.h [S390] kernel: Add z/VM LGR detection 2012-03-11 11:59:29 -04:00
delay.h
device.h
diag.h
div64.h
dma.h
ebcdic.h
elf.h Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
emergency-restart.h
errno.h
etr.h
exec.h Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
extmem.h
facility.h [S390] Fix stfle() lowcore protection problem 2012-04-11 14:28:26 +02:00
fb.h
fcntl.h
fcx.h
ftrace.h
futex.h
hardirq.h [S390] irq: set __ARCH_IRQ_EXIT_IRQS_DISABLED 2012-03-11 11:59:28 -04:00
hugetlb.h
idals.h
io.h
ioctl.h
ioctls.h
ipcbuf.h
ipl.h [S390] kernel: Add z/VM LGR detection 2012-03-11 11:59:29 -04:00
irq.h [S390] oprofile: Allow multiple users of the measurement alert interrupt 2012-03-23 11:13:24 +01:00
irq_regs.h
irqflags.h
isc.h
itcw.h UAPI: Alter the S390 asm include guards to be recognisable by the UAPI splitter 2011-12-13 09:26:45 +00:00
jump_label.h compiler/gcc4: Add quirk for 'asm goto' miscompilation bug 2014-04-14 06:44:16 -07:00
kdebug.h [S390] cleanup trap handling 2011-12-27 11:27:12 +01:00
kexec.h kdump: define KEXEC_NOTE_BYTES arch specific for s390x 2012-01-23 08:38:48 -08:00
kmap_types.h
kprobes.h
kvm.h KVM: s390: provide control registers via kvm_run 2012-03-08 14:10:18 +02:00
kvm_host.h KVM: Introduce kvm_memory_slot::arch and move lpage_info into it 2012-03-08 14:10:22 +02:00
kvm_para.h
kvm_virtio.h
linkage.h
local.h
local64.h
lowcore.h s390/lowcore: reserve 96 bytes for IRB in lowcore 2014-06-30 20:01:31 -07:00
mathemu.h
mman.h UAPI: Split trivial #if defined(__KERNEL__) && X conditionals 2011-12-13 15:07:49 +00:00
mmu.h [S390] Fix build errors (fallout from system.h disintegration) 2012-03-30 09:41:12 +02:00
mmu_context.h s390/mm: downgrade page table after fork of a 31 bit process 2012-08-09 08:31:31 -07:00
module.h
monwriter.h
msgbuf.h
mutex.h
nmi.h
os_info.h [S390] kernel: Add OS info memory interface 2012-03-11 11:59:29 -04:00
page.h
param.h
pci.h
percpu.h percpu: Remove irqsafe_cpu_xxx variants 2011-12-22 10:40:20 -08:00
perf_event.h [S390] perf: add support for s390x CPU counters 2012-03-23 11:13:25 +01:00
pgalloc.h [S390] fix tlb flushing for page table pages 2012-04-11 14:28:24 +02:00
pgtable.h s390: move dummy io_remap_pfn_range() to asm/pgtable.h 2013-08-04 16:26:03 +08:00
poll.h
posix_types.h s390: Use generic posix_types.h 2012-02-14 12:01:29 -08:00
processor.h s390/mm: downgrade page table after fork of a 31 bit process 2012-08-09 08:31:31 -07:00
ptrace.h s390/signal: set correct address space control 2012-11-26 11:38:01 -08:00
qdio.h [S390] qdio: fix kernel panic for zfcp 31-bit 2011-12-27 11:27:14 +01:00
qeth.h qeth: add query OSA address table support 2012-02-08 18:50:20 -05:00
reset.h
resource.h
rwsem.h
scatterlist.h
schid.h
sclp.h
scsw.h
seccomp.h
sections.h
segment.h
sembuf.h
setup.h Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
sfp-machine.h
sfp-util.h
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 smp: Add task_struct argument to __cpu_up() 2016-10-29 23:12:38 +08:00
socket.h net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
sockios.h
sparsemem.h [S390] add support for physical memory > 4TB 2011-12-27 11:27:10 +01:00
spinlock.h
spinlock_types.h
stat.h
statfs.h
string.h
swab.h [S390] Fix compile error in swab.h 2012-04-11 14:28:26 +02:00
switch_to.h Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
syscall.h [S390] cleanup trap handling 2011-12-27 11:27:12 +01:00
sysinfo.h
tape390.h
termbits.h
termios.h
thread_info.h freezer: remove now unused TIF_FREEZE 2011-11-21 12:32:25 -08:00
timer.h [S390] rework idle code 2012-03-11 11:59:28 -04:00
timex.h s390/time: fix sched_clock() overflow 2013-01-21 11:45:15 -08:00
tlb.h [S390] fix tlb flushing for page table pages 2012-04-11 14:28:24 +02:00
tlbflush.h s390/mm: fix flush_tlb_kernel_range() 2013-03-20 13:05:00 -07:00
topology.h [S390] topology: increase poll frequency if change is anticipated 2011-12-27 11:27:12 +01:00
types.h consolidate umode_t declarations 2012-01-03 22:55:17 -05:00
uaccess.h Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
ucontext.h
unaligned.h
unistd.h [S390] ipc: call generic sys_ipc demultiplexer 2011-12-27 11:27:13 +01:00
user.h
vdso.h [S390] rework smp code 2012-03-11 11:59:28 -04:00
vtoc.h
xor.h
zcrypt.h