dpdk: remove unused cached eth input node 06/9706/3
authorEyal Bari <ebari@cisco.com>
Mon, 4 Dec 2017 12:04:57 +0000 (14:04 +0200)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 4 Dec 2017 13:51:40 +0000 (13:51 +0000)
Change-Id: Ic43c70bfe3e93cb3e6cfab7cda1986e44e371c06
Signed-off-by: Eyal Bari <ebari@cisco.com>
src/plugins/dpdk/device/dpdk.h
src/plugins/dpdk/device/init.c

index c3c98f8..69dd5b6 100644 (file)
@@ -364,9 +364,6 @@ typedef struct
   /* vlib buffer free list, must be same size as an rte_mbuf */
   u32 vlib_buffer_free_list_index;
 
-  /* Ethernet input node index */
-  u32 ethernet_input_node_index;
-
   /* pcap tracing [only works if (CLIB_DEBUG > 0)] */
   int tx_pcap_enable;
   pcap_main_t pcap_main;
index 416f62d..767a7a4 100755 (executable)
@@ -1558,7 +1558,6 @@ static clib_error_t *
 dpdk_init (vlib_main_t * vm)
 {
   dpdk_main_t *dm = &dpdk_main;
-  vlib_node_t *ei;
   clib_error_t *error = 0;
   vlib_thread_main_t *tm = vlib_get_thread_main ();
 
@@ -1575,12 +1574,6 @@ dpdk_init (vlib_main_t * vm)
   dm->vnet_main = vnet_get_main ();
   dm->conf = &dpdk_config_main;
 
-  ei = vlib_get_node_by_name (vm, (u8 *) "ethernet-input");
-  if (ei == 0)
-    return clib_error_return (0, "ethernet-input node AWOL");
-
-  dm->ethernet_input_node_index = ei->index;
-
   dm->conf->nchannels = 4;
   dm->conf->num_mbufs = dm->conf->num_mbufs ? dm->conf->num_mbufs : NB_MBUF;
   vec_add1 (dm->conf->eal_init_args, (u8 *) "vnet");