android_kernel_xiaomi_sm8350/arch
Arnaldo Carvalho de Melo a2e2725541 net: Introduce recvmmsg socket syscall
Meaning receive multiple messages, reducing the number of syscalls and
net stack entry/exit operations.

Next patches will introduce mechanisms where protocols that want to
optimize this operation will provide an unlocked_recvmsg operation.

This takes into account comments made by:

. Paul Moore: sock_recvmsg is called only for the first datagram,
  sock_recvmsg_nosec is used for the rest.

. Caitlin Bestler: recvmmsg now has a struct timespec timeout, that
  works in the same fashion as the ppoll one.

  If the underlying protocol returns a datagram with MSG_OOB set, this
  will make recvmmsg return right away with as many datagrams (+ the OOB
  one) it has received so far.

. Rémi Denis-Courmont & Steven Whitehouse: If we receive N < vlen
  datagrams and then recvmsg returns an error, recvmmsg will return
  the successfully received datagrams, store the error and return it
  in the next call.

This paves the way for a subsequent optimization, sk_prot->unlocked_recvmsg,
where we will be able to acquire the lock only at batch start and end, not at
every underlying recvmsg call.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-10-12 23:40:10 -07:00
..
alpha net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
arm net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
avr32 net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
blackfin net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
cris net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
frv net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
h8300 net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
ia64 net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
m32r net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
m68k net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
m68knommu headers: utsname.h redux 2009-09-23 18:13:10 -07:00
microblaze net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
mips net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
mn10300 net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
parisc net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
powerpc net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
s390 net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
score Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next 2009-09-23 15:37:02 -07:00
sh net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
sparc net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
um um: Clean up linker script using standard macros. 2009-09-24 17:16:22 -07:00
x86 net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
xtensa net: Introduce recvmmsg socket syscall 2009-10-12 23:40:10 -07:00
.gitignore
Kconfig oprofile: fix oprofile regression: select RING_BUFFER_ALLOW_SWAP 2009-09-17 15:53:42 -04:00