diff options
Diffstat (limited to 'net/sched/cls_api.c')
| -rw-r--r-- | net/sched/cls_api.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 31bd1439cf60..0a75cb2e5e7b 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -1252,7 +1252,7 @@ replay:  	}  	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;  	} @@ -1399,7 +1399,7 @@ static int tc_del_tfilter(struct sk_buff *skb, struct nlmsghdr *n,  			goto errout;  		}  		NL_SET_ERR_MSG(extack, "Cannot find specified filter chain"); -		err = -EINVAL; +		err = -ENOENT;  		goto errout;  	} @@ -1902,6 +1902,8 @@ replay:  				RTM_NEWCHAIN, false);  		break;  	case RTM_DELCHAIN: +		tfilter_notify_chain(net, skb, block, q, parent, n, +				     chain, RTM_DELTFILTER);  		/* Flush the chain first as the user requested chain removal. */  		tcf_chain_flush(chain);  		/* In case the chain was successfully deleted, put a reference  |