mirror_iproute2/bridge
Serhey Popovych 45d3a6efb2 iplink: Use ll_index_to_name() instead of if_indextoname()
There are two reasons for switching to cached variant:

  1) ll_index_to_name() may return result from cache,
     eliminating expensive ioctl() to the kernel.

     Note that most of the code already switched from plain
     if_indextoname() to ll_index_to_name() to cached variant
     in print path because in most cases cache populated.

  2) It always return name in the form "if%d", even if
     entry is not in cache and ioctl() fails. This drops
     "link_index" from JSON output.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2018-01-18 16:34:37 -08:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
bridge.c SPDX license identifiers 2017-11-24 12:21:35 -08:00
fdb.c iplink: Use ll_index_to_name() instead of if_indextoname() 2018-01-18 16:34:37 -08:00
link.c iplink: Use ll_index_to_name() instead of if_indextoname() 2018-01-18 16:34:37 -08:00
Makefile SPDX license identifiers 2017-11-24 12:21:35 -08:00
mdb.c SPDX license identifiers 2017-11-24 12:21:35 -08:00
monitor.c scrub out whitespace issues 2016-03-27 10:50:14 -07:00
vlan.c SPDX license identifiers 2017-11-24 12:21:35 -08:00