From: Pan Liu Date: Tue, 10 Jan 2017 03:58:23 +0000 (+0800) Subject: async: fixed coredump when enable dpdk. X-Git-Tag: v12.0.0~243^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=96046f53e9072cee8ce332392635669593335be2;p=ceph.git async: fixed coredump when enable dpdk. Signed-off-by: Pan Liu --- diff --git a/src/msg/async/dpdk/DPDK.h b/src/msg/async/dpdk/DPDK.h index b0c7ec78076..3d65a4fe0af 100644 --- a/src/msg/async/dpdk/DPDK.h +++ b/src/msg/async/dpdk/DPDK.h @@ -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");