Lines Matching defs:state
29 void br_set_state(struct net_bridge_port *p, unsigned int state)
35 .u.stp_state = state,
39 /* Don't change the state of the ports if they are driven by a different
45 p->state = state;
47 err = br_mst_set_state(p, 0, state, NULL);
49 br_warn(p->br, "error setting MST state on port %u(%s)\n",
54 br_warn(p->br, "error setting offload STP state on port %u(%s)\n",
57 br_info(p->br, "port %u(%s) entered %s state\n",
59 br_port_state_names[p->state]);
62 switch (p->state) {
83 return p->state;
110 if (p->state == BR_STATE_DISABLED ||
323 if (p->state != BR_STATE_DISABLED &&
398 if (p->state != BR_STATE_DISABLED &&
433 if (p->state != BR_STATE_DISABLED &&
434 p->state != BR_STATE_BLOCKING) {
435 if (p->state == BR_STATE_FORWARDING ||
436 p->state == BR_STATE_LEARNING)
451 if (p->state != BR_STATE_BLOCKING)
476 if (p->state == BR_STATE_DISABLED)
495 if (p->state != BR_STATE_BLOCKING)
498 * blocking state because the timers will expire and stop by
501 if (p->state == BR_STATE_FORWARDING)