| 1644 | } |
| 1645 | |
| 1646 | int |
| 1647 | bstp_set_autoedge(struct bstp_port *bp, int set) |
| 1648 | { |
| 1649 | struct bstp_state *bs = bp->bp_bs; |
| 1650 | |
| 1651 | BSTP_LOCK(bs); |
| 1652 | if (set) { |
| 1653 | bp->bp_flags |= BSTP_PORT_AUTOEDGE; |
| 1654 | /* we may be able to transition straight to edge */ |
| 1655 | if (bp->bp_edge_delay_timer.active == 0) |
| 1656 | bstp_edge_delay_expiry(bs, bp); |
| 1657 | } else |
| 1658 | bp->bp_flags &= ~BSTP_PORT_AUTOEDGE; |
| 1659 | BSTP_UNLOCK(bs); |
| 1660 | return (0); |
| 1661 | } |
| 1662 | |
| 1663 | int |
| 1664 | bstp_set_ptp(struct bstp_port *bp, int set) |
no test coverage detected