Overview: Steps to Reproduce: 1. create a bridge 2. add a member interface 3. enable stp for the member 4. check member role in ifconfig output Actual Results: # ifconfig bridge0 bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 58:9c:fc:10:ff:e0 id 02:21:4d:ed:52:0b priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto stp-rstp maxaddr 2000 timeout 1200 root id 02:21:4d:ed:52:0a priority 32768 ifcost 2000 port 11 member: epair2b flags=1c7<LEARNING,DISCOVER,STP,AUTOEDGE,PTP,AUTOPTP> ifmaxaddr 0 port 11 priority 128 path cost 2000 <unknown proto 2> <unknown role 1> state forwarding Expected Results: # ifconfig bridge0 bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 58:9c:fc:10:ff:e0 id 02:21:4d:ed:52:0b priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto stp-rstp maxaddr 2000 timeout 1200 root id 02:21:4d:ed:52:0a priority 32768 ifcost 2000 port 11 member: epair2b flags=1c7<LEARNING,DISCOVER,STP,AUTOEDGE,PTP,AUTOPTP> ifmaxaddr 0 port 11 priority 128 path cost 2000 <unknown proto 2> role root state forwarding Build Date & Hardware: 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r368820: Tue Jan 5 17:30:19 EST 2021
Created attachment 221504 [details] proposed patch