Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jul 2005 01:24:45 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net bridgestp.c if_bridge.c if_bridgevar.h
Message-ID:  <200507060124.j661Ojel062207@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
thompsa     2005-07-06 01:24:45 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bridgestp.c if_bridge.c if_bridgevar.h 
  Log:
  - Previously when broadcasting to N number of interfaces we would run pfil
    hooks for each outgoing interface but also run pfil hooks _N times_ on the
    bridge interface. This is changed so pfil hooks are run once for the bridge
    interface (bridge0) and then only on the outgoing interfaces in the broadcast
    loop.
  
  - Simplify bridge_enqueue() by moving bridge_pfil() to the callers.
  
  - Check (inet6_pfil_hook.ph_busy_count >= 0), it may be possible to have a
    packet filter hooked for only ipv6 but we were only checking if ipv4 hooks
    were busy.
  
  - Minor optimisation for null mbuf check after bridge_pfil(), move it into the
    if-block as it couldnt possibly be null outside.
  
  Prodded by:     mlaier
  Approved by:    re (scottl), mlaier (mentor)
  
  Revision  Changes    Path
  1.3       +2 -2      src/sys/net/bridgestp.c
  1.11      +86 -28    src/sys/net/if_bridge.c
  1.4       +1 -2      src/sys/net/if_bridgevar.h



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