dpdk arm64 :error: unknown type name ‘__m128i’

 

 

error: unknown type name ‘__m128i’

 

 

#if defined(RTE_MACHINE_CPUFLAG_SSE2)
static inline xmm_t
em_mask_key(void *key, xmm_t mask)
{
        __m128i data = _mm_loadu_si128((__m128i *)(key));

        return _mm_and_si128(data, mask);
}
#elif defined(RTE_MACHINE_CPUFLAG_NEON)
static inline xmm_t
mask_key(void *key, xmm_t mask)
{
        int32x4_t data = vld1q_s32((int32_t *)key);

        return vandq_s32(data, mask);
}
#elif defined(RTE_MACHINE_CPUFLAG_ALTIVEC)
static inline xmm_t
mask_key(void *key, xmm_t mask)
{
        xmm_t data = vec_ld(0, (xmm_t *)(key));

        return vec_and(data, mask);
}
#else
#error No vector engine (SSE, NEON, ALTIVEC) available, check your toolchain
#endif

 

[root@localhost l3fwd]# grep RTE_MACHINE_CPUFLAG_NEON -rn *
build/.l3fwd.cmd:1:cmd_l3fwd = gcc -o l3fwd  -pthread -I/data1/dpdk-19.11/lib/librte_eal/linux/eal/include   -march=armv8-a+crc -DRTE_MACHINE_CPUFLAG_NEON  -I/data1/dpdk-19.11/examples/l3fwd/build/include -DRTE_USE_FUNCTION_VERSIONING -I/data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/include -include /data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/include/rte_config.h -D_GNU_SOURCE -I/data1/dpdk-19.11/examples/l3fwd -O3  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wdeprecated -Wno-address-of-packed-member  main.o l3fwd_lpm.o l3fwd_em.o -L/data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/lib -Wl,-lrte_flow_classify -Wl,--whole-archive -Wl,-lrte_pipeline -Wl,--no-whole-archive -Wl,--whole-archive -Wl,-lrte_table -Wl,--no-whole-archive -Wl,--whole-archive -Wl,-lrte_port -Wl,--no-whole-archive -Wl,-lrte_pdump -Wl,-lrte_distributor -Wl,-lrte_ip_frag -Wl,-lrte_meter -Wl,-lrte_fib -Wl,-lrte_rib -Wl,-lrte_lpm -Wl,-lrte_acl -Wl,-lrte_jobstats -Wl,-lrte_metrics -Wl,-lrte_bitratestats -Wl,-lrte_latencystats -Wl,-lrte_power -Wl,-lrte_efd -Wl,-lrte_bpf -Wl,-lrte_ipsec -Wl,--whole-archive -Wl,-lrte_cfgfile -Wl,-lrte_gro -Wl,-lrte_gso -Wl,-lrte_hash -Wl,-lrte_member -Wl,-lrte_vhost -Wl,-lrte_kvargs -Wl,-lrte_mbuf -Wl,-lrte_net -Wl,-lrte_ethdev -Wl,-lrte_bbdev -Wl,-lrte_cryptodev -Wl,-lrte_security -Wl,-lrte_compressdev -Wl,-lrte_eventdev -Wl,-lrte_rawdev -Wl,-lrte_timer -Wl,-lrte_mempool -Wl,-lrte_stack -Wl,-lrte_mempool_ring -Wl,-lrte_ring -Wl,-lrte_pci -Wl,-lrte_eal -Wl,-lrte_cmdline -Wl,-lrte_reorder -Wl,-lrte_sched -Wl,-lrte_rcu -Wl,-lrte_kni -Wl,-lrte_common_cpt -Wl,-lrte_common_dpaax -Wl,-lrte_bus_pci -Wl,-lrte_bus_vdev -Wl,-lrte_bus_dpaa -Wl,-lrte_bus_fslmc -Wl,-lrte_mempool_bucket -Wl,-lrte_mempool_stack -Wl,-lrte_mempool_dpaa -Wl,-lrte_mempool_dpaa2 -Wl,-lrte_pmd_af_packet -Wl,-lrte_pmd_ark -Wl,-lrte_pmd_atlantic -Wl,-lrte_pmd_axgbe -Wl,-lrte_pmd_bnxt -Wl,-lrte_pmd_bond -Wl,-lrte_pmd_cxgbe -Wl,-lrte_pmd_dpaa -Wl,-lrte_pmd_dpaa2 -Wl,-lrte_pmd_e1000 -Wl,-lrte_pmd_ena -Wl,-lrte_pmd_enetc -Wl,-lrte_pmd_enic -Wl,-lrte_pmd_failsafe -Wl,-lrte_pmd_hinic -Wl,-lrte_pmd_hns3 -Wl,-lrte_pmd_i40e -Wl,-lrte_pmd_iavf -Wl,-lrte_pmd_ice -Wl,-lrte_pmd_ixgbe -Wl,-lrte_pmd_kni -Wl,-lrte_pmd_lio -Wl,-lrte_pmd_memif -Wl,-lrte_pmd_nfp -Wl,-lrte_pmd_null -Wl,-lrte_pmd_pfe -Wl,-lrte_pmd_qede -Wl,-lrte_pmd_ring -Wl,-lrte_pmd_softnic -Wl,-lrte_pmd_tap -Wl,-lrte_pmd_thunderx_nicvf -Wl,-lrte_pmd_vdev_netvsc -Wl,-lrte_pmd_virtio -Wl,-lrte_pmd_vhost -Wl,-lrte_pmd_ifc -Wl,-lrte_pmd_vmxnet3_uio -Wl,-lrte_bus_vmbus -Wl,-lrte_pmd_netvsc -Wl,-lrte_pmd_bbdev_null -Wl,-lrte_pmd_bbdev_fpga_lte_fec -Wl,-lrte_pmd_bbdev_turbo_sw -Wl,-lrte_pmd_null_crypto -Wl,-lrte_pmd_nitrox -Wl,-lrte_pmd_octeontx_crypto -Wl,-lrte_pmd_crypto_scheduler -Wl,-lrte_pmd_dpaa2_sec -Wl,-lrte_pmd_dpaa_sec -Wl,-lrte_pmd_caam_jr -Wl,-lrte_pmd_virtio_crypto -Wl,-lrte_pmd_octeontx_zip -Wl,-lrte_pmd_qat -Wl,-lrte_pmd_skeleton_event -Wl,-lrte_pmd_sw_event -Wl,-lrte_pmd_dsw_event -Wl,-lrte_pmd_dpaa_event -Wl,-lrte_pmd_dpaa2_event -Wl,-lrte_pmd_opdl_event -Wl,-lrte_rawdev_skeleton -Wl,-lrte_rawdev_dpaa2_cmdif -Wl,-lrte_rawdev_dpaa2_qdma -Wl,-lrte_bus_ifpga -Wl,-lrte_rawdev_ntb -Wl,--no-whole-archive -Wl,-lrt -Wl,-lm -Wl,-lnuma -Wl,-ldl -Wl,-export-dynamic -Wl,-export-dynamic -L/data1/dpdk-19.11/examples/l3fwd/build/lib -L/data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/lib -Wl,--as-needed -Wl,-Map=l3fwd.map -Wl,--cref 
build/.main.o.cmd:1:cmd_main.o = gcc -Wp,-MD,./.main.o.d.tmp   -pthread -I/data1/dpdk-19.11/lib/librte_eal/linux/eal/include   -march=armv8-a+crc -DRTE_MACHINE_CPUFLAG_NEON  -I/data1/dpdk-19.11/examples/l3fwd/build/include -DRTE_USE_FUNCTION_VERSIONING -I/data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/include -include /data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/include/rte_config.h -D_GNU_SOURCE -I/data1/dpdk-19.11/examples/l3fwd -O3  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wdeprecated -Wno-address-of-packed-member    -o main.o -c /data1/dpdk-19.11/examples/l3fwd/main.c 
build/.l3fwd_em.o.cmd:1:cmd_l3fwd_em.o = gcc -Wp,-MD,./.l3fwd_em.o.d.tmp   -pthread -I/data1/dpdk-19.11/lib/librte_eal/linux/eal/include   -march=armv8-a+crc -DRTE_MACHINE_CPUFLAG_NEON  -I/data1/dpdk-19.11/examples/l3fwd/build/include -DRTE_USE_FUNCTION_VERSIONING -I/data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/include -include /data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/include/rte_config.h -D_GNU_SOURCE -I/data1/dpdk-19.11/examples/l3fwd -O3  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wdeprecated -Wno-address-of-packed-member    -o l3fwd_em.o -c /data1/dpdk-19.11/examples/l3fwd/l3fwd_em.c 
build/.l3fwd_lpm.o.cmd:1:cmd_l3fwd_lpm.o = gcc -Wp,-MD,./.l3fwd_lpm.o.d.tmp   -pthread -I/data1/dpdk-19.11/lib/librte_eal/linux/eal/include   -march=armv8-a+crc -DRTE_MACHINE_CPUFLAG_NEON  -I/data1/dpdk-19.11/examples/l3fwd/build/include -DRTE_USE_FUNCTION_VERSIONING -I/data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/include -include /data1/dpdk-19.11/arm64-armv8a-linuxapp-gcc/include/rte_config.h -D_GNU_SOURCE -I/data1/dpdk-19.11/examples/l3fwd -O3  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wdeprecated -Wno-address-of-packed-member    -o l3fwd_lpm.o -c /data1/dpdk-19.11/examples/l3fwd/l3fwd_lpm.c 

 

posted on 2020-10-18 19:03  tycoon3  阅读(1400)  评论(0编辑  收藏  举报

导航