Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c
- index 3caf281cb..5f4407773 100644
- --- a/app/test-pmd/txonly.c
- +++ b/app/test-pmd/txonly.c
- @@ -238,6 +238,9 @@ pkt_burst_transmit(struct fwd_stream *fs)
- uint32_t retry;
- uint64_t ol_flags = 0;
- uint64_t tx_offloads;
- + static uint16_t l2inc, l3inc;
- + uint16_t *l2last = (uint16_t *)(eth_hdr.s_addr.addr_bytes + 4);
- + uint16_t *l3last = &pkt_udp_hdr.src_port;
- #ifdef RTE_TEST_PMD_RECORD_CORE_CYCLES
- uint64_t start_tsc;
- uint64_t end_tsc;
- @@ -266,6 +269,8 @@ pkt_burst_transmit(struct fwd_stream *fs)
- rte_ether_addr_copy(&peer_eth_addrs[fs->peer_addr], ð_hdr.d_addr);
- rte_ether_addr_copy(&ports[fs->tx_port].eth_addr, ð_hdr.s_addr);
- eth_hdr.ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4);
- + (*l2last)++;
- + (*l3last)++;
- if (rte_mempool_get_bulk(mbp, (void **)pkts_burst,
- nb_pkt_per_burst) == 0) {
- diff --git a/config/common_linux b/config/common_linux
- index c5cf3d662..16e1c4f0c 100644
- --- a/config/common_linux
- +++ b/config/common_linux
- @@ -8,9 +8,9 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
- CONFIG_RTE_EXEC_ENV_LINUXAPP=y
- CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
- -CONFIG_RTE_EAL_IGB_UIO=y
- +#CONFIG_RTE_EAL_IGB_UIO=y
- CONFIG_RTE_EAL_VFIO=y
- -CONFIG_RTE_KNI_KMOD=y
- +#CONFIG_RTE_KNI_KMOD=y
- CONFIG_RTE_LIBRTE_KNI=y
- CONFIG_RTE_LIBRTE_PMD_KNI=y
- CONFIG_RTE_LIBRTE_VHOST=y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement