Skip to content

Commit f5b9bac

Browse files
congwangdavem330
authored andcommitted
net_sched: notify filter deletion when deleting a chain
When we delete a chain of filters, we need to notify user-space we are deleting each filters in this chain too. Fixes: 32a4f5e ("net: sched: introduce chain object to uapi") Cc: Jiri Pirko <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ad4f15d commit f5b9bac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/sched/cls_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,8 @@ static int tc_ctl_chain(struct sk_buff *skb, struct nlmsghdr *n,
19021902
RTM_NEWCHAIN, false);
19031903
break;
19041904
case RTM_DELCHAIN:
1905+
tfilter_notify_chain(net, skb, block, q, parent, n,
1906+
chain, RTM_DELTFILTER);
19051907
/* Flush the chain first as the user requested chain removal. */
19061908
tcf_chain_flush(chain);
19071909
/* In case the chain was successfully deleted, put a reference

0 commit comments

Comments
 (0)