Re: [RFC PATCH] sock: add SO_RCVQUEUE_SIZE getsockopt

2017-03-14 Thread Josh Hunt
On 03/13/2017 07:10 PM, David Miller wrote: From: Josh Hunt Date: Mon, 13 Mar 2017 18:34:41 -0500 In this particular case they really do want to know total # of bytes in the receive queue, not the data bytes they can consume from an application pov. The kernel currently

Re: [RFC PATCH] sock: add SO_RCVQUEUE_SIZE getsockopt

2017-03-13 Thread Eric Dumazet
On Mon, 2017-03-13 at 18:34 -0500, Josh Hunt wrote: > In this particular case they really do want to know total # of bytes in > the receive queue, not the data bytes they can consume from an > application pov. The kernel currently only exposes this value through > netlink or /proc/net/udp from

Re: [RFC PATCH] sock: add SO_RCVQUEUE_SIZE getsockopt

2017-03-13 Thread David Miller
From: Josh Hunt Date: Mon, 13 Mar 2017 18:34:41 -0500 > In this particular case they really do want to know total # of bytes > in the receive queue, not the data bytes they can consume from an > application pov. The kernel currently only exposes this value through > netlink or

Re: [RFC PATCH] sock: add SO_RCVQUEUE_SIZE getsockopt

2017-03-13 Thread Josh Hunt
On 03/13/2017 02:39 PM, David Miller wrote: From: Josh Hunt Date: Mon, 13 Mar 2017 12:38:39 -0500 On 03/13/2017 11:12 AM, Eric Dumazet wrote: On Mon, Mar 13, 2017 at 8:59 AM, Josh Hunt wrote: Allows application to read the amount of data sitting in the

Re: [RFC PATCH] sock: add SO_RCVQUEUE_SIZE getsockopt

2017-03-13 Thread David Miller
From: Josh Hunt Date: Mon, 13 Mar 2017 12:38:39 -0500 > On 03/13/2017 11:12 AM, Eric Dumazet wrote: >> On Mon, Mar 13, 2017 at 8:59 AM, Josh Hunt wrote: >>> Allows application to read the amount of data sitting in the receive >>> queue. >>> >>>

Re: [RFC PATCH] sock: add SO_RCVQUEUE_SIZE getsockopt

2017-03-13 Thread Josh Hunt
On 03/13/2017 11:12 AM, Eric Dumazet wrote: On Mon, Mar 13, 2017 at 8:59 AM, Josh Hunt wrote: Allows application to read the amount of data sitting in the receive queue. Signed-off-by: Josh Hunt --- A team here is looking for a way to get the amount of

Re: [RFC PATCH] sock: add SO_RCVQUEUE_SIZE getsockopt

2017-03-13 Thread Eric Dumazet
On Mon, Mar 13, 2017 at 8:59 AM, Josh Hunt wrote: > Allows application to read the amount of data sitting in the receive > queue. > > Signed-off-by: Josh Hunt > --- > > A team here is looking for a way to get the amount of data in a UDP socket's > receive

[RFC PATCH] sock: add SO_RCVQUEUE_SIZE getsockopt

2017-03-13 Thread Josh Hunt
Allows application to read the amount of data sitting in the receive queue. Signed-off-by: Josh Hunt --- A team here is looking for a way to get the amount of data in a UDP socket's receive queue. It seems like this should be SIOCINQ, but for UDP sockets that returns the size