[PATCH 1/2] net/virtio: propagate return value of called function

2023-03-22 Thread Boleslav Stankevich
rte_intr_vec_list_alloc() may fail because of different reasons which are indicated by different negative errno values. Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle") Cc: sta...@dpdk.org Signed-off-by: Boleslav Stankevich Signed-off-by: Andrew Rybchenko --

[PATCH 2/2] net/virtio: fix device init to return negative errno

2023-03-22 Thread Boleslav Stankevich
ort RSS") Fixes: 6ba1f63b5ab0 ("virtio: support specification 1.0") Fixes: 49d26d9e3f47 ("net/virtio: support MTU feature") Cc: sta...@dpdk.org Signed-off-by: Boleslav Stankevich Signed-off-by: Andrew Rybchenko --- drivers/net/virtio/virtio_ethdev.c | 33 +

[PATCH v2] net/virtio: deduce IP length for Virtio TSO checksum

2023-03-03 Thread Boleslav Stankevich
The length of TSO payload could not fit into 16 bits provided by the IPv4 total length and IPv6 payload length fields. Thus, deduce it from the length of the packet. Fixes: 696573046e9 ("net/virtio: support TSO") Cc: sta...@dpdk.org Signed-off-by: Boleslav Stankevich Reviewed-

Re: [PATCH] net/virtio: deduce IP length for Virtio TSO checksum

2023-03-03 Thread Boleslav Stankevich
Hi, Maxime! Yes, it is a fix and will add missing tags in v2. Thanks, Boleslav On 02/03/2023 13:25, Maxime Coquelin wrote: Hi Boleslav, On 2/16/23 13:35, Boleslav Stankevich wrote: The length of TSO payload could not fit into 16 bits provided by the IPv4 total length and IPv6 payload length

[PATCH] net/virtio: deduce IP length for Virtio TSO checksum

2023-02-16 Thread Boleslav Stankevich
The length of TSO payload could not fit into 16 bits provided by the IPv4 total length and IPv6 payload length fields. Thus, deduce it from the length of the packet. Signed-off-by: Boleslav Stankevich Reviewed-by: Andrew Rybchenko --- drivers/net/virtio/virtio_rxtx.c | 25

[PATCH] net/virtio: deduce IP length for Virtio TSO checksum

2023-02-16 Thread Boleslav Stankevich
The length of TSO payload could not fit into 16 bits provided by the IPv4 total length and IPv6 payload length fields. Thus, deduce it from the length of the packet. Signed-off-by: Boleslav Stankevich Reviewed-by: Andrew Rybchenko --- drivers/net/virtio/virtio_rxtx.c | 25