summaryrefslogtreecommitdiffstats
path: root/src/vnet/dns
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-08-15 15:14:14 -0400
committerDave Barach <dave@barachs.net>2019-08-15 15:14:58 -0400
commit018c14b7dbc5a910693f150045bfa803c4ae4eec (patch)
treebf657b6e14707d58684c989d8efd9f03208ce32d /src/vnet/dns
parent6631780422787166550b9871c46a94c160416324 (diff)
dhcp: resolver process node index in main_t
Remove the (unused) node_registration_t, don't try to use it to signal resolution events. Type: fix Ticket: VPP-1746 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: Ice975e32152892ac4100b9e758412d48a43f09f1
Diffstat (limited to 'src/vnet/dns')
-rw-r--r--src/vnet/dns/dns.c3
-rw-r--r--src/vnet/dns/dns.h1
-rw-r--r--src/vnet/dns/reply_node.c2
-rw-r--r--src/vnet/dns/resolver_process.c2
4 files changed, 3 insertions, 5 deletions
diff --git a/src/vnet/dns/dns.c b/src/vnet/dns/dns.c
index 471728b8bb7..3285bedc903 100644
--- a/src/vnet/dns/dns.c
+++ b/src/vnet/dns/dns.c
@@ -650,7 +650,8 @@ vnet_send_dns_request (dns_main_t * dm, dns_cache_entry_t * ep)
out:
- vlib_process_signal_event_mt (dm->vlib_main, dns_resolver_node.index,
+ vlib_process_signal_event_mt (dm->vlib_main,
+ dm->resolver_process_node_index,
DNS_RESOLVER_EVENT_PENDING, 0);
}
diff --git a/src/vnet/dns/dns.h b/src/vnet/dns/dns.h
index 494ac672096..e6944de0ca9 100644
--- a/src/vnet/dns/dns.h
+++ b/src/vnet/dns/dns.h
@@ -127,7 +127,6 @@ extern dns_main_t dns_main;
extern vlib_node_registration_t dns46_reply_node;
extern vlib_node_registration_t dns4_request_node;
extern vlib_node_registration_t dns6_request_node;
-extern vlib_node_registration_t dns_resolver_node;
#define foreach_dns46_request_error \
_(NONE, "No error") \
diff --git a/src/vnet/dns/reply_node.c b/src/vnet/dns/reply_node.c
index 81ce8f480d0..77d54c84019 100644
--- a/src/vnet/dns/reply_node.c
+++ b/src/vnet/dns/reply_node.c
@@ -171,7 +171,7 @@ dns46_reply_node_fn (vlib_main_t * vm,
/*
* Deal with everything in process ctx on the main thread
*/
- vlib_process_signal_event_mt (vm, dns_resolver_node.index,
+ vlib_process_signal_event_mt (vm, dm->resolver_process_node_index,
DNS_RESOLVER_EVENT_RESOLVED,
(uword) resp0);
error0 = DNS46_REPLY_ERROR_PROCESSED;
diff --git a/src/vnet/dns/resolver_process.c b/src/vnet/dns/resolver_process.c
index cba659266c9..220a4907963 100644
--- a/src/vnet/dns/resolver_process.c
+++ b/src/vnet/dns/resolver_process.c
@@ -38,8 +38,6 @@
#include <vlibapi/api_helper_macros.h>
-vlib_node_registration_t dns_resolver_node;
-
extern int
vnet_dns_response_to_reply (u8 * response,
vl_api_dns_resolve_name_reply_t * rmp,