diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2024-10-16 21:53:55 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-10-22 12:02:05 +0300 |
commit | a0b63c6457e100b84b1ff9179bc328c0924de75c (patch) | |
tree | 76dec7123d824bd0787fdda49f60801d18a338f0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6e495fad88ef7bdea70b0e4a1a714f6eccab2a5a (diff) | |
download | linux-a0b63c6457e100b84b1ff9179bc328c0924de75c.tar.xz |
rtnetlink: Call rtnl_link_get_net_capable() in do_setlink().
We will push RTNL down to rtnl_setlink().
RTM_SETLINK could call rtnl_link_get_net_capable() in do_setlink()
to move a dev to a new netns, but the netns needs to be fetched before
holding rtnl_net_lock().
Let's move it to rtnl_setlink() and pass the netns to do_setlink().
Now, RTM_NEWLINK paths (rtnl_changelink() and rtnl_group_changelink())
can pass the prefetched netns to do_setlink().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions