Remove usued, redundant and deprecated code from lookup.h
[vpp.git] / src / plugins / ioam / lib-vxlan-gpe / vxlan_gpe_ioam_trace.c
index e37b164..f3d03b6 100644 (file)
@@ -25,6 +25,7 @@
 #include <vppinfra/elog.h>
 
 #include <ioam/lib-trace/trace_util.h>
+#include <ioam/lib-trace/trace_config.h>
 #include <ioam/lib-vxlan-gpe/vxlan_gpe_ioam.h>
 
 /* Timestamp precision multipliers for seconds, milliseconds, microseconds
@@ -301,11 +302,10 @@ vxlan_gpe_ioam_trace_data_list_handler (vlib_buffer_t * b,
            {
              u16 tx_if = 0;
              u32 adj_index = vnet_buffer (b)->ip.adj_index[VLIB_TX];
-             ip4_main_t *im4 = &ip4_main;
-             ip_lookup_main_t *lm = &im4->lookup_main;
+
              if (use_adj)
                {
-                 ip_adjacency_t *adj = ip_get_adjacency (lm, adj_index);
+                 ip_adjacency_t *adj = adj_get (adj_index);
                  tx_if = adj->rewrite_header.sw_if_index & 0xFFFF;
                }
 
@@ -329,11 +329,10 @@ vxlan_gpe_ioam_trace_data_list_handler (vlib_buffer_t * b,
            {
              u16 tx_if = 0;
              u32 adj_index = vnet_buffer (b)->ip.adj_index[VLIB_TX];
-             ip6_main_t *im6 = &ip6_main;
-             ip_lookup_main_t *lm = &im6->lookup_main;
+
              if (use_adj)
                {
-                 ip_adjacency_t *adj = ip_get_adjacency (lm, adj_index);
+                 ip_adjacency_t *adj = adj_get (adj_index);
                  tx_if = adj->rewrite_header.sw_if_index & 0xFFFF;
                }