kernel - Clean up if_bridge bif_state tests
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 23 Feb 2013 19:47:01 +0000 (11:47 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 23 Feb 2013 19:47:01 +0000 (11:47 -0800)
commitab002640aa8f1bf2daf09f0761f0f85ba595b009
tree5c0f8770a882f54aea01f2d473f7a432e26a4bc0
parent6e72a17f7221cfa19db5470dab33bace2a1918f5
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.
sys/net/bridge/if_bridge.c