lifecycle: handle executors in reverse order when taking an interface down
This commit is contained in:
parent
dfb979d00d
commit
de20e5f8a9
2 changed files with 26 additions and 11 deletions
|
|
@ -35,6 +35,9 @@ struct lif_dict_entry {
|
|||
#define LIF_DICT_FOREACH_SAFE(iter, iter_next, dict) \
|
||||
LIF_LIST_FOREACH_SAFE((iter), (iter_next), (dict)->list.head)
|
||||
|
||||
#define LIF_DICT_FOREACH_REVERSE(iter, dict) \
|
||||
LIF_LIST_FOREACH_REVERSE((iter), (dict)->list.tail)
|
||||
|
||||
typedef int (*lif_dict_cmp_t)(const void *, const void *);
|
||||
|
||||
extern void lif_dict_init(struct lif_dict *dict);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue