Hi all,
I would like to understand the rationale for existing implementation of
https://github.com/freebsd/freebsd-src/blob/main/sys/net/if_bridge.c#L4456
Assuming a bridge having N number of interfaces/ports, some of them have "IFCAP_LINKSTATE" capability, some do not.
If ALL of the ports, having capability above, are in link state different than "UP":
--> bridge's link state is set to DOWN, the non-capabable IFs are not considered.
However, now assuming a bridge having N number of interfaces/ports. ALL of them do not have "IFCAP_LINKSTATE" capability.
--> link state is defaulted to UP
I do not quite understand why bridge's link state is not set to UP "as long as one port does not support link state".
Any insights here?
Thanks a lot.
I would like to understand the rationale for existing implementation of
https://github.com/freebsd/freebsd-src/blob/main/sys/net/if_bridge.c#L4456
Assuming a bridge having N number of interfaces/ports, some of them have "IFCAP_LINKSTATE" capability, some do not.
If ALL of the ports, having capability above, are in link state different than "UP":
--> bridge's link state is set to DOWN, the non-capabable IFs are not considered.
However, now assuming a bridge having N number of interfaces/ports. ALL of them do not have "IFCAP_LINKSTATE" capability.
--> link state is defaulted to UP
I do not quite understand why bridge's link state is not set to UP "as long as one port does not support link state".
Any insights here?
Thanks a lot.