Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2007 12:27:30 +0000 (UTC)
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net if_vlan.c
Message-ID:  <200703121227.l2CCRUfF082121@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yar         2007-03-12 12:27:30 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_vlan.c 
  Log:
  Fix some minor issues in the internal vlan lists:
  
  - ifv_list member of struct ifvlan is unneeded in array mode,
    it's used only in hash mode to resolve hash collisions.
  
  - We don't need the list of trunks at all.  (The initial reason for
    having it was to be able to destroy all trunks in the MOD_UNLOAD
    handler, but a trunk is not to be destroyed forcibly -- it will
    go away when all vlan interfaces on it have been deleted.
    Note that if_clone_detach() called first of all under MOD_UNLOAD
    will delete all vlan interfaces and thus make all trunks go away
    quietly.)
  
  - It's enough to use a single [S]LIST_FIRST() in a typical list
    destruction loop.
  
  Revision  Changes    Path
  1.118     +6 -20     src/sys/net/if_vlan.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703121227.l2CCRUfF082121>