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

2020-06-01 Thread David Miller
From: Richard Sailer Date: Sat, 30 May 2020 18:31:59 +0200 > @@ -375,6 +375,14 @@ int dccp_ioctl(struct sock *sk, int cmd, unsigned long > arg) > goto out; > > switch (cmd) { > + case SIOCOUTQ: { > + /* Using sk_wmem_alloc here because sk_wmem_queued is not

[PATCH v2] net: dccp: Add SIOCOUTQ IOCTL support (send buffer fill)

2020-05-30 Thread Richard Sailer
From: Richard Sailer This adds support for the SIOCOUTQ IOCTL to call send buffer fill from the DCCP socket, like UDP and TCP 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 use