From: Ophir Munk <[email protected]>

Add the acceptance of vxlan devices to netdev_dpdk_flow_api_supported()
API, to allow offloading of DPDK vxlan devices.

Co-authored-by: Eveline Raine <[email protected]>
Co-authored-by: Eli Britstein <[email protected]>
Signed-off-by: Eveline Raine <[email protected]>
Signed-off-by: Ophir Munk <[email protected]>
Reviewed-by: Roni Bar Yanai <[email protected]>
Signed-off-by: Eli Britstein <[email protected]>
---
 lib/netdev-dpdk.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index f2e737e30..45b665f45 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -5363,6 +5363,12 @@ netdev_dpdk_flow_api_supported(struct netdev *netdev)
     struct netdev_dpdk *dev;
     bool ret = false;
 
+    if (!strcmp(netdev_get_type(netdev), "vxlan") &&
+        !strcmp(netdev_get_dpif_type(netdev), "netdev")) {
+            ret = true;
+            goto out;
+    }
+
     if (!is_dpdk_class(netdev->netdev_class)) {
         goto out;
     }
-- 
2.14.5

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to