]> git.ipfire.org Git - thirdparty/linux.git/commit
ipv6: mcast: Simplify mld_clear_{report|query}()
authorYue Haibing <yuehaibing@huawei.com>
Tue, 15 Jul 2025 12:07:09 +0000 (20:07 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 16 Jul 2025 23:14:42 +0000 (16:14 -0700)
commit6c628ed95e1b41f98766268593196adb7a0cb9a7
treef29083868103debeb53586cf7a7e6a0ce173c0c2
parent47ee43e4bf50be16a142df1bf51e04b4bc5a6cdc
ipv6: mcast: Simplify mld_clear_{report|query}()

Use __skb_queue_purge() instead of re-implementing it. Note that it uses
kfree_skb_reason() instead of kfree_skb() internally, and pass
SKB_DROP_REASON_QUEUE_PURGE drop reason to the kfree_skb tracepoint.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20250715120709.3941510-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/mcast.c