Message ID | 20230721191332.1424997-3-pctammela@mojatatu.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net/sched: improve class lifetime handling | expand |
diff --git a/net/sched/sch_drr.c b/net/sched/sch_drr.c index 0bffa01c61bb..32165c8a3bd9 100644 --- a/net/sched/sch_drr.c +++ b/net/sched/sch_drr.c @@ -150,8 +150,10 @@ static int drr_delete_class(struct Qdisc *sch, unsigned long arg, struct drr_sched *q = qdisc_priv(sch); struct drr_class *cl = (struct drr_class *)arg; - if (qdisc_class_in_use(&cl->common)) + if (qdisc_class_in_use(&cl->common)) { + NL_SET_ERR_MSG(extack, "DRR class is in use"); return -EBUSY; + } sch_tree_lock(sch);
Add extack to warn that delete was rejected because the class is still in use Signed-off-by: Pedro Tammela <pctammela@mojatatu.com> --- net/sched/sch_drr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)