pktgen / Pktgen-DPDK

DPDK based packet generator
Other
390 stars 120 forks source link

Generated traffic under Errors TX using Pktgen 24.05.4 #260

Closed maxvanliefde closed 6 months ago

maxvanliefde commented 6 months ago

Hi, I updated Pktgen to the latest available version (Pktgen 24.05.4). I'm able to compile it using the lastest version of DPDK (24.07.0-rc0) on Ubuntu 22.04. However, when running Pktgen, all generated traffic is reported under Errors Tx. Packets are not received on the other server.

Here is the output I get:

$ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ./usr/local/bin/pktgen -n 4 -a 0000:01:00.1 --file-prefix max -l 0-8 -- -m [1/2/3:5/6/7].0 -P -v
*** Copyright(c) <2010-2024>, Intel Corporation. All rights reserved.
*** Pktgen  created by: Keith Wiles -- >>> Powered by <<<

EAL: Detected CPU lcores: 16
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/max/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:01:00.1 (socket -1)
ice_load_pkg_type(): Active package is: 1.3.26.0, ICE OS Default Package (single VLAN mode)
TELEMETRY: No legacy callbacks, legacy socket not created
  Create: 'RX-L1/P0/S4294967295' - Memory used (MBUFs 16,384 x size  2,176) =   34,817 KB @ 0x17f87c5c0
  Create: 'TX-L1/P0/S4294967295' - Memory used (MBUFs 16,384 x size  2,176) =   34,817 KB @ 0x17d239640
  Create: 'SP-L1/P0/S4294967295' - Memory used (MBUFs  1,024 x size  2,176) =    2,177 KB @ 0x17acf86c0
                                                      Total memory used =   71,811 KB
>>> Packet Max Burst 128/128, RX Desc 1024, TX Desc 2048, mbufs/port 24576, mbuf cache 128
Initialize Port 0 ...
                                                         Port memory used =  71811 KB
** Device Info (0000:01:00.1, if_index:0, flags 00000066) **
   min_rx_bufsize : 1024  max_rx_pktlen     : 9728  hash_key_size :   52
   max_rx_queues  :  256  max_tx_queues     :  256  max_vfs       :    0
   max_mac_addrs  :   64  max_hash_mac_addrs:    0  max_vmdq_pools:    0
   vmdq_queue_base:    0  vmdq_queue_num    :    0  vmdq_pool_base:    0
   nb_rx_queues   :    1  nb_tx_queues      :    1  speed_capa    : 000057f4

   flow_type_rss_offloads:0000000000007ffc  reta_size             :  512
   rx_offload_capa       :VLAN_STRIP IPV4_CKSUM UDP_CKSUM TCP_CKSUM QINQ_STRIP OUTER_IPV4_CKSUM VLAN_FILTER VLAN_EXTEND SCATTER TIMESTAMP KEEP_CRC RSS_HASH BUFFER_SPLIT
   tx_offload_capa       :VLAN_INSERT IPV4_CKSUM UDP_CKSUM TCP_CKSUM SCTP_CKSUM TCP_TSO OUTER_IPV4_CKSUM QINQ_INSERT VXLAN_TNL_TSO GRE_TNL_TSO IPIP_TNL_TSO GENEVE_TNL_TSO MULTI_SEGS MBUF_FAST_
FREE OUTER_UDP_CKSUM
   rx_queue_offload_capa :0000000000100000  tx_queue_offload_capa :0000000000010000
   dev_capa              :0000000000000000
                                                                                                                                                                                       [76/1820]
  RX Conf:
     pthresh        :    8 hthresh          :    8 wthresh        :    0
     Free Thresh    :   32 Drop Enable      :    0 Deferred Start :    0
     offloads       :0000000000000000
  TX Conf:
     pthresh        :   32 hthresh          :    0 wthresh        :    0
     Free Thresh    :   32 RS Thresh        :   32 Deferred Start :    0
     offloads       :0000000000000000
  Rx: descriptor Limits
     nb_max         : 4096  nb_min          :   64  nb_align      :   32
     nb_seg_max     :    0  nb_mtu_seg_max  :    0
  Tx: descriptor Limits
     nb_max         : 4096  nb_min          :   64  nb_align      :   32
     nb_seg_max     : 4096  nb_mtu_seg_max  :    8
  Rx: Port Config
     burst_size     :   32  ring_size       : 1024  nb_queues     :    1
  Tx: Port Config
     burst_size     :   32  ring_size       : 1024  nb_queues     :    1
  Switch Info: (null)
     domain_id      :65535  port_id         :    0

ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 0).
ice_vsi_config_outer_vlan_stripping(): Single VLAN mode (SVM) does not support qinq

Port DevName          Index NUMA PCI Information   Src MAC           Promiscuous
  0  net_ice              0   -1 8086:1592/0000:01:00.1 6c:b3:11:21:c6:31 <Enabled>

=== Display processing on lcore 0
RX lid   1, pid  0, qid  0, Mempool RX-L1/P0/S4294967295 @ 0x17f87c5c0
*** Logical core   2 has no work, skipping launch
*** Logical core   3 has no work, skipping launch
*** Logical core   4 has no work, skipping launch
TX lid   5, pid  0, qid  0, Mempool TX-L1/P0/S4294967295 @ 0x17d239640
*** Logical core   6 has no work, skipping launch
*** Logical core   7 has no work, skipping launch
| <Main Page> Ports 0-0 of 1  Copyright(c) <2010-2024>, Intel Corporation

Port:Flags          :   0:P------        Unkn                                                                                                                                           [0/1820]
Link State          :          <UP-100000-FD>        ---Total Rate---
Pkts/s Rx           :                       0                       0
       Tx           :                       0                       0
MBits/s Rx/Tx       :                     0/0                     0/0
Total Rx Pkts       :                       4                       2
      Tx Pkts       :                       0                       0
      Rx/Tx MBs     :                     0/0
Pkts/s Rx Max       :                       2
       Tx Max       :                       0
Errors Rx/Tx        :           3/168,342,656
Broadcast           :                       0
Multicast           :                      64
Sizes 64            :                       0
      65-127        :                      64
      128-255       :                       0
      256-511       :                       0
      512-1023      :                       0
      1024-1518     :                       0
Runts/Jumbos        :                     0/0
ARP/ICMP Pkts       :                     0/0
Tx Count/% Rate     :           Forever /100%
Pkt Size/Rx:Tx Burst:             64 / 64: 32
Port Src/Dest       :              1234/ 5678
Pkt Type:VLAN ID    :         IPv4 / TCP:0001
IP  Destination     :             192.168.1.1
    Source          :          192.168.0.1/24
MAC Destination     :       6c:b3:11:21:c6:31
    Source          :       6c:b3:11:21:c6:31
NUMA/Vend:ID/PCI    :-1/8086:1592/0000:01:00.1
-- Pktgen 24.05.4  Powered by DPDK 24.07.0-rc0 (pid:612017) -------------------

** Version: DPDK 24.07.0-rc0, Command Line Interface
Pktgen:/> str

As a matter of comparison, here is the output I had using Pktgen 23.06.1 and DPDK 23.03.0 :

$ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ./usr/local/bin/pktgen -n 4 -a 0000:01:00.1 --file-prefix max -l 0-8 -- -m [1/2/3:5/6/7].0 -P -v

*** Copyright(c) <2010-2023>, Intel Corporation. All rights reserved.
*** Pktgen  created by: Keith Wiles -- >>> Powered by DPDK <<<

EAL: Detected CPU lcores: 16
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/max/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:01:00.1 (socket -1)
ice_load_pkg_type(): Active package is: 1.3.26.0, ICE OS Default Package (single VLAN mode)
TELEMETRY: No legacy callbacks, legacy socket not created
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio
>>> Packet Max Burst 128/128, RX Desc 1024, TX Desc 2048, mbufs/port 24576, mbuf cache 128
    0: net_ice         0     -1   8086:1592/0000:01:00.1

=== port to lcore mapping table (# lcores 9) ===
   lcore:    0       1       2       3       4       5       6       7       8      Total
port   0: ( D: T) ( 1: 0) ( 1: 0) ( 1: 0) ( 0: 0) ( 0: 1) ( 0: 1) ( 0: 1) ( 0: 0) = ( 3: 3)
Total   : ( 0: 0) ( 1: 0) ( 1: 0) ( 1: 0) ( 0: 0) ( 0: 1) ( 0: 1) ( 0: 1) ( 0: 0)
  Display and Timer on lcore 0, rx:tx counts per port/lcore
>>>> Configuring 1 ports, MBUF Size 10240, MBUF Cache Size 128
Lcore:
    1, RX-Only
                RX_cnt( 1): (pid= 0:qid= 0)
    2, RX-Only
                RX_cnt( 1): (pid= 0:qid= 1)
    3, RX-Only
                RX_cnt( 1): (pid= 0:qid= 2)
    5, TX-Only
                TX_cnt( 1): (pid= 0:qid= 0)
    6, TX-Only
                TX_cnt( 1): (pid= 0:qid= 1)
    7, TX-Only
                TX_cnt( 1): (pid= 0:qid= 2)

Port :
    0, nb_lcores  6, private 0x5568fa7f3f40, lcores:  1  2  3  5  6  7

Initialize Port 0 -- TxQ 3, RxQ 3
** Device Info (0000:01:00.1, if_index:0, flags 00000066) **
   min_rx_bufsize : 1024  max_rx_pktlen     : 9728  hash_key_size :   52
   max_rx_queues  :  256  max_tx_queues     :  256  max_vfs       :    0
   max_mac_addrs  :   64  max_hash_mac_addrs:    0  max_vmdq_pools:    0
   vmdq_queue_base:    0  vmdq_queue_num    :    0  vmdq_pool_base:    0
   nb_rx_queues   :    0  nb_tx_queues      :    0  speed_capa    : 000057f4

   flow_type_rss_offloads:0000000000007ffc  reta_size             :  512
   rx_offload_capa       :VLAN_STRIP IPV4_CKSUM UDP_CKSUM TCP_CKSUM QINQ_STRIP OUTER_IPV4_CKSUM VLAN_FILTER VLAN_EXTEND SCATTER TIMESTAMP KEEP_CRC RSS_HASH BUFFER_SPLIT
   tx_offload_capa       :VLAN_INSERT IPV4_CKSUM UDP_CKSUM TCP_CKSUM SCTP_CKSUM TCP_TSO OUTER_IPV4_CKSUM QINQ_INSERT MULTI_SEGS MBUF_FAST_FREE OUTER_UDP_CKSUM
   rx_queue_offload_capa :0000000000100000  tx_queue_offload_capa :0000000000010000
   dev_capa              :0000000000000000

  RX Conf:
     pthresh        :    8 hthresh          :    8 wthresh        :    0
     Free Thresh    :   32 Drop Enable      :    0 Deferred Start :    0
     offloads       :0000000000000000
  TX Conf:
     pthresh        :   32 hthresh          :    0 wthresh        :    0
     Free Thresh    :   32 RS Thresh        :   32 Deferred Start :    0
     offloads       :0000000000000000
  Rx: descriptor Limits
     nb_max         : 4096  nb_min          :   64  nb_align      :   32
     nb_seg_max     :    0  nb_mtu_seg_max  :    0
  Tx: descriptor Limits
     nb_max         : 4096  nb_min          :   64  nb_align      :   32
     nb_seg_max     :    0  nb_mtu_seg_max  :    0
  Rx: Port Config
     burst_size     :   32  ring_size       : 1024  nb_queues     :    1
  Tx: Port Config
     burst_size     :   32  ring_size       : 1024  nb_queues     :    1
  Switch Info: (null)
     domain_id      :65535  port_id         :    0

    Create: 'Default RX  0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Default RX  0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Default RX  0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Special TX  0:0 ' - Memory used (MBUFs   1024 x size  10240) =  10241 KB

    Create: 'Default TX  0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Range TX    0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Rate TX     0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Sequence TX 0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB

    Create: 'Default TX  0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Range TX    0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Rate TX     0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Sequence TX 0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB

    Create: 'Default TX  0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Range TX    0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Rate TX     0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
    Create: 'Sequence TX 0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB

                                                                       Port memory used = 3696656 KB
Src MAC 6c:b3:11:21:c6:31
 <Promiscuous mode Enabled>

                                                                      Total memory used = 3696656 KB
ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 0).

=== Display processing on lcore 0
WARNING: Nothing to do on lcore 4: exiting
WARNING: Nothing to do on lcore 8: exiting
  RX processing lcore:   1 rx:  1 tx:  0
  Using port/qid 0/0 for Rx on lcore id 1

  RX processing lcore:   2 rx:  1 tx:  0
  Using port/qid 0/1 for Rx on lcore id 2

  RX processing lcore:   3 rx:  1 tx:  0
  Using port/qid 0/2 for Rx on lcore id 3

  TX processing lcore:   5 rx:  0 tx:  1
  Using port/qid 0/0 for Tx on lcore id 5

  TX processing lcore:   6 rx:  0 tx:  1
  Using port/qid 0/1 for Tx on lcore id 6

  TX processing lcore:   7 rx:  0 tx:  1
  Using port/qid 0/2 for Tx on lcore id 7

\ Ports 0-0 of 1   <Main Page>  Copyright(c) <2010-2023>, Intel Corporation
  Port:Flags        : 0:P------      Single
Link State          :        <UP-100000-FD>     ---Total Rate---
Pkts/s Rx           :                     1                    1
       Tx           :            66,270,641           66,270,641
MBits/s Rx/Tx       :              0/44,533             0/44,533
Pkts/s Rx Max       :                     4                    4
       Tx Max       :            76,192,062           76,192,062
Broadcast           :                     0
Multicast           :                     2
Sizes 64            :                     0
      65-127        :                     4
      128-255       :                     0
      256-511       :                     2
      512-1023      :                     0
      1024-1518     :                     0
Runts/Jumbos        :                   0/0
ARP/ICMP Pkts       :                   0/0
Errors Rx/Tx        :                   0/0
Total Rx Pkts       :                     6
      Tx Pkts       :           263,026,813
      Rx/Tx MBs     :             0/176,753
TCP Flags           :                .A....
TCP Seq/Ack         :           74616/74640
Pattern Type        :               abcd...
Tx Count/% Rate     :         Forever /100%
Pkt Size/Rx:Tx Burst:           64 / 64: 64
TTL/Port Src/Dest   :        64/ 1234/ 5678
Pkt Type:VLAN ID    :       IPv4 / TCP:0001
802.1p CoS/DSCP/IPP :             0/  0/  0
VxLAN Flg/Grp/vid   :      0000/    0/    0
IP  Destination     :           192.168.1.1
    Source          :        192.168.0.1/24
MAC Destination     :     00:00:00:00:00:00
    Source          :     6c:b3:11:21:c6:31
NUMA/Vend:ID/PCI    :-1/8086:1592/0000:01:00.1
-- Pktgen 23.06.1 (DPDK 23.03.0)  Powered by DPDK  (pid:612165) ---------------

** Version: DPDK 23.03.0, Command Line Interface without timers
Pktgen:/> str

Card is binded using DPDK-compatible driver:

$ ./dpdk/usertools/dpdk-devbind.py --status

Network devices using DPDK-compatible driver
============================================
0000:01:00.0 'Ethernet Controller E810-C for QSFP 1592' drv=uio_pci_generic unused=ice,vfio-pci
0000:01:00.1 'Ethernet Controller E810-C for QSFP 1592' drv=uio_pci_generic unused=ice,vfio-pci

I also notice that when using the latest version, only cores 1 and 5 are used, while when using version 23.03.0, cores 1,2,3,5,6,7 are used as expected.

Do you have any idea where the problem might be coming from?

Thanks in advance for your time. Regards, Max

pktgen commented 6 months ago

The errors are from the NIC because the NIC detects suspicious frames. Try changing the destination MAC address to some other address. I believe the NIC is counting them as errors because the packets are invalid. The NIC has hardware to verify something is not spoofing packet and other suspected type packets. Sent from my iPhoneOn May 26, 2024, at 11:02 AM, Maxime Vanliefde @.> wrote: Hi, I updated Pktgen to the latest available version (Pktgen 24.05.4). I'm able to compile it using the lastest version of DPDK (24.07.0-rc0) on Ubuntu 22.04. However, when running Pktgen, all generated traffic is reported under Errors Tx. Packets are not received on the other server. Here is the output I get: $ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ./usr/local/bin/pktgen -n 4 -a 0000:01:00.1 --file-prefix max -l 0-8 -- -m [1/2/3:5/6/7].0 -P -v Copyright(c) <2010-2024>, Intel Corporation. All rights reserved. *** Pktgen created by: Keith Wiles -- >>> Powered by <<<

EAL: Detected CPU lcores: 16 EAL: Detected NUMA nodes: 1 EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/max/mp_socket EAL: Selected IOVA mode 'PA' EAL: VFIO support initialized EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:01:00.1 (socket -1) ice_load_pkg_type(): Active package is: 1.3.26.0, ICE OS Default Package (single VLAN mode) TELEMETRY: No legacy callbacks, legacy socket not created Create: 'RX-L1/P0/S4294967295' - Memory used (MBUFs 16,384 x size 2,176) = 34,817 KB @ 0x17f87c5c0 Create: 'TX-L1/P0/S4294967295' - Memory used (MBUFs 16,384 x size 2,176) = 34,817 KB @ 0x17d239640 Create: 'SP-L1/P0/S4294967295' - Memory used (MBUFs 1,024 x size 2,176) = 2,177 KB @ 0x17acf86c0 Total memory used = 71,811 KB

Packet Max Burst 128/128, RX Desc 1024, TX Desc 2048, mbufs/port 24576, mbuf cache 128 Initialize Port 0 ... Port memory used = 71811 KB Device Info (0000:01:00.1, if_index:0, flags 00000066) min_rx_bufsize : 1024 max_rx_pktlen : 9728 hash_key_size : 52 max_rx_queues : 256 max_tx_queues : 256 max_vfs : 0 max_mac_addrs : 64 max_hash_mac_addrs: 0 max_vmdq_pools: 0 vmdq_queue_base: 0 vmdq_queue_num : 0 vmdq_pool_base: 0 nb_rx_queues : 1 nb_tx_queues : 1 speed_capa : 000057f4

flow_type_rss_offloads:0000000000007ffc reta_size : 512 rx_offload_capa :VLAN_STRIP IPV4_CKSUM UDP_CKSUM TCP_CKSUM QINQ_STRIP OUTER_IPV4_CKSUM VLAN_FILTER VLAN_EXTEND SCATTER TIMESTAMP KEEP_CRC RSS_HASH BUFFER_SPLIT tx_offload_capa :VLAN_INSERT IPV4_CKSUM UDP_CKSUM TCP_CKSUM SCTP_CKSUM TCP_TSO OUTER_IPV4_CKSUM QINQ_INSERT VXLAN_TNL_TSO GRE_TNL_TSO IPIP_TNL_TSO GENEVE_TNL_TSO MULTI_SEGS MBUFFAST FREE OUTER_UDP_CKSUM rx_queue_offload_capa :0000000000100000 tx_queue_offload_capa :0000000000010000 dev_capa :0000000000000000 [76/1820] RX Conf: pthresh : 8 hthresh : 8 wthresh : 0 Free Thresh : 32 Drop Enable : 0 Deferred Start : 0 offloads :0000000000000000 TX Conf: pthresh : 32 hthresh : 0 wthresh : 0 Free Thresh : 32 RS Thresh : 32 Deferred Start : 0 offloads :0000000000000000 Rx: descriptor Limits nb_max : 4096 nb_min : 64 nb_align : 32 nb_seg_max : 0 nb_mtu_seg_max : 0 Tx: descriptor Limits nb_max : 4096 nb_min : 64 nb_align : 32 nb_seg_max : 4096 nb_mtu_seg_max : 8 Rx: Port Config burst_size : 32 ring_size : 1024 nb_queues : 1 Tx: Port Config burst_size : 32 ring_size : 1024 nb_queues : 1 Switch Info: (null) domain_id :65535 port_id : 0

ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 0). ice_vsi_config_outer_vlan_stripping(): Single VLAN mode (SVM) does not support qinq

Port DevName Index NUMA PCI Information Src MAC Promiscuous 0 net_ice 0 -1 8086:1592/0000:01:00.1 6c:b3:11:21:c6:31

=== Display processing on lcore 0 RX lid 1, pid 0, qid 0, Mempool RX-L1/P0/S4294967295 @ 0x17f87c5c0 Logical core 2 has no work, skipping launch Logical core 3 has no work, skipping launch Logical core 4 has no work, skipping launch TX lid 5, pid 0, qid 0, Mempool TX-L1/P0/S4294967295 @ 0x17d239640 Logical core 6 has no work, skipping launch *** Logical core 7 has no work, skipping launch |

Ports 0-0 of 1 Copyright(c) <2010-2024>, Intel Corporation

Port:Flags : 0:P------ Unkn [0/1820] Link State : ---Total Rate--- Pkts/s Rx : 0 0 Tx : 0 0 MBits/s Rx/Tx : 0/0 0/0 Total Rx Pkts : 4 2 Tx Pkts : 0 0 Rx/Tx MBs : 0/0 Pkts/s Rx Max : 2 Tx Max : 0 Errors Rx/Tx : 3/168,342,656 Broadcast : 0 Multicast : 64 Sizes 64 : 0 65-127 : 64 128-255 : 0 256-511 : 0 512-1023 : 0 1024-1518 : 0 Runts/Jumbos : 0/0 ARP/ICMP Pkts : 0/0 Tx Count/% Rate : Forever /100% Pkt Size/Rx:Tx Burst: 64 / 64: 32 Port Src/Dest : 1234/ 5678 Pkt Type:VLAN ID : IPv4 / TCP:0001 IP Destination : 192.168.1.1 Source : 192.168.0.1/24 MAC Destination : 6c:b3:11:21:c6:31 Source : 6c:b3:11:21:c6:31 NUMA/Vend:ID/PCI :-1/8086:1592/0000:01:00.1 -- Pktgen 24.05.4 Powered by DPDK 24.07.0-rc0 (pid:612017) -------------------

** Version: DPDK 24.07.0-rc0, Command Line Interface Pktgen:/> str

As a matter of comparison, here is the output I had using Pktgen 23.06.1 and DPDK 23.03.0 : $ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ./usr/local/bin/pktgen -n 4 -a 0000:01:00.1 --file-prefix max -l 0-8 -- -m [1/2/3:5/6/7].0 -P -v

Copyright(c) <2010-2023>, Intel Corporation. All rights reserved. Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<

EAL: Detected CPU lcores: 16 EAL: Detected NUMA nodes: 1 EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/max/mp_socket EAL: Selected IOVA mode 'PA' EAL: VFIO support initialized EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:01:00.1 (socket -1) ice_load_pkg_type(): Active package is: 1.3.26.0, ICE OS Default Package (single VLAN mode) TELEMETRY: No legacy callbacks, legacy socket not created Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio

Packet Max Burst 128/128, RX Desc 1024, TX Desc 2048, mbufs/port 24576, mbuf cache 128 0: net_ice 0 -1 8086:1592/0000:01:00.1

=== port to lcore mapping table (# lcores 9) === lcore: 0 1 2 3 4 5 6 7 8 Total port 0: ( D: T) ( 1: 0) ( 1: 0) ( 1: 0) ( 0: 0) ( 0: 1) ( 0: 1) ( 0: 1) ( 0: 0) = ( 3: 3) Total : ( 0: 0) ( 1: 0) ( 1: 0) ( 1: 0) ( 0: 0) ( 0: 1) ( 0: 1) ( 0: 1) ( 0: 0) Display and Timer on lcore 0, rx:tx counts per port/lcore

Configuring 1 ports, MBUF Size 10240, MBUF Cache Size 128 Lcore: 1, RX-Only RX_cnt( 1): (pid= 0:qid= 0) 2, RX-Only RX_cnt( 1): (pid= 0:qid= 1) 3, RX-Only RX_cnt( 1): (pid= 0:qid= 2) 5, TX-Only TX_cnt( 1): (pid= 0:qid= 0) 6, TX-Only TX_cnt( 1): (pid= 0:qid= 1) 7, TX-Only TX_cnt( 1): (pid= 0:qid= 2)

Port : 0, nb_lcores 6, private 0x5568fa7f3f40, lcores: 1 2 3 5 6 7

Initialize Port 0 -- TxQ 3, RxQ 3 Device Info (0000:01:00.1, if_index:0, flags 00000066) min_rx_bufsize : 1024 max_rx_pktlen : 9728 hash_key_size : 52 max_rx_queues : 256 max_tx_queues : 256 max_vfs : 0 max_mac_addrs : 64 max_hash_mac_addrs: 0 max_vmdq_pools: 0 vmdq_queue_base: 0 vmdq_queue_num : 0 vmdq_pool_base: 0 nb_rx_queues : 0 nb_tx_queues : 0 speed_capa : 000057f4

flow_type_rss_offloads:0000000000007ffc reta_size : 512 rx_offload_capa :VLAN_STRIP IPV4_CKSUM UDP_CKSUM TCP_CKSUM QINQ_STRIP OUTER_IPV4_CKSUM VLAN_FILTER VLAN_EXTEND SCATTER TIMESTAMP KEEP_CRC RSS_HASH BUFFER_SPLIT tx_offload_capa :VLAN_INSERT IPV4_CKSUM UDP_CKSUM TCP_CKSUM SCTP_CKSUM TCP_TSO OUTER_IPV4_CKSUM QINQ_INSERT MULTI_SEGS MBUF_FAST_FREE OUTER_UDP_CKSUM rx_queue_offload_capa :0000000000100000 tx_queue_offload_capa :0000000000010000 dev_capa :0000000000000000

RX Conf: pthresh : 8 hthresh : 8 wthresh : 0 Free Thresh : 32 Drop Enable : 0 Deferred Start : 0 offloads :0000000000000000 TX Conf: pthresh : 32 hthresh : 0 wthresh : 0 Free Thresh : 32 RS Thresh : 32 Deferred Start : 0 offloads :0000000000000000 Rx: descriptor Limits nb_max : 4096 nb_min : 64 nb_align : 32 nb_seg_max : 0 nb_mtu_seg_max : 0 Tx: descriptor Limits nb_max : 4096 nb_min : 64 nb_align : 32 nb_seg_max : 0 nb_mtu_seg_max : 0 Rx: Port Config burst_size : 32 ring_size : 1024 nb_queues : 1 Tx: Port Config burst_size : 32 ring_size : 1024 nb_queues : 1 Switch Info: (null) domain_id :65535 port_id : 0

Create: 'Default RX  0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Default RX  0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Default RX  0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Special TX  0:0 ' - Memory used (MBUFs   1024 x size  10240) =  10241 KB

Create: 'Default TX  0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Range TX    0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Rate TX     0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Sequence TX 0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB

Create: 'Default TX  0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Range TX    0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Rate TX     0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Sequence TX 0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB

Create: 'Default TX  0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Range TX    0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Rate TX     0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Sequence TX 0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB

                                                                   Port memory used = 3696656 KB

Src MAC 6c:b3:11:21:c6:31

Total memory used = 3696656 KB ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 0). === Display processing on lcore 0 WARNING: Nothing to do on lcore 4: exiting WARNING: Nothing to do on lcore 8: exiting RX processing lcore: 1 rx: 1 tx: 0 Using port/qid 0/0 for Rx on lcore id 1 RX processing lcore: 2 rx: 1 tx: 0 Using port/qid 0/1 for Rx on lcore id 2 RX processing lcore: 3 rx: 1 tx: 0 Using port/qid 0/2 for Rx on lcore id 3 TX processing lcore: 5 rx: 0 tx: 1 Using port/qid 0/0 for Tx on lcore id 5 TX processing lcore: 6 rx: 0 tx: 1 Using port/qid 0/1 for Tx on lcore id 6 TX processing lcore: 7 rx: 0 tx: 1 Using port/qid 0/2 for Tx on lcore id 7 \ Ports 0-0 of 1
Copyright(c) <2010-2023>, Intel Corporation Port:Flags : 0:P------ Single Link State : ---Total Rate--- Pkts/s Rx : 1 1 Tx : 66,270,641 66,270,641 MBits/s Rx/Tx : 0/44,533 0/44,533 Pkts/s Rx Max : 4 4 Tx Max : 76,192,062 76,192,062 Broadcast : 0 Multicast : 2 Sizes 64 : 0 65-127 : 4 128-255 : 0 256-511 : 2 512-1023 : 0 1024-1518 : 0 Runts/Jumbos : 0/0 ARP/ICMP Pkts : 0/0 Errors Rx/Tx : 0/0 Total Rx Pkts : 6 Tx Pkts : 263,026,813 Rx/Tx MBs : 0/176,753 TCP Flags : .A.... TCP Seq/Ack : 74616/74640 Pattern Type : abcd... Tx Count/% Rate : Forever /100% Pkt Size/Rx:Tx Burst: 64 / 64: 64 TTL/Port Src/Dest : 64/ 1234/ 5678 Pkt Type:VLAN ID : IPv4 / TCP:0001 802.1p CoS/DSCP/IPP : 0/ 0/ 0 VxLAN Flg/Grp/vid : 0000/ 0/ 0 IP Destination : 192.168.1.1 Source : 192.168.0.1/24 MAC Destination : 00:00:00:00:00:00 Source : 6c:b3:11:21:c6:31 NUMA/Vend:ID/PCI :-1/8086:1592/0000:01:00.1 -- Pktgen 23.06.1 (DPDK 23.03.0) Powered by DPDK (pid:612165) --------------- ** Version: DPDK 23.03.0, Command Line Interface without timers Pktgen:/> str Card is binded using DPDK-compatible driver: $ ./dpdk/usertools/dpdk-devbind.py --status Network devices using DPDK-compatible driver ============================================ 0000:01:00.0 'Ethernet Controller E810-C for QSFP 1592' drv=uio_pci_generic unused=ice,vfio-pci 0000:01:00.1 'Ethernet Controller E810-C for QSFP 1592' drv=uio_pci_generic unused=ice,vfio-pci I also notice that when using the latest version, only cores 1 and 5 are used, while when using version 23.03.0, cores 1,2,3,5,6,7 are used as expected. Do you have any idea where the problem might be coming from? Thanks in advance for your time. Regards, Max —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
pktgen commented 6 months ago

The errors are from the NIC because the NIC detects suspicious frames. Try changing the destination MAC address to some other address. I believe the NIC is counting them as errors because the packets are invalid. The NIC has hardware to verify something is not spoofing packet and other suspected type packets. Try using -m [2-4:5-7].0You gave cores 0-8 to dpdk but believed you may only have 8 cores if that correct the use -l 1-7 this give pktgen core 1 for display and timers which leaves 2-7 for the port. Sent from my iPhoneOn May 26, 2024, at 11:02 AM, Maxime Vanliefde @.> wrote: Hi, I updated Pktgen to the latest available version (Pktgen 24.05.4). I'm able to compile it using the lastest version of DPDK (24.07.0-rc0) on Ubuntu 22.04. However, when running Pktgen, all generated traffic is reported under Errors Tx. Packets are not received on the other server. Here is the output I get: $ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ./usr/local/bin/pktgen -n 4 -a 0000:01:00.1 --file-prefix max -l 0-8 -- -m [1/2/3:5/6/7].0 -P -v Copyright(c) <2010-2024>, Intel Corporation. All rights reserved. *** Pktgen created by: Keith Wiles -- >>> Powered by <<<

EAL: Detected CPU lcores: 16 EAL: Detected NUMA nodes: 1 EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/max/mp_socket EAL: Selected IOVA mode 'PA' EAL: VFIO support initialized EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:01:00.1 (socket -1) ice_load_pkg_type(): Active package is: 1.3.26.0, ICE OS Default Package (single VLAN mode) TELEMETRY: No legacy callbacks, legacy socket not created Create: 'RX-L1/P0/S4294967295' - Memory used (MBUFs 16,384 x size 2,176) = 34,817 KB @ 0x17f87c5c0 Create: 'TX-L1/P0/S4294967295' - Memory used (MBUFs 16,384 x size 2,176) = 34,817 KB @ 0x17d239640 Create: 'SP-L1/P0/S4294967295' - Memory used (MBUFs 1,024 x size 2,176) = 2,177 KB @ 0x17acf86c0 Total memory used = 71,811 KB

Packet Max Burst 128/128, RX Desc 1024, TX Desc 2048, mbufs/port 24576, mbuf cache 128 Initialize Port 0 ... Port memory used = 71811 KB Device Info (0000:01:00.1, if_index:0, flags 00000066) min_rx_bufsize : 1024 max_rx_pktlen : 9728 hash_key_size : 52 max_rx_queues : 256 max_tx_queues : 256 max_vfs : 0 max_mac_addrs : 64 max_hash_mac_addrs: 0 max_vmdq_pools: 0 vmdq_queue_base: 0 vmdq_queue_num : 0 vmdq_pool_base: 0 nb_rx_queues : 1 nb_tx_queues : 1 speed_capa : 000057f4

flow_type_rss_offloads:0000000000007ffc reta_size : 512 rx_offload_capa :VLAN_STRIP IPV4_CKSUM UDP_CKSUM TCP_CKSUM QINQ_STRIP OUTER_IPV4_CKSUM VLAN_FILTER VLAN_EXTEND SCATTER TIMESTAMP KEEP_CRC RSS_HASH BUFFER_SPLIT tx_offload_capa :VLAN_INSERT IPV4_CKSUM UDP_CKSUM TCP_CKSUM SCTP_CKSUM TCP_TSO OUTER_IPV4_CKSUM QINQ_INSERT VXLAN_TNL_TSO GRE_TNL_TSO IPIP_TNL_TSO GENEVE_TNL_TSO MULTI_SEGS MBUFFAST FREE OUTER_UDP_CKSUM rx_queue_offload_capa :0000000000100000 tx_queue_offload_capa :0000000000010000 dev_capa :0000000000000000 [76/1820] RX Conf: pthresh : 8 hthresh : 8 wthresh : 0 Free Thresh : 32 Drop Enable : 0 Deferred Start : 0 offloads :0000000000000000 TX Conf: pthresh : 32 hthresh : 0 wthresh : 0 Free Thresh : 32 RS Thresh : 32 Deferred Start : 0 offloads :0000000000000000 Rx: descriptor Limits nb_max : 4096 nb_min : 64 nb_align : 32 nb_seg_max : 0 nb_mtu_seg_max : 0 Tx: descriptor Limits nb_max : 4096 nb_min : 64 nb_align : 32 nb_seg_max : 4096 nb_mtu_seg_max : 8 Rx: Port Config burst_size : 32 ring_size : 1024 nb_queues : 1 Tx: Port Config burst_size : 32 ring_size : 1024 nb_queues : 1 Switch Info: (null) domain_id :65535 port_id : 0

ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 0). ice_vsi_config_outer_vlan_stripping(): Single VLAN mode (SVM) does not support qinq

Port DevName Index NUMA PCI Information Src MAC Promiscuous 0 net_ice 0 -1 8086:1592/0000:01:00.1 6c:b3:11:21:c6:31

=== Display processing on lcore 0 RX lid 1, pid 0, qid 0, Mempool RX-L1/P0/S4294967295 @ 0x17f87c5c0 Logical core 2 has no work, skipping launch Logical core 3 has no work, skipping launch Logical core 4 has no work, skipping launch TX lid 5, pid 0, qid 0, Mempool TX-L1/P0/S4294967295 @ 0x17d239640 Logical core 6 has no work, skipping launch *** Logical core 7 has no work, skipping launch |

Ports 0-0 of 1 Copyright(c) <2010-2024>, Intel Corporation

Port:Flags : 0:P------ Unkn [0/1820] Link State : ---Total Rate--- Pkts/s Rx : 0 0 Tx : 0 0 MBits/s Rx/Tx : 0/0 0/0 Total Rx Pkts : 4 2 Tx Pkts : 0 0 Rx/Tx MBs : 0/0 Pkts/s Rx Max : 2 Tx Max : 0 Errors Rx/Tx : 3/168,342,656 Broadcast : 0 Multicast : 64 Sizes 64 : 0 65-127 : 64 128-255 : 0 256-511 : 0 512-1023 : 0 1024-1518 : 0 Runts/Jumbos : 0/0 ARP/ICMP Pkts : 0/0 Tx Count/% Rate : Forever /100% Pkt Size/Rx:Tx Burst: 64 / 64: 32 Port Src/Dest : 1234/ 5678 Pkt Type:VLAN ID : IPv4 / TCP:0001 IP Destination : 192.168.1.1 Source : 192.168.0.1/24 MAC Destination : 6c:b3:11:21:c6:31 Source : 6c:b3:11:21:c6:31 NUMA/Vend:ID/PCI :-1/8086:1592/0000:01:00.1 -- Pktgen 24.05.4 Powered by DPDK 24.07.0-rc0 (pid:612017) -------------------

** Version: DPDK 24.07.0-rc0, Command Line Interface Pktgen:/> str

As a matter of comparison, here is the output I had using Pktgen 23.06.1 and DPDK 23.03.0 : $ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ./usr/local/bin/pktgen -n 4 -a 0000:01:00.1 --file-prefix max -l 0-8 -- -m [1/2/3:5/6/7].0 -P -v

Copyright(c) <2010-2023>, Intel Corporation. All rights reserved. Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<

EAL: Detected CPU lcores: 16 EAL: Detected NUMA nodes: 1 EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/max/mp_socket EAL: Selected IOVA mode 'PA' EAL: VFIO support initialized EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:01:00.1 (socket -1) ice_load_pkg_type(): Active package is: 1.3.26.0, ICE OS Default Package (single VLAN mode) TELEMETRY: No legacy callbacks, legacy socket not created Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio

Packet Max Burst 128/128, RX Desc 1024, TX Desc 2048, mbufs/port 24576, mbuf cache 128 0: net_ice 0 -1 8086:1592/0000:01:00.1

=== port to lcore mapping table (# lcores 9) === lcore: 0 1 2 3 4 5 6 7 8 Total port 0: ( D: T) ( 1: 0) ( 1: 0) ( 1: 0) ( 0: 0) ( 0: 1) ( 0: 1) ( 0: 1) ( 0: 0) = ( 3: 3) Total : ( 0: 0) ( 1: 0) ( 1: 0) ( 1: 0) ( 0: 0) ( 0: 1) ( 0: 1) ( 0: 1) ( 0: 0) Display and Timer on lcore 0, rx:tx counts per port/lcore

Configuring 1 ports, MBUF Size 10240, MBUF Cache Size 128 Lcore: 1, RX-Only RX_cnt( 1): (pid= 0:qid= 0) 2, RX-Only RX_cnt( 1): (pid= 0:qid= 1) 3, RX-Only RX_cnt( 1): (pid= 0:qid= 2) 5, TX-Only TX_cnt( 1): (pid= 0:qid= 0) 6, TX-Only TX_cnt( 1): (pid= 0:qid= 1) 7, TX-Only TX_cnt( 1): (pid= 0:qid= 2)

Port : 0, nb_lcores 6, private 0x5568fa7f3f40, lcores: 1 2 3 5 6 7

Initialize Port 0 -- TxQ 3, RxQ 3 Device Info (0000:01:00.1, if_index:0, flags 00000066) min_rx_bufsize : 1024 max_rx_pktlen : 9728 hash_key_size : 52 max_rx_queues : 256 max_tx_queues : 256 max_vfs : 0 max_mac_addrs : 64 max_hash_mac_addrs: 0 max_vmdq_pools: 0 vmdq_queue_base: 0 vmdq_queue_num : 0 vmdq_pool_base: 0 nb_rx_queues : 0 nb_tx_queues : 0 speed_capa : 000057f4

flow_type_rss_offloads:0000000000007ffc reta_size : 512 rx_offload_capa :VLAN_STRIP IPV4_CKSUM UDP_CKSUM TCP_CKSUM QINQ_STRIP OUTER_IPV4_CKSUM VLAN_FILTER VLAN_EXTEND SCATTER TIMESTAMP KEEP_CRC RSS_HASH BUFFER_SPLIT tx_offload_capa :VLAN_INSERT IPV4_CKSUM UDP_CKSUM TCP_CKSUM SCTP_CKSUM TCP_TSO OUTER_IPV4_CKSUM QINQ_INSERT MULTI_SEGS MBUF_FAST_FREE OUTER_UDP_CKSUM rx_queue_offload_capa :0000000000100000 tx_queue_offload_capa :0000000000010000 dev_capa :0000000000000000

RX Conf: pthresh : 8 hthresh : 8 wthresh : 0 Free Thresh : 32 Drop Enable : 0 Deferred Start : 0 offloads :0000000000000000 TX Conf: pthresh : 32 hthresh : 0 wthresh : 0 Free Thresh : 32 RS Thresh : 32 Deferred Start : 0 offloads :0000000000000000 Rx: descriptor Limits nb_max : 4096 nb_min : 64 nb_align : 32 nb_seg_max : 0 nb_mtu_seg_max : 0 Tx: descriptor Limits nb_max : 4096 nb_min : 64 nb_align : 32 nb_seg_max : 0 nb_mtu_seg_max : 0 Rx: Port Config burst_size : 32 ring_size : 1024 nb_queues : 1 Tx: Port Config burst_size : 32 ring_size : 1024 nb_queues : 1 Switch Info: (null) domain_id :65535 port_id : 0

Create: 'Default RX  0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Default RX  0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Default RX  0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Special TX  0:0 ' - Memory used (MBUFs   1024 x size  10240) =  10241 KB

Create: 'Default TX  0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Range TX    0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Rate TX     0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Sequence TX 0:0 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB

Create: 'Default TX  0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Range TX    0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Rate TX     0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Sequence TX 0:1 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB

Create: 'Default TX  0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Range TX    0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Rate TX     0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB
Create: 'Sequence TX 0:2 ' - Memory used (MBUFs  24576 x size  10240) = 245761 KB

                                                                   Port memory used = 3696656 KB

Src MAC 6c:b3:11:21:c6:31

Total memory used = 3696656 KB ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 0). === Display processing on lcore 0 WARNING: Nothing to do on lcore 4: exiting WARNING: Nothing to do on lcore 8: exiting RX processing lcore: 1 rx: 1 tx: 0 Using port/qid 0/0 for Rx on lcore id 1 RX processing lcore: 2 rx: 1 tx: 0 Using port/qid 0/1 for Rx on lcore id 2 RX processing lcore: 3 rx: 1 tx: 0 Using port/qid 0/2 for Rx on lcore id 3 TX processing lcore: 5 rx: 0 tx: 1 Using port/qid 0/0 for Tx on lcore id 5 TX processing lcore: 6 rx: 0 tx: 1 Using port/qid 0/1 for Tx on lcore id 6 TX processing lcore: 7 rx: 0 tx: 1 Using port/qid 0/2 for Tx on lcore id 7 \ Ports 0-0 of 1
Copyright(c) <2010-2023>, Intel Corporation Port:Flags : 0:P------ Single Link State : ---Total Rate--- Pkts/s Rx : 1 1 Tx : 66,270,641 66,270,641 MBits/s Rx/Tx : 0/44,533 0/44,533 Pkts/s Rx Max : 4 4 Tx Max : 76,192,062 76,192,062 Broadcast : 0 Multicast : 2 Sizes 64 : 0 65-127 : 4 128-255 : 0 256-511 : 2 512-1023 : 0 1024-1518 : 0 Runts/Jumbos : 0/0 ARP/ICMP Pkts : 0/0 Errors Rx/Tx : 0/0 Total Rx Pkts : 6 Tx Pkts : 263,026,813 Rx/Tx MBs : 0/176,753 TCP Flags : .A.... TCP Seq/Ack : 74616/74640 Pattern Type : abcd... Tx Count/% Rate : Forever /100% Pkt Size/Rx:Tx Burst: 64 / 64: 64 TTL/Port Src/Dest : 64/ 1234/ 5678 Pkt Type:VLAN ID : IPv4 / TCP:0001 802.1p CoS/DSCP/IPP : 0/ 0/ 0 VxLAN Flg/Grp/vid : 0000/ 0/ 0 IP Destination : 192.168.1.1 Source : 192.168.0.1/24 MAC Destination : 00:00:00:00:00:00 Source : 6c:b3:11:21:c6:31 NUMA/Vend:ID/PCI :-1/8086:1592/0000:01:00.1 -- Pktgen 23.06.1 (DPDK 23.03.0) Powered by DPDK (pid:612165) --------------- ** Version: DPDK 23.03.0, Command Line Interface without timers Pktgen:/> str Card is binded using DPDK-compatible driver: $ ./dpdk/usertools/dpdk-devbind.py --status Network devices using DPDK-compatible driver ============================================ 0000:01:00.0 'Ethernet Controller E810-C for QSFP 1592' drv=uio_pci_generic unused=ice,vfio-pci 0000:01:00.1 'Ethernet Controller E810-C for QSFP 1592' drv=uio_pci_generic unused=ice,vfio-pci I also notice that when using the latest version, only cores 1 and 5 are used, while when using version 23.03.0, cores 1,2,3,5,6,7 are used as expected. Do you have any idea where the problem might be coming from? Thanks in advance for your time. Regards, Max —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
maxvanliefde commented 6 months ago

Hi, thanks for your quick reply. Indeed setting another MAC address fixes the problem. Also thanks for pointing out the incoherence in the cores given to dpdk and pktgen!