brctl: make "show" command retrieve data from /sys
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 12 Apr 2019 16:52:31 +0000 (18:52 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 12 Apr 2019 16:52:31 +0000 (18:52 +0200)
commitc5150e9ce7359db136ae9337b2f007c6f7ec3113
treea09cefd02f4ded1cb6bd1095ec5d1b5896393e6f
parente2026381bed88e79b6f7657eef8319e60ff83041
brctl: make "show" command retrieve data from /sys

ioctl interface is obsolete and has no 32/64 compat shim,
making "brctl show" fail for 32-bit userspace and 64-bit kernel.

function                                             old     new   delta
show_bridge                                            -     310    +310
read_file                                              -      64     +64
if_indextoname                                       117       -    -117
brctl_main                                          1183     885    -298
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/1 up/down: 374/-415)          Total: -41 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/brctl.c