# Re: \[PATCH net v3 2/7\] net/sched: act\_gate: add RCU support for parameter update

- From: Victor Nogueira \<hidden\>
- Date: 2026-01-21 19:42:58 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/01/3380800
- Thread: https://ratatoskr.run/netdev/2026/01/3380021/t.md

```text
On 21/01/2026 10:20, Paul Moses wrote:
> Make gact->param RCU-protected and reclaim old params via call_rcu(). This
> follows the pattern used by other actions: act_pedit swaps params with
> rcu_replace_pointer() and defers free via call_rcu() (commit 52cf89f78c01bf),
> act_connmark uses rcu_replace_pointer() under tcf_lock (commit 288864effe3388),
> and act_tunnel_key does the same under lockdep (commit 445d3749315f34).
>
> Dump readers in act_ct and act_pedit already use rcu_read_lock() +
> rcu_dereference() (commits 554e66bad84ce4 and 9d096746572616), so act_gate
> must keep old params alive past updates as well.
> [...]

I think you could've transformed patches 2, 3, 4 into a single patch.
Since all of them are RCU-related changes and they sometimes overwrite
each other.
```
