Skip to content

Commit

Permalink
netdev-tc-offloads: Fix accidental skipping of extended pedit keys
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Roi Dayan <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
  • Loading branch information
Paul Blakey authored and shorman-netronome committed Nov 23, 2017
1 parent 6e1a6bf commit 408671c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 408671c

Please sign in to comment.