Skip to content

Commit 166b6a4

Browse files
zhengbaowendavem330
authored andcommitted
flow_offload: return EOPNOTSUPP for the unsupported mpls action type
We need to return EOPNOTSUPP for the unsupported mpls action type when setup the flow action. In the original implement, we will return 0 for the unsupported mpls action type, actually we do not setup it and the following actions to the flow action entry. Fixes: 9838b20 ("net: sched: take rtnl lock in tc_setup_flow_action()") Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com> Signed-off-by: Simon Horman <simon.horman@corigine.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent aeb7c75 commit 166b6a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sched/cls_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3687,6 +3687,7 @@ int tc_setup_flow_action(struct flow_action *flow_action,
36873687
entry->mpls_mangle.ttl = tcf_mpls_ttl(act);
36883688
break;
36893689
default:
3690+
err = -EOPNOTSUPP;
36903691
goto err_out_locked;
36913692
}
36923693
} else if (is_tcf_skbedit_ptype(act)) {

0 commit comments

Comments
 (0)