mirror of
https://passt.top/passt
synced 2025-01-21 11:45:15 +00:00
vhost_user: remove ASSERT() on iovec number
Replace ASSERT() on the number of iovec in the element and on the first entry length by a debug() message. Signed-off-by: Laurent Vivier <lvivier@redhat.com> [sbrivio: Fix typo in failure message] Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
412ed4f09f
commit
c96a88d550
@ -195,8 +195,12 @@ static void vu_handle_tx(struct vu_dev *vdev, int index,
|
|||||||
hdrlen);
|
hdrlen);
|
||||||
} else {
|
} else {
|
||||||
/* vnet header can be in a separate iovec */
|
/* vnet header can be in a separate iovec */
|
||||||
ASSERT(elem[count].out_num == 2);
|
if (elem[count].out_num != 2)
|
||||||
ASSERT(elem[count].out_sg[0].iov_len == (size_t)hdrlen);
|
debug("virtio-net transmit queue contains more than one buffer ([%d]: %u)",
|
||||||
|
count, elem[count].out_num);
|
||||||
|
if (elem[count].out_sg[0].iov_len != (size_t)hdrlen)
|
||||||
|
debug("virtio-net transmit queue entry not aligned on hdrlen ([%d]: %d != %zu)",
|
||||||
|
count, hdrlen, elem[count].out_sg[0].iov_len);
|
||||||
tap_add_packet(vdev->context,
|
tap_add_packet(vdev->context,
|
||||||
elem[count].out_sg[1].iov_len,
|
elem[count].out_sg[1].iov_len,
|
||||||
(char *)elem[count].out_sg[1].iov_base);
|
(char *)elem[count].out_sg[1].iov_base);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user