]> git.baikalelectronics.ru Git - kernel.git/commit
net: dccp: Add SIOCOUTQ IOCTL support (send buffer fill)
authorRichard Sailer <richard_siegfried@systemli.org>
Mon, 20 Jul 2020 16:06:14 +0000 (18:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 00:00:37 +0000 (17:00 -0700)
commit8f769b439942670a8b4db4f64e2327ed69b36c84
tree486c1cab8a10de9925fdb2d739ebb54c3f476646
parent7c23122ee8c5c039775c7c18eb111a6e68241835
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>
Documentation/networking/dccp.rst
net/dccp/proto.c