git: if_tap: Remove redundant unit from tapcreate() and tun_softc

Aaron LI aly at crater.dragonflybsd.org
Mon Jul 16 23:58:42 PDT 2018


commit 2752171e8d2593dd8d6fe98cbd82c50bc64e7873
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Jul 8 15:16:56 2018 +0800

    if_tap: Remove redundant unit from tapcreate() and tun_softc
    
    The tap interface unit number is the same as minor number of the
    associated tap device, so remove the redundant "unit" argument
    from tapcreate() function as well as the "tap_unit" entry from
    tun_softc struct.
    
    Meanwhile, improve the debug messages.

Summary of changes:
 sys/net/tap/if_tap.c    | 21 +++++++++++----------
 sys/net/tap/if_tapvar.h |  1 -
 2 files changed, 11 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2752171e8d2593dd8d6fe98cbd82c50bc64e7873


-- 
DragonFly BSD source repository



More information about the Commits mailing list