Enable DPDK KNI code based on DPDK config
[vpp.git] / vnet / vnet / devices / dpdk / dpdk_priv.h
index 443c81c..476e705 100644 (file)
@@ -412,11 +412,13 @@ dpdk_rx_burst ( dpdk_main_t * dm, dpdk_device_t * xd, u16 queue_id)
       }
 
     }
+#ifdef RTE_LIBRTE_KNI
   else if (xd->dev_type == VNET_DPDK_DEV_KNI)
     {
       n_buffers = rte_kni_rx_burst(xd->kni, xd->rx_vectors[queue_id], VLIB_FRAME_SIZE);
       rte_kni_handle_request(xd->kni);
     }
+#endif
   else
     {
       ASSERT(0);