From: Chaoyong He <chaoyong...@corigine.com>

Add the acceptance of geneve devices to
netdev_dpdk_flow_api() API, to allow offloading of
DPDK geneve devices.

Signed-off-by: Chaoyong He <chaoyong...@corigine.com>
Reviewed-by: Louis Peens <louis.pe...@corigine.com>
Signed-off-by: Simon Horman <simon.hor...@corigine.com>
---
 lib/netdev-dpdk.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 0dd655507b50..8ee51df98fc4 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -5201,7 +5201,8 @@ netdev_dpdk_flow_api_supported(struct netdev *netdev)
     bool ret = false;
 
     if ((!strcmp(netdev_get_type(netdev), "vxlan") ||
-         !strcmp(netdev_get_type(netdev), "gre")) &&
+         !strcmp(netdev_get_type(netdev), "gre") ||
+         !strcmp(netdev_get_type(netdev), "geneve")) &&
         !strcmp(netdev_get_dpif_type(netdev), "netdev")) {
         ret = true;
         goto out;
-- 
2.30.2

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to