git: kernel - Clean up if_bridge bif_state tests

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Feb 23 11:50:04 PST 2013


commit ab002640aa8f1bf2daf09f0761f0f85ba595b009
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Feb 23 11:47:01 2013 -0800

    kernel - Clean up if_bridge bif_state tests
    
    * bif_state is only valid when IFBIF_STP is set, adjust two bits of
      code that were using bif_state unconditionally.
    
    * This is a semi-operational change because bif_state's default value
      when IFBIF_STP is not set resulted in correct operation anyway.
    
      However, setting STP and then clearing it on a sub-interface could
      cause problems with stale state.

Summary of changes:
 sys/net/bridge/if_bridge.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ab002640aa8f1bf2daf09f0761f0f85ba595b009


-- 
DragonFly BSD source repository



More information about the Commits mailing list