diff options
| author | Florent Fourcot <[email protected]> | 2022-04-15 18:53:28 +0200 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2022-04-19 13:38:43 +0200 |
| commit | 5ea08b5286f66ee5ac0150668c92d1718e83e1ad (patch) | |
| tree | 74d2e74e0be5db207621e9caec0968c7a7c2696d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | ef2a7c9065cea4e3fbc0390e82d05141abbccd7f (diff) | |
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 <[email protected]>
Signed-off-by: Florent Fourcot <[email protected]>
Signed-off-by: Brian Baboch <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions