Skip to contentSkip to conversation

net/virtio-user: add VIRTIO_F_ORDER_PLATFORM to feature list

PATCH Applied Nithin Dabilpuram 3 participants 4 messages Feb 20, 2024 – Jun 12, 2024 Network drivers

lore
Share & tools
lore
#0 lore raw

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
index d395fc1676..6ece3c6621 100644
@@ -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
#1 lore raw

Ping.

Thanks
Nithin

Quoted 28 lines · Nithin Dabilpuram

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 -1
index d395fc1676..6ece3c6621 100644
@@ -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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Nithin Dabilpuram
Quoted 17 lines · Nithin Dabilpuram

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 +0 -0
index d395fc1676..6ece3c6621 100644

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

#3 lore raw
In reply to Nithin Dabilpuram
Quoted 17 lines · Nithin Dabilpuram

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 +0 -0
index d395fc1676..6ece3c6621 100644

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