Properly move the setting of bstp_linkstate_p to the bridgestp module.
This commit is contained in:
parent
2bf274778d
commit
8bc736d0dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167575
@ -2069,6 +2069,7 @@ bstp_modevent(module_t mod, int type, void *data)
|
||||
bstp_linkstate_p = bstp_linkstate;
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
bstp_linkstate_p = NULL;
|
||||
mtx_destroy(&bstp_list_mtx);
|
||||
break;
|
||||
default:
|
||||
|
@ -459,7 +459,6 @@ bridge_modevent(module_t mod, int type, void *data)
|
||||
bridge_input_p = bridge_input;
|
||||
bridge_output_p = bridge_output;
|
||||
bridge_dn_p = bridge_dummynet;
|
||||
bstp_linkstate_p = bstp_linkstate;
|
||||
bridge_detach_cookie = EVENTHANDLER_REGISTER(
|
||||
ifnet_departure_event, bridge_ifdetach, NULL,
|
||||
EVENTHANDLER_PRI_ANY);
|
||||
@ -472,7 +471,6 @@ bridge_modevent(module_t mod, int type, void *data)
|
||||
bridge_input_p = NULL;
|
||||
bridge_output_p = NULL;
|
||||
bridge_dn_p = NULL;
|
||||
bstp_linkstate_p = NULL;
|
||||
mtx_destroy(&bridge_list_mtx);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user