]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: add option to enable error queue packets waking select
authorKeller, Jacob E <jacob.e.keller@intel.com>
Thu, 28 Mar 2013 11:19:25 +0000 (11:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 Mar 2013 23:44:20 +0000 (19:44 -0400)
commit7d4c04fc170087119727119074e72445f2bb192b
treed76759bfe44399949f70cc344f3be76b8448cac2
parent4eb06148250f92e1e58bf069c309dac173e8b5f7
net: add option to enable error queue packets waking select

Currently, when a socket receives something on the error queue it only wakes up
the socket on select if it is in the "read" list, that is the socket has
something to read. It is useful also to wake the socket if it is in the error
list, which would enable software to wait on error queue packets without waking
up for regular data on the socket. The main use case is for receiving
timestamped transmit packets which return the timestamp to the socket via the
error queue. This enables an application to select on the socket for the error
queue only instead of for the regular traffic.

-v2-
* Added the SO_SELECT_ERR_QUEUE socket option to every architechture specific file
* Modified every socket poll function that checks error queue

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Cc: Jeffrey Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Matthew Vick <matthew.vick@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
23 files changed:
arch/alpha/include/uapi/asm/socket.h
arch/avr32/include/uapi/asm/socket.h
arch/cris/include/uapi/asm/socket.h
arch/frv/include/uapi/asm/socket.h
arch/h8300/include/uapi/asm/socket.h
arch/ia64/include/uapi/asm/socket.h
arch/m32r/include/uapi/asm/socket.h
arch/mips/include/uapi/asm/socket.h
arch/mn10300/include/uapi/asm/socket.h
arch/parisc/include/uapi/asm/socket.h
arch/powerpc/include/uapi/asm/socket.h
arch/s390/include/uapi/asm/socket.h
arch/sparc/include/uapi/asm/socket.h
arch/xtensa/include/uapi/asm/socket.h
include/net/sock.h
include/uapi/asm-generic/socket.h
net/bluetooth/af_bluetooth.c
net/core/datagram.c
net/core/sock.c
net/iucv/af_iucv.c
net/nfc/llcp/sock.c
net/sctp/socket.c
net/unix/af_unix.c