Re: [PATCH net-next v3 3/3] virtio-net: support dim profile fine-tuning

2024-04-02 Thread kernel test robot
Hi Heng, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Heng-Qi/ethtool-provide-customized-dim-profile-management/20240402-201527 base: net-next/main patch link: https

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

2024-04-02 Thread kernel test robot
Hi Heng, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Heng-Qi/ethtool-provide-customized-dim-profile-management/20240402-201527 base: net-next/main patch link: https

[PATCH net-next 0/3] ioctl support for AF_VSOCK and virtio-based transports

2024-04-02 Thread Luigi Leonardi
This patch series introduce the support for ioctl(s) in AF_VSOCK. The only ioctl currently available is SIOCOUTQ, which returns 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 callba

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

2024-04-02 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 | 83 3 files changed, 89 insert

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

2024-04-02 Thread Luigi Leonardi
This patch introduce support for stream_bytes_unsent in all virtio based transports: 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 time th

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

2024-04-02 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

Re: [PATCH net-next v3 2/3] virtio-net: refactor dim initialization/destruction

2024-04-02 Thread Ratheesh Kannoth
On 2024-04-02 at 17:43:07, Heng Qi (hen...@linux.alibaba.com) wrote: > Extract the initialization and destruction actions > of dim for use in the next patch. > > Signed-off-by: Heng Qi > --- > drivers/net/virtio_net.c | 37 ++--- > 1 file changed, 26 insertions(+),

[PATCH net-next v3 0/3] ethtool: provide the dim profile fine-tuning channel

2024-04-02 Thread Heng Qi
The NetDIM library provides excellent acceleration for many modern network cards. However, the default profiles of DIM limits its maximum capabilities for different NICs, so providing a way which the NIC can be custom configured is necessary. Currently, interaction with the driver is still based o

[PATCH net-next v3 3/3] virtio-net: support dim profile fine-tuning

2024-04-02 Thread Heng Qi
Virtio-net has different types of back-end device implementations. In order to effectively optimize the dim library's gains for different device implementations, let's use the new interface params to fine-tune the profile list. Signed-off-by: Heng Qi --- drivers/net/virtio_net.c | 42 +

[PATCH net-next v3 1/3] ethtool: provide customized dim profile management

2024-04-02 Thread Heng Qi
The NetDIM library, currently leveraged by an array of NICs, delivers excellent acceleration benefits. Nevertheless, NICs vary significantly in their dim profile list prerequisites. Specifically, virtio-net backends may present diverse sw or hw device implementation, making a one-size-fits-all par

[PATCH net-next v3 2/3] virtio-net: refactor dim initialization/destruction

2024-04-02 Thread Heng Qi
Extract the initialization and destruction actions of dim for use in the next patch. Signed-off-by: Heng Qi --- drivers/net/virtio_net.c | 37 ++--- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c