Searched hist:"5 ea08b5286f66ee5ac0150668c92d1718e83e1ad" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/core/ |
H A D | rtnetlink.c | diff 5ea08b5286f66ee5ac0150668c92d1718e83e1ad Fri Apr 15 11:53:28 CDT 2022 Florent Fourcot <florent.fourcot@wifirst.fr> rtnetlink: enable alt_ifname for setlink/newlink
buffer called "ifname" given in function rtnl_dev_get is always valid when called by setlink/newlink, but contains only empty string when IFLA_IFNAME is not given. So IFLA_ALT_IFNAME is always ignored
This patch fixes rtnl_dev_get function with a remove of ifname argument, and move ifname copy in do_setlink when required.
It extends feature of commit 76c9ac0ee878, "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>
|