Hi,
I have noticed that, at least when using port_mtu setting in trec_cfg.yaml, driver complains about that application (TRex) tries setting this without first stopping port. TRex starts up anyway but issue with setting wanted MTU.
I think, for setting MTU, we need to:
1. stop port
2. set mtu on port
3. start port
eccd@control-plane-dc309-2-mast-n43:~/etxhlat/nfvi_IV/cncf_IV/cncf_R1/NetworkingFunctions/CNIS-2999> kubectl logs trex-intel-cnis-2999-1-0 trex-sriov
Wait for downWardAPI - Tue May 28 06:45:38 UTC 2024
Now downwardAPI should be ready for reading - Tue May 28 06:45:43 UTC 2024
iavf_dev_mtu_set(): port must be stopped before configuration
iavf_dev_mtu_set(): port must be stopped before configuration
ND: TX NS: fd00:1:1058::96,02:e2:fb:ef:56:41 -> fd00:1:1058::1 (retry 0)
ND: RX NA: fd00:1:1058::96 <- fd00:1:1058::1, 02:01:01:01:01:02
ND: RX NA: fd00:1:1058::96 <- fd00:1:1058::1, 02:01:01:01:01:02
02:01:01:01:01:02
ND: TX NS: fd00:1:1059::96,02:d4:49:ea:04:b8 -> fd00:1:1059::1 (retry 0)
ND: RX NA: fd00:1:1059::96 <- fd00:1:1059::1, 02:01:01:01:01:02
ND: RX NA: fd00:1:1059::96 <- fd00:1:1059::1, 02:01:01:01:01:02
02:01:01:01:01:02
10 second pre-run - purpose ARP learning
Port 0 --> Port 1 (Latency PGID packets):
Port0 TX packets:19779 Port1 RX packets:19779
Port 1 --> Port 0 (Latency PGID packets):
Port1 TX packets:19782 Port0 RX packets:19782
Port xstats (total packets):
Port0 good TX packets:4964282
Port1 good RX packets:4964283
Port1 good TX packets:4965285
Port0 good RX packets:4965286
Currently used latency pgids: [1010, 2010, 10010, 20010]
Total test duration is 0.0 seconds!
Packets Per Second sent per flow direction @ frame size 68 was: 251000
Bandwidth per flow (Megabit/sec): 176.704
Complete statistics written to file /tmp/nfvi-1118.txt.
All IPv4 flow PGIDs starting with 1, all IPv6 flow PGIDs stating with 2:
Bulk streams:
Stream PPS sent TX_packages RX_packages Dropped
Stream1011 247225.1 2472251 2472251 0
Stream2011 247225.1 2472251 2472251 0
Stream10011 247275.1 2472751 2472751 0
Stream20011 247275.1 2472751 2472751 0
Latency_stream Duplicats OutOfOrder Seq_high Seq_low Drop Lat_max(us) Lat_min(us) Lat_avg(us) Jitter(us)
Stream1010 0 0 0 0 0 31 13 19.00 2
Stream2010 0 0 0 0 0 41 13 26.00 17
Stream10010 0 0 0 0 0 45 13 23.00 1
Stream20010 0 0 0 0 0 45 14 26.00 10