| 5e0099dc | 07-Feb-2022 |
Christophe Fontaine <[email protected]> |
vhost: remove payload size limitation
FDs at the end of the VhostUserMessage structure limits the size of the payload. Move them to an other englobing structure, before the header & payload of a Vho
vhost: remove payload size limitation
FDs at the end of the VhostUserMessage structure limits the size of the payload. Move them to an other englobing structure, before the header & payload of a VhostUserMessage. Also removes a reference to fds in the VHUMsg structure defined in drivers/net/virtio/virtio_user/vhost_user.c
Signed-off-by: Christophe Fontaine <[email protected]> Reviewed-by: Maxime Coquelin <[email protected]> Reviewed-by: David Marchand <[email protected]>
show more ...
|
| 6abf10a2 | 08-Jan-2022 |
Yunjian Wang <[email protected]> |
net/virtio-user: check FD flags getting failure
The function fcntl() could return errors, the return value need to be checked.
Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer")
net/virtio-user: check FD flags getting failure
The function fcntl() could return errors, the return value need to be checked.
Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer") Cc: [email protected]
Signed-off-by: Yunjian Wang <[email protected]> Reviewed-by: Chenbo Xia <[email protected]>
show more ...
|
| edca47a1 | 23-Dec-2021 |
Harold Huang <[email protected]> |
net/virtio-user: fix resource leak on probing failure
When eth_virtio_dev_init is failed, the registered virtio user memory event cb is not released and the backend created tap device is not destroy
net/virtio-user: fix resource leak on probing failure
When eth_virtio_dev_init is failed, the registered virtio user memory event cb is not released and the backend created tap device is not destroyed. It would cause some residual tap device existed in the host and creating a new vdev could be failed because the new virtio_user_dev could use the same address pointer and register memory event cb to the same address is not allowed.
Fixes: ca8326a94365 ("net/virtio_user: fix error management during init") Cc: [email protected]
Signed-off-by: Harold Huang <[email protected]> Reviewed-by: Chenbo Xia <[email protected]>
show more ...
|
| 64ac7e08 | 25-Oct-2021 |
Miao Li <[email protected]> |
net/virtio: support power monitor
According to current semantics of power monitor, this commit adds a callback function to decide whether aborts the sleep by checking current value against the expec
net/virtio: support power monitor
According to current semantics of power monitor, this commit adds a callback function to decide whether aborts the sleep by checking current value against the expected value and virtio_get_monitor_addr to provide address to monitor. When no packet come in, the value of address will not be changed and the running core will sleep. Once packets arrive, the value of address will be changed and the running core will wakeup.
Signed-off-by: Miao Li <[email protected]> Reviewed-by: Chenbo Xia <[email protected]> Acked-by: David Hunt <[email protected]>
show more ...
|
| ad6f0194 | 21-Oct-2021 |
Xuan Ding <[email protected]> |
net/virtio: fix avail descriptor ID
Vhost will update desc’s Buffer ID advance to next used descriptor when VIRTIO_F_IN_ORDER feature negotiated. When virtio reuses the descriptor, the Buffer ID sho
net/virtio: fix avail descriptor ID
Vhost will update desc’s Buffer ID advance to next used descriptor when VIRTIO_F_IN_ORDER feature negotiated. When virtio reuses the descriptor, the Buffer ID should be restored even VIRTQ_DESC_F_INDIRECT feature negotiated.
Fixes: b473061b0e1d ("net/virtio: fix indirect descriptors in packed datapaths") Cc: [email protected]
Signed-off-by: Xuan Ding <[email protected]> Signed-off-by: Yong Liu <[email protected]> Signed-off-by: Miao Li <[email protected]> Reviewed-by: Maxime Coquelin <[email protected]>
show more ...
|
| 6474b594 | 16-Sep-2021 |
Ivan Malov <[email protected]> |
net/virtio: fix Tx checksum for tunnel packets
Tx prepare method calls rte_net_intel_cksum_prepare(), which handles tunnel packets correctly, but Tx burst path does not take tunnel presence into acc
net/virtio: fix Tx checksum for tunnel packets
Tx prepare method calls rte_net_intel_cksum_prepare(), which handles tunnel packets correctly, but Tx burst path does not take tunnel presence into account when computing the offsets.
Fixes: 58169a9c8153 ("net/virtio: support Tx checksum offload") Cc: [email protected]
Signed-off-by: Ivan Malov <[email protected]> Reviewed-by: Andrew Rybchenko <[email protected]> Reviewed-by: Chenbo Xia <[email protected]> Reviewed-by: Olivier Matz <[email protected]>
show more ...
|
| 99ebada2 | 26-Sep-2021 |
Marvin Liu <[email protected]> |
net/virtio: fix oversized packets in vectorized Rx
If packed ring size is not power of two, it is possible that remained number less than one batch and meanwhile batch operation can pass. This will
net/virtio: fix oversized packets in vectorized Rx
If packed ring size is not power of two, it is possible that remained number less than one batch and meanwhile batch operation can pass. This will cause incorrect remained number calculation and then lead to receiving oversized packets. The patch fixed the issue by added remained number check before batch operation.
Fixes: 77d66da83834 ("net/virtio: add vectorized packed ring Rx") Cc: [email protected]
Signed-off-by: Marvin Liu <[email protected]> Reviewed-by: Maxime Coquelin <[email protected]>
show more ...
|