[ovs-dev] [PATCH 24/25] netdev-dpdk: Add flow_api support for netdev vxlan vports
Eli Britstein
elibr at mellanox.com
Mon Jan 20 15:08:29 UTC 2020
From: Ophir Munk <ophirmu at mellanox.com>
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 <eveliner at mellanox.com>
Co-authored-by: Eli Britstein <elibr at mellanox.com>
Signed-off-by: Eveline Raine <eveliner at mellanox.com>
Signed-off-by: Ophir Munk <ophirmu at mellanox.com>
Reviewed-by: Roni Bar Yanai <roniba at mellanox.com>
Signed-off-by: Eli Britstein <elibr at mellanox.com>
---
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
More information about the dev
mailing list