[ovs-dev] [PATCH] dif-netlink: avoid offload the unsupported USERSPACE action
wenxu at ucloud.cn
wenxu at ucloud.cn
Wed Mar 6 04:35:58 UTC 2019
From: wenxu <wenxu at ucloud.cn>
The hw do/t support USERSPACE action, it will lead many err
logs as following
"ERR|failed to offload flow: Operation not supported"
Signed-off-by: wenxu <wenxu at ucloud.cn>
---
lib/dpif-netlink.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/dpif-netlink.c b/lib/dpif-netlink.c
index 00538e5..46fe022 100644
--- a/lib/dpif-netlink.c
+++ b/lib/dpif-netlink.c
@@ -2036,6 +2036,9 @@ parse_flow_put(struct dpif_netlink *dpif, struct dpif_flow_put *put)
csum_on = tnl_cfg->csum;
}
netdev_close(outdev);
+ } else if (nl_attr_type(nla) == OVS_ACTION_ATTR_USERSPACE) {
+ err = EOPNOTSUPP;
+ goto out;
}
}
--
1.8.3.1
More information about the dev
mailing list