diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2025-03-20 02:06:48 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-25 17:31:59 +0300 |
commit | caa074573ca0a110b609bf35b7fec3d967945315 (patch) | |
tree | 4fb05b9416e5a61ace549fe29ea99d5a5fba95ea /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 9b9674f3e73a2be9a702d65b77fdac279590a009 (diff) | |
download | linux-caa074573ca0a110b609bf35b7fec3d967945315.tar.xz |
nexthop: Move NHA_OIF validation to rtm_to_nh_config_rtnl().
NHA_OIF needs to look up a device by __dev_get_by_index(),
which requires RTNL.
Let's move NHA_OIF validation to rtm_to_nh_config_rtnl().
Note that the proceeding checks made the original !cfg->nh_fdb
check redundant.
NHA_FDB is set -> NHA_OIF cannot be set
NHA_FDB is set but false -> NHA_OIF must be set
NHA_FDB is not set -> NHA_OIF must be set
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250319230743.65267-4-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions