网站性能测试的最佳实践 vim dpdk/app/test-pmd/txonly.c 按 i 进入编辑模式,修改以下内容: 找到 #include "testpmd.h",另起一行输入如下内容: RTE_DEFINE_PER_LCORE(struct udp_hdr, lcore_udp_hdr); 修改完成后,如下图所示: 找到 ol_flags |= PKT_TX_MACSEC;,另起一行输入如下内容: /* dummy test udp port */ static uint16_t test_port