git: ifconfig(8): Speed up non-status operations to a single interface

Aaron LI aly at crater.dragonflybsd.org
Fri Jun 26 07:55:31 PDT 2020


commit 028754e08bbbc6c906ce702fdebdc75f785d3037
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Jun 26 21:38:11 2020 +0800

    ifconfig(8): Speed up non-status operations to a single interface
    
    When performing a non-status operation on a single interface (e.g., set
    address or flags), it is not necessary for ifconfig(8) to build a list
    of all addresses in the system, sort them, and then iterate through them
    to look for the single interface of interest.
    
    Obtained from FreeBSD (revision 343535; review D18919)

Summary of changes:
 sbin/ifconfig/ifconfig.c | 53 ++++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 47 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/028754e08bbbc6c906ce702fdebdc75f785d3037


-- 
DragonFly BSD source repository



More information about the Commits mailing list