-
- Downloads
virtio::net::txq: Fix the bug causing the false asserts
vec_sz in net::txq::try_xmit_one_locked(net_req*) should be initialized to 1 and not to 0 since there is always net_hdr element and vec_sz is incremented only for fragments not taking into an account the header element. This miscalculation caused vqueue->add_buf() return false while vqueue->avail_ring_has_room(vec_sz) was returning true when the amount of elements in the avail ring was equal to vec_sz since the actual size of the _sg_vec was "vec_sz + 1". Signed-off-by:Vlad Zolotarov <vladz@cloudius-systems.com> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
Loading
Please register or sign in to comment