DOCA ethernet send sample can not send packet on wire

Hi There,

I am using Bluefield-2 and DOCA 24.43.1014 to run the eth_txq_send_ethernet_frames sample as:

./doca_eth_txq_send_ethernet_frames -d mlx5_0

The mlx5_0 is the p0 port “
p0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::bace:f6ff:fed1:3e10 prefixlen 64 scopeid 0x20
ether b8:ce:f6:d1:3e:10 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 127 bytes 16591 (16.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

However, after the execution of the sample with successful send task message:
[23:57:48:530609][12208][DOCA][INF][eth_txq_send_ethernet_frames_sample.c:78][task_send_common_cb] Send task user data is 0x43210
[23:57:48:530654][12208][DOCA][INF][eth_txq_send_ethernet_frames_sample.c:94][task_send_common_cb] Sent a regular packet of size 1500 successfully
[23:57:48:533812][12208][DOCA][INF][eth_txq_send_ethernet_frames_main.c:185][main] Sample finished successfully“,

I tried to print the statistic on peer port, but there was no packet received. I have also run the ethtool in the mellanox folder, there was no new packet sent. The port has been set to pure layer 2 without any IP.

Is there any configuration missing? How to verify the packet has been truly sent out on the wire?

Thanks.

Use the command below to monitor in another terminal

mlnx_perf -i eth2

( assume eth2 is the eth interface of the mlx5_0)

when run

./doca_eth_txq_send_ethernet_frames -d mlx5_0

once,

mlnx_perf should show something like:


tx_vport_broadcast_packets: 1
  tx_vport_broadcast_bytes: 1,500 Bps            = 0.1 Mbps
            tx_packets_phy: 1
              tx_bytes_phy: 1,504 Bps            = 0.1 Mbps
          tx_broadcast_phy: 1
     ...
            tx_prio0_bytes: 1,504 Bps            = 0.1 Mbps
          tx_prio0_packets: 1
     ...

Run mlnx_perf on the receiving side too.

And something like below should show:


  rx_vport_broadcast_bytes: 1,504 Bps            = 0.1 Mbps
            rx_packets_phy: 1
              rx_bytes_phy: 1,504 Bps            = 0.1 Mbps
          rx_broadcast_phy: 1
 rx_1024_to_1518_bytes_phy: 1
...
            rx_prio0_bytes: 1,504 Bps            = 0.1 Mbps
          rx_prio0_packets: 1