cvs commit: src/sys/net/bridge bridgestp.c if_bridge.c if_bridgevar.h

Sepherosa Ziehau sephe at
Sat Jun 14 01:00:11 PDT 2008

sephe       2008/06/14 00:58:46 PDT

DragonFly src repository

  Modified files:
    sys/net/bridge       bridgestp.c if_bridge.c if_bridgevar.h 
  - Check cached ifnet.if_bridge again in bridge_{input,output}()
  - Pass cached ifnet.if_bridge to bstp_input()
  - Pass the located bif to bstp_input(), so we won't need to locate bif again
  These changes make it possible to use following sequence
      ifp->if_bridge = NULL;
  to protect ifnet.if_bridge
  Revision  Changes    Path
  1.5       +4 -12     src/sys/net/bridge/bridgestp.c
  1.32      +16 -4     src/sys/net/bridge/if_bridge.c
  1.4       +2 -1      src/sys/net/bridge/if_bridgevar.h

More information about the Commits mailing list