Commit af089e70 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

net: sched: fix return value of tcf_exts_exec

Return the defined TC_ACT_OK instead of 0.
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6fc6d06e
...@@ -182,7 +182,7 @@ static inline bool tcf_exts_has_one_action(struct tcf_exts *exts) ...@@ -182,7 +182,7 @@ static inline bool tcf_exts_has_one_action(struct tcf_exts *exts)
* @exts: tc filter extensions handle * @exts: tc filter extensions handle
* @res: desired result * @res: desired result
* *
* Executes all configured extensions. Returns 0 on a normal execution, * Executes all configured extensions. Returns TC_ACT_OK on a normal execution,
* a negative number if the filter must be considered unmatched or * a negative number if the filter must be considered unmatched or
* a positive action code (TC_ACT_*) which must be returned to the * a positive action code (TC_ACT_*) which must be returned to the
* underlying layer. * underlying layer.
...@@ -196,7 +196,7 @@ tcf_exts_exec(struct sk_buff *skb, struct tcf_exts *exts, ...@@ -196,7 +196,7 @@ tcf_exts_exec(struct sk_buff *skb, struct tcf_exts *exts,
return tcf_action_exec(skb, exts->actions, exts->nr_actions, return tcf_action_exec(skb, exts->actions, exts->nr_actions,
res); res);
#endif #endif
return 0; return TC_ACT_OK;
} }
int tcf_exts_validate(struct net *net, struct tcf_proto *tp, int tcf_exts_validate(struct net *net, struct tcf_proto *tp,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment