On Mon, 8 Apr 2024 11:44:27 +0800 Heng Qi wrote:
> + nla_for_each_nested(nest, nests, rem) {
> + if (WARN_ONCE(nla_type(nest) !=
> ETHTOOL_A_MODERATIONS_MODERATION,
> + "unexpected nest attrtype %u\n", nla_type(nest)))
Maybe just use the newly added nla_
On Mon, 8 Apr 2024 11:44:27 +0800 Heng Qi wrote:
> --- a/Documentation/netlink/specs/ethtool.yaml
> +++ b/Documentation/netlink/specs/ethtool.yaml
> @@ -408,6 +408,18 @@ attribute-sets:
>-
> name: combined-count
> type: u32
> + -
> + name: profile
> + attributes
This test that after a packet is delivered the number
of unsent bytes is zero.
Signed-off-by: Luigi Leonardi
---
tools/testing/vsock/util.c | 6 +--
tools/testing/vsock/util.h | 3 ++
tools/testing/vsock/vsock_test.c | 85
3 files changed, 91 insert
This patch introduce support for stream_bytes_unsent and
seqpacket_bytes_unsent ioctl for virtio_transport, vhost_vsock
and vsock_loopback.
For all transports the unsent bytes counter is incremented
in virtio_transport_send_pkt_info.
In the virtio_transport (G2H) the counter is decremented each t
This add support for ioctl(s) for SOCK_STREAM SOCK_SEQPACKET and SOCK_DGRAM
in AF_VSOCK.
The only ioctl available is SIOCOUTQ/TIOCOUTQ, which returns the number
of unsent bytes in the socket. This information is transport-specific
and is delegated to them using a callback.
Suggested-by: Daan De Me
the number of unsent or unacked packets. It is available for
SOCK_STREAM, SOCK_SEQPACKET and SOCK_DGRAM.
As this information is transport-dependent, a new optional callback
is introduced: stream_bytes_unsent.
The first patch add ioctl support in AF_VSOCK, while the second
patch introduce support