diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2026-06-29 18:11:00 +0000 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-07-01 18:42:34 +0200 |
| commit | 34ea2499389e7a2f1522682e003b257eccda26be (patch) | |
| tree | e33210b8f5dba43ece5cb3b9f0e77717334a713d /samples | |
| parent | facce49f29ccec1cf7fd916331c9a25c9ad75869 (diff) | |
| download | linux-next-34ea2499389e7a2f1522682e003b257eccda26be.tar.gz linux-next-34ea2499389e7a2f1522682e003b257eccda26be.zip | |
net: fib_rules: Use dev_get_by_name_rcu().
We will no longer hold RTNL for RTM_NEWRULE and RMT_DELRULE
except for the first IPv4 RTM_NEWRULE.
Let's covnert __dev_get_by_name() in fib_nl2rule_rtnl() to
dev_get_by_name_rcu() and rename it to fib_nl2rule_locked().
Note that dev_get_by_name_rcu() must be called inside ops->lock
to serialise fib_rules_event() by __dev_change_net_namespace().
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260629181226.1929658-9-kuniyu@google.com
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions
