提交 af089e70 编写于 作者: J Jiri Pirko 提交者: David S. Miller

net: sched: fix return value of tcf_exts_exec

Return the defined TC_ACT_OK instead of 0.
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册