On 21-Jun-25 00:52, Akihiko Odaki wrote:
On 2025/06/16 22:36, Konstantin Shkolnyy wrote:
After commit 0caed25cd171 vhost_vdpa_net_load_vlan() started seeing
VIRTIO_NET_F_CTRL_VLAN flag and making 4096 calls to the kernel with
VIRTIO_NET_CTRL_VLAN_ADD command. However, it forgot to convert the
16-bit VLAN IDs to LE format. On BE machine, the kernel calls failed
when they saw "VLAN IDs" greater than 4095, and QEMU then said:
"unable to start vhost net: 5: falling back on userspace virtio", and
VDPA became disabled.

Convert the VLAN ID to LE before putting it into virtio queue.

Fixes: 8f7e9967484d ("vdpa: Restore vlan filtering state")
Signed-off-by: Konstantin Shkolnyy <[email protected]>
Acked-by: Jason Wang <[email protected]>
Acked-by: Eugenio PĂ©rez <[email protected]>

Reviewed-by: Akihiko Odaki <[email protected]>

Was this patch missed or there was another reason it wasn't applied?


Reply via email to