net/virtio-user: add VIRTIO_F_ORDER_PLATFORM to feature list
PATCH 1/1 net/virtio-user: add VIRTIO_F_ORDER_PLATFORM to feature list
VIRTIO_F_ORDER_PLATFORM is needed feature when working with real HW platforms that are exposing virtio-net devices via VDPA framework. This feature helps in having more real ordering requirements between descriptor updates and notification data updates. Hence enable it if the device supports the feature.
--- drivers/net/virtio/virtio_user/virtio_user_dev.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/virtio/virtio_user/virtio_user_dev.c +1 -0
@@ -701,6 +701,7 @@ virtio_user_free_vrings(struct virtio_user_dev *dev)1ULL <<VIRTIO_F_VERSION_1 | \1ULL <<VIRTIO_F_RING_PACKED | \1ULL <<VIRTIO_F_NOTIFICATION_DATA | \ +1ULL <<VIRTIO_F_ORDER_PLATFORM | \ 1ULL << VIRTIO_NET_F_RSS) int
Signature · 1 line
2.25.1
Ping.
Thanks
Nithin
Quoted 28 lines · Nithin Dabilpuram
VIRTIO_F_ORDER_PLATFORMis needed feature when working with real HW platforms that are exposing virtio-net devices via VDPA framework. This feature helps in having more real ordering requirements between descriptor updates and notification data updates. Hence enable it if the device supports the feature.Signed-off-by Nithin Dabilpuram <[email protected]>--- drivers/net/virtio/virtio_user/virtio_user_dev.c | 1 + 1 file changed, 1 insertion(+)drivers/net/virtio/virtio_user/virtio_user_dev.c +1
-1@@ -701,6 +701,7 @@ virtio_user_free_vrings(struct virtio_user_dev *dev)1ULL <<VIRTIO_F_VERSION_1 | \1ULL <<VIRTIO_F_RING_PACKED | \1ULL <<VIRTIO_F_NOTIFICATION_DATA | \ +1ULL <<VIRTIO_F_ORDER_PLATFORM | \ 1ULL << VIRTIO_NET_F_RSS) int --2.25.1
Quoted 17 lines · Nithin Dabilpuram
VIRTIO_F_ORDER_PLATFORMis needed feature when working with real HW platforms that are exposing virtio-net devices via VDPA framework. This feature helps in having more real ordering requirements between descriptor updates and notification data updates. Hence enable it if the device supports the feature.Signed-off-by Nithin Dabilpuram <[email protected]>--- drivers/net/virtio/virtio_user/virtio_user_dev.c | 1 + 1 file changed, 1 insertion(+)drivers/net/virtio/virtio_user/virtio_user_dev.c +0
-0
drivers/net/virtio/virtio_user/virtio_user_dev.c virtio_user_free_vrings(struct virtio_user_dev *dev) · line 707
Quoted 7 lines
drivers/net/virtio/virtio_user/virtio_user_dev.c +1
-0@@ -701,6 +701,7 @@ virtio_user_free_vrings(struct virtio_user_dev *dev)1ULL <<VIRTIO_F_VERSION_1 | \1ULL <<VIRTIO_F_RING_PACKED | \1ULL <<VIRTIO_F_NOTIFICATION_DATA | \ +1ULL <<VIRTIO_F_ORDER_PLATFORM | \ 1ULL << VIRTIO_NET_F_RSS) int
Thanks,
Maxime
Maxime Coquelin
AppliedQuoted 17 lines · Nithin Dabilpuram
VIRTIO_F_ORDER_PLATFORMis needed feature when working with real HW platforms that are exposing virtio-net devices via VDPA framework. This feature helps in having more real ordering requirements between descriptor updates and notification data updates. Hence enable it if the device supports the feature.Signed-off-by Nithin Dabilpuram <[email protected]>--- drivers/net/virtio/virtio_user/virtio_user_dev.c | 1 + 1 file changed, 1 insertion(+)drivers/net/virtio/virtio_user/virtio_user_dev.c +0
-0
drivers/net/virtio/virtio_user/virtio_user_dev.c virtio_user_free_vrings(struct virtio_user_dev *dev) · line 707
Quoted 7 lines
drivers/net/virtio/virtio_user/virtio_user_dev.c +1
-0@@ -701,6 +701,7 @@ virtio_user_free_vrings(struct virtio_user_dev *dev)1ULL <<VIRTIO_F_VERSION_1 | \1ULL <<VIRTIO_F_RING_PACKED | \1ULL <<VIRTIO_F_NOTIFICATION_DATA | \ +1ULL <<VIRTIO_F_ORDER_PLATFORM | \ 1ULL << VIRTIO_NET_F_RSS) int
Applied to next-virtio/for-next-net.
Thanks,
Maxime