]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
async: fixed coredump when enable dpdk. 12854/head
authorPan Liu <pan.liu@istuary.com>
Tue, 10 Jan 2017 03:58:23 +0000 (11:58 +0800)
committerPan Liu <pan.liu@istuary.com>
Tue, 10 Jan 2017 03:58:23 +0000 (11:58 +0800)
Signed-off-by: Pan Liu <pan.liu@istuary.com>
src/msg/async/dpdk/DPDK.h

index b0c7ec780767e8f39c39f7f171ba1653a195f7c7..3d65a4fe0af364ee69d17ab874e7d2c54b87821f 100644 (file)
@@ -835,10 +835,8 @@ class DPDKDevice {
     string name(std::string("port") + std::to_string(port_idx));
     PerfCountersBuilder plb(cct, name, l_dpdk_dev_first, l_dpdk_dev_last);
 
-#if RTE_VERSION < RTE_VERSION_NUM(16,7,0,0)
     plb.add_u64_counter(l_dpdk_dev_rx_mcast, "dpdk_device_receive_multicast_packets", "DPDK received multicast packets");
     plb.add_u64_counter(l_dpdk_dev_rx_badcrc_errors, "dpdk_device_receive_badcrc_errors", "DPDK received bad crc errors");
-#endif
 
     plb.add_u64_counter(l_dpdk_dev_rx_total_errors, "dpdk_device_receive_total_errors", "DPDK received total_errors");
     plb.add_u64_counter(l_dpdk_dev_tx_total_errors, "dpdk_device_send_total_errors", "DPDK sendd total_errors");