Re: [PATCH net-next v5] net: dccp: Add SIOCOUTQ IOCTL support (send buffer fill)

2020-07-23 Thread Richard Sailer
> > Applied, but I wonder if you'll also need something like tcp's SIOCOUTQNSD? > A good question. SIOCOUTQNSD is not mentioned in man 7 tcp and I didn't know and consider it. Now that I looked it up (bytes of unsent packets in send buffer) maybe this patch's ioctl should be renamed SIOCOUTQNSD,

Re: [PATCH net-next v5] net: dccp: Add SIOCOUTQ IOCTL support (send buffer fill)

2020-07-22 Thread David Miller
From: Richard Sailer Date: Mon, 20 Jul 2020 18:06:14 +0200 > This adds support for the SIOCOUTQ IOCTL to get the send buffer fill > of a DCCP socket, like UDP and TCP sockets already have. > > Regarding the used data field: DCCP uses per packet sequence numbers, > not per byte, so sequence numbe

[PATCH net-next v5] net: dccp: Add SIOCOUTQ IOCTL support (send buffer fill)

2020-07-20 Thread Richard Sailer
This adds support for the SIOCOUTQ IOCTL to get the send buffer fill of a DCCP socket, like UDP and TCP sockets already have. Regarding the used data field: DCCP uses per packet sequence numbers, not per byte, so sequence numbers can't be used like in TCP. sk_wmem_queued is not used by DCCP and al