cvs commit: src/sys/net if_gif.c

Robert Watson rwatson at FreeBSD.org
Mon Mar 22 07:43:16 PST 2004


rwatson     2004/03/22 07:43:15 PST

  FreeBSD src repository

  Modified files:
    sys/net              if_gif.c 
  Log:
  Lock down global variables in if_gif:
  
  - Add gif_mtx, which protects globals.
  - Hold gif_mtx around manipulation of gif_softc_list.
  - Abstract gif destruction code into gif_destroy(), which tears down
    a softc after it's been removed from the global list by either module
    unload or clone destroy.
  - Lock gif_called, even though we know gif_called is broken with reentrant
    network processing.
  - Document an event ordering problem in gif_set_tunnel() that will need
    to be fixed.
  
  gif_softc fields not locked down in this commit.
  
  Revision  Changes    Path
  1.43      +50 -9     src/sys/net/if_gif.c


More information about the cvs-all mailing list