Advertisement
teknoraver

testpmd flows

Oct 25th, 2019
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.35 KB | None | 0 0
  1. diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c
  2. index 3caf281cb..5f4407773 100644
  3. --- a/app/test-pmd/txonly.c
  4. +++ b/app/test-pmd/txonly.c
  5. @@ -238,6 +238,9 @@ pkt_burst_transmit(struct fwd_stream *fs)
  6.     uint32_t retry;
  7.     uint64_t ol_flags = 0;
  8.     uint64_t tx_offloads;
  9. +   static uint16_t l2inc, l3inc;
  10. +   uint16_t *l2last = (uint16_t *)(eth_hdr.s_addr.addr_bytes + 4);
  11. +   uint16_t *l3last = &pkt_udp_hdr.src_port;
  12.  #ifdef RTE_TEST_PMD_RECORD_CORE_CYCLES
  13.     uint64_t start_tsc;
  14.     uint64_t end_tsc;
  15. @@ -266,6 +269,8 @@ pkt_burst_transmit(struct fwd_stream *fs)
  16.     rte_ether_addr_copy(&peer_eth_addrs[fs->peer_addr], &eth_hdr.d_addr);
  17.     rte_ether_addr_copy(&ports[fs->tx_port].eth_addr, &eth_hdr.s_addr);
  18.     eth_hdr.ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4);
  19. +   (*l2last)++;
  20. +   (*l3last)++;
  21.  
  22.     if (rte_mempool_get_bulk(mbp, (void **)pkts_burst,
  23.                 nb_pkt_per_burst) == 0) {
  24. diff --git a/config/common_linux b/config/common_linux
  25. index c5cf3d662..16e1c4f0c 100644
  26. --- a/config/common_linux
  27. +++ b/config/common_linux
  28. @@ -8,9 +8,9 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
  29.  CONFIG_RTE_EXEC_ENV_LINUXAPP=y
  30.  
  31.  CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
  32. -CONFIG_RTE_EAL_IGB_UIO=y
  33. +#CONFIG_RTE_EAL_IGB_UIO=y
  34.  CONFIG_RTE_EAL_VFIO=y
  35. -CONFIG_RTE_KNI_KMOD=y
  36. +#CONFIG_RTE_KNI_KMOD=y
  37.  CONFIG_RTE_LIBRTE_KNI=y
  38.  CONFIG_RTE_LIBRTE_PMD_KNI=y
  39.  CONFIG_RTE_LIBRTE_VHOST=y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement