[ovs-dev] [PATCH 2/7] netdev-tc-offloads: Fix accidental skipping of extended pedit keys
Roi Dayan
roid at mellanox.com
Tue Nov 21 12:40:37 UTC 2017
From: Paul Blakey <paulb at mellanox.com>
We only support extended pedit keys for now, so it's the type we
expect. Skip the legacy ones instead.
Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
---
lib/tc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/tc.c b/lib/tc.c
index 627de8a..8888401 100644
--- a/lib/tc.c
+++ b/lib/tc.c
@@ -484,7 +484,7 @@ nl_parse_act_pedit(struct nlattr *options, struct tc_flower *flower)
break;
}
- if (nl_attr_type(nla) == TCA_PEDIT_KEY_EX) {
+ if (nl_attr_type(nla) != TCA_PEDIT_KEY_EX) {
VLOG_ERR_RL(&error_rl, "unable to parse legacy pedit type: %d",
nl_attr_type(nla));
return EOPNOTSUPP;
--
2.7.5
More information about the dev
mailing list