Re: [PATCH net-next v4 1/4] ethtool: provide customized dim profile management

2024-04-08 Thread Jakub Kicinski
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_

Re: [PATCH net-next v4 1/4] ethtool: provide customized dim profile management

2024-04-08 Thread Jakub Kicinski
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

[PATCH net-next v2 3/3] test/vsock: add ioctl unsent bytes test

2024-04-08 Thread Luigi Leonardi
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

[PATCH net-next v2 2/3] vsock/virtio: add SIOCOUTQ support for all virtio based transports

2024-04-08 Thread Luigi Leonardi
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

[PATCH net-next v2 1/3] vsock: add support for SIOCOUTQ ioctl for all vsock socket types.

2024-04-08 Thread Luigi Leonardi
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

[PATCH net-next v2 0/3] This patch series introduce the support for ioctl(s) in AF_VSOCK.

2024-04-08 Thread Luigi Leonardi
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