]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: return ENODEV when IFLA_ALT_IFNAME is used in dellink
authorFlorent Fourcot <florent.fourcot@wifirst.fr>
Fri, 15 Apr 2022 16:53:29 +0000 (18:53 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Apr 2022 11:38:50 +0000 (13:38 +0200)
commit578a780348d337fa6851f24d2fc1ac6f84370d24
treecea6e03d6977ee1c74479bd2d85f18a8ea3a020f
parent8ef569ef3f0df7b2ffd81cc1bf67d93e398a0a0c
rtnetlink: return ENODEV when IFLA_ALT_IFNAME is used in dellink

If IFLA_ALT_IFNAME is set and given interface is not found,
we should return ENODEV and be consistent with IFLA_IFNAME
behaviour
This commit extends feature of commit 706aa7e7f618,
"net: rtnetlink: add possibility to use alternative names as message handle"

CC: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: Brian Baboch <brian.baboch@wifirst.fr>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/rtnetlink.c