cvs commit: src/sys/net if_vlan.c

Yar Tikhiy yar at FreeBSD.org
Mon Mar 12 12:27:30 UTC 2007


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


More information about the cvs-src mailing list