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

Signed-off-by: Nir Anteby <[email protected]>
Reviewed-by: Maxime Coquelin <[email protected]>
---
 lib/netdev-dpdk.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index ca92c94..e0f7dd0 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -5215,10 +5215,11 @@ netdev_dpdk_flow_api_supported(struct netdev *netdev)
     struct netdev_dpdk *dev;
     bool ret = false;
 
-    if (!strcmp(netdev_get_type(netdev), "vxlan") &&
+    if ((!strcmp(netdev_get_type(netdev), "vxlan") ||
+         !strcmp(netdev_get_type(netdev), "gre")) &&
         !strcmp(netdev_get_dpif_type(netdev), "netdev")) {
-            ret = true;
-            goto out;
+        ret = true;
+        goto out;
     }
 
     if (!is_dpdk_class(netdev->netdev_class)) {
-- 
1.8.3.1

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

Reply via email to