diff mbox series

[ovs-dev,v2] dpif-netlink: avoid offload the unsupported USERSPACE actions

Message ID 1552876928-12339-1-git-send-email-wenxu@ucloud.cn
State Rejected
Delegated to: Simon Horman
Headers show
Series [ovs-dev,v2] dpif-netlink: avoid offload the unsupported USERSPACE actions | expand

Commit Message

wenxu March 18, 2019, 2:42 a.m. UTC
From: wenxu <wenxu@ucloud.cn>

The hw can't offload USERSPACE action which will lead many err
logs as following.
"ERR|failed to offload flow: Operation not supported"

 So we should avoid offload USERSPACE actions

Signed-off-by: wenxu <wenxu@ucloud.cn>
---
 lib/dpif-netlink.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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;
         }
     }