It is harmless but pointless to invoke vxlan_stop event handler when the interface was not previously configured. This change will also prevent an assert panic from t4_vxlan_stop_handler().
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
Since eventhandlers are called outside the vxlan_sx protection, it is not even guaranteed that the stop event comes after the start, or that events are properly interleaved. In other words, drivers must be prepared for the situation like 'stop without start' or 'two stops after one start'.
sys/net/if_vxlan.c | ||
---|---|---|
1824 |
Comment Actions
Emm, I read the code carefully, both vxlan_start and vxlan_event handlers are called within protection of vxlan_sx. So drivers will get proper event order. Am I missing something important ?