]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: sched: fix extack error message when chain is failed to be created
authorJiri Pirko <jiri@mellanox.com>
Mon, 27 Aug 2018 18:58:43 +0000 (20:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Aug 2018 22:16:16 +0000 (15:16 -0700)
Instead "Cannot find" say "Cannot create".

Fixes: c35a4acc2985 ("net: sched: cls_api: handle generic cls errors")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c

index 31bd1439cf6059fbcb3e99525e4a964154ef7907..2d41c5b21b487c194280d8f9610f23e4e9d06341 100644 (file)
@@ -1252,7 +1252,7 @@ static int tc_new_tfilter(struct sk_buff *skb, struct nlmsghdr *n,
        }
        chain = tcf_chain_get(block, chain_index, true);
        if (!chain) {
-               NL_SET_ERR_MSG(extack, "Cannot find specified filter chain");
+               NL_SET_ERR_MSG(extack, "Cannot create specified filter chain");
                err = -ENOMEM;
                goto errout;
        }