]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
8021q: use RCU for egress QoS mappings
authorLongxuan Yu <ylong030@ucr.edu>
Mon, 20 Apr 2026 03:18:45 +0000 (11:18 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 23 Apr 2026 10:13:57 +0000 (12:13 +0200)
commitfc69decc811b155a0ed8eef17ee940f28c4f6dbc
treeb33e65b54f1c17a569d5548d87323afaa29edcea
parent5a5db99c344810d8b4612873a8a4153bebf5776f
8021q: use RCU for egress QoS mappings

The TX fast path and reporting paths walk egress QoS mappings without
RTNL. Convert the mapping lists to RCU-protected pointers, use RCU
reader annotations in readers, and defer freeing mapping nodes with an
embedded rcu_head.

This prepares the egress QoS mapping code for safe removal of mapping
nodes in a follow-up change while preserving the current behavior.

Co-developed-by: Yuan Tan <yuantan098@gmail.com>
Signed-off-by: Yuan Tan <yuantan098@gmail.com>
Signed-off-by: Longxuan Yu <ylong030@ucr.edu>
Signed-off-by: Ren Wei <n05ec@lzu.edu.cn>
Link: https://patch.msgid.link/9136768189f8c6d3f824f476c62d2fa1111688e8.1776647968.git.yuantan098@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/linux/if_vlan.h
net/8021q/vlan_dev.c
net/8021q/vlan_netlink.c
net/8021q/vlanproc.c