diff options
author | 2025-01-17 20:16:31 +0700 | |
---|---|---|
committer | 2025-01-17 16:36:12 +0000 | |
commit | ccf216b9403d7e3fd9e550fa955d76a633406370 (patch) | |
tree | 1efb60f8b41bd15011dcee62cb77c10ca71e7d1a /src/plugins/linux-cp | |
parent | 38097970c038de6c3c67cb8e1c7209f1df1f24d0 (diff) |
linux-cp: add the drain back
Type: fix
Change-Id: I60338a8c901cf5baf4974ce572f17e70116877df
Signed-off-by: Artem Glazychev <glazychev@mts.ru>
Diffstat (limited to 'src/plugins/linux-cp')
-rw-r--r-- | src/plugins/linux-cp/lcp_nl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/linux-cp/lcp_nl.c b/src/plugins/linux-cp/lcp_nl.c index 71104d39134..916877939f0 100644 --- a/src/plugins/linux-cp/lcp_nl.c +++ b/src/plugins/linux-cp/lcp_nl.c @@ -753,6 +753,12 @@ lcp_nl_drain_messages (void) return err; } +void +lcp_nl_pair_add_cb (lcp_itf_pair_t *pair) +{ + lcp_nl_drain_messages (); +} + static clib_error_t * nl_route_read_cb (clib_file_t *f) { @@ -1003,12 +1009,16 @@ clib_error_t * lcp_nl_init (vlib_main_t *vm) { nl_main_t *nm = &nl_main; + lcp_itf_pair_vft_t nl_itf_pair_vft = { + .pair_add_fn = lcp_nl_pair_add_cb, + }; nm->nl_status = NL_STATUS_NOTIF_PROC; nm->clib_file_index = ~0; nm->nl_logger = vlib_log_register_class ("nl", "nl"); lcp_nl_open_socket (); + lcp_itf_pair_register_vft (&nl_itf_pair_vft); return (NULL); } |