diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-08-04 15:29:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-04 21:21:23 +0300 |
commit | af089e701adfb5898fee00a56ea4bb421edc308d (patch) | |
tree | 9883486ceadce4bd69c2b23fb866251000079559 /include/net/pkt_cls.h | |
parent | 6fc6d06e5371507e68c6904a3423622b0e465b64 (diff) | |
download | linux-af089e701adfb5898fee00a56ea4bb421edc308d.tar.xz |
net: sched: fix return value of tcf_exts_exec
Return the defined TC_ACT_OK instead of 0.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_cls.h')
-rw-r--r-- | include/net/pkt_cls.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 817badf733b5..61ce521688b2 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -182,7 +182,7 @@ static inline bool tcf_exts_has_one_action(struct tcf_exts *exts) * @exts: tc filter extensions handle * @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 positive action code (TC_ACT_*) which must be returned to the * underlying layer. @@ -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, res); #endif - return 0; + return TC_ACT_OK; } int tcf_exts_validate(struct net *net, struct tcf_proto *tp, |