mbox series

[net,v4,0/2] virtio-net: unbreak vq resizing if vq coalescing is not supported

Message ID 20240801132338.107025-1-hengqi@linux.alibaba.com (mailing list archive)
Headers show
Series virtio-net: unbreak vq resizing if vq coalescing is not supported | expand

Message

Heng Qi Aug. 1, 2024, 1:23 p.m. UTC
Currently, if the driver does not negotiate the vq coalescing feature
but supports vq resize, the vq resize action, which could have been
successfully executed, is interrupted due to the failure in configuring
the vq coalescing parameters. This issue needs to be fixed.

Changelog
=========
v3->v4:
  - Add a comment for patch[2/2].

v2->v3:
  - Break out the feature check and the fix into separate patches.

v1->v2:
  - Rephrase the subject.
  - Put the feature check inside the virtnet_send_{r,t}x_ctrl_coal_vq_cmd.

Heng Qi (2):
  virtio-net: check feature before configuring the vq coalescing command
  virtio-net: unbreak vq resizing when coalescing is not negotiated

 drivers/net/virtio_net.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)