diff options
author | Richard Sailer <richard_siegfried@systemli.org> | 2020-07-20 19:06:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-23 03:00:37 +0300 |
commit | 749c08f8206cdf5cad15d557912898ce22aa55da (patch) | |
tree | 486c1cab8a10de9925fdb2d739ebb54c3f476646 /Documentation/networking | |
parent | 09a0d326b977dbcae393d702a4dadd09fcbd06c7 (diff) | |
download | linux-749c08f8206cdf5cad15d557912898ce22aa55da.tar.xz |
net: dccp: Add SIOCOUTQ IOCTL support (send buffer fill)
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 always 0, even in test on highly congested paths.
Therefore this uses sk_wmem_alloc like in UDP.
Signed-off-by: Richard Sailer <richard_siegfried@systemli.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r-- | Documentation/networking/dccp.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/networking/dccp.rst b/Documentation/networking/dccp.rst index dde16be04456..91e5c33ba3ff 100644 --- a/Documentation/networking/dccp.rst +++ b/Documentation/networking/dccp.rst @@ -192,6 +192,9 @@ FIONREAD Works as in udp(7): returns in the ``int`` argument pointer the size of the next pending datagram in bytes, or 0 when no datagram is pending. +SIOCOUTQ + Returns the number of unsent data bytes in the socket send queue as ``int`` + into the buffer specified by the argument pointer. Other tunables ============== |