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 <nant...@nvidia.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 45a96b9..80cba39 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -5218,7 +5218,8 @@ 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; -- 1.8.3.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev