} gmon_main_t;
-#if DPDK == 0
-static inline u64
-vnet_get_aggregate_rx_packets (void)
-{
- return 0;
-}
-#else
#include <vlib/vlib.h>
#include <vnet/vnet.h>
-#include <vnet/devices/dpdk/dpdk.h>
-#endif
+#include <vnet/devices/devices.h>
gmon_main_t gmon_main;
*gm->vector_rate_ptr = vector_rate;
now = vlib_time_now (vm);
dt = now - last_runtime;
- input_packets = vnet_get_aggregate_rx_packets ();
+ // TODO
+ //input_packets = vnet_get_aggregate_rx_packets ();
*gm->input_rate_ptr = (f64) (input_packets - last_input_packets) / dt;
last_runtime = now;
last_input_packets = input_packets;