]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/dpdk: fix icmp_hdr build error
authorChunsong Feng <fengchunsong@huawei.com>
Thu, 14 Nov 2019 01:54:21 +0000 (09:54 +0800)
committerluo rixin <luorixin@huawei.com>
Fri, 22 Nov 2019 03:27:12 +0000 (11:27 +0800)
commit3222bbd81a0e13309b783d13151d6f324d2f7879
tree0178bc9c7a539b18f5a1fb6d72745b9416c06dfd
parent64bd0e2ab46292279dbde5b8e6767991c7829ff2
msg/async/dpdk: fix icmp_hdr build error

‘struct icmp_hdr’ is defined in both IP.h and rte_icmp.h. DPDK.cc include
rte_ethdev.h that references rte_icmp.h, and include IP.h. It cause
redefinition of ‘struct icmp_hdr’ error. So move the definition of
‘struct icmp_hdr’ from IP.h to IP.cc.

Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
src/msg/async/dpdk/IP.cc
src/msg/async/dpdk/IP.h