]> git.droids-corp.org - dpdk.git/commit
app/testpmd: fix Tx scheduling interval
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Tue, 23 Nov 2021 16:32:58 +0000 (18:32 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Jan 2022 17:02:30 +0000 (18:02 +0100)
commit9fac5ca8edaebd0f6206193277876fdebb6f3eb2
treed3fe843cfade83b6eb05c9a985c3325a01f2ea93
parent57b156540f51a89214098e594494023e3820fa4f
app/testpmd: fix Tx scheduling interval

The first "set txtimes" command parameter specifies the time
interval between scheduled send bursts for single queue. This
interval should be the same for all the forwarding ports.
It requires to maintain the timing related variables on per
queue basis instead of per core, as currently implemented.
This resulted in wrong burst intervals if two or more cores
were generating the scheduled traffic for two or more ports
in txonly mode.

This patch moves the timing variable to the fstream structure.
Only txonly forwarding mode with enabled send scheduling is
affected.

Fixes: 4940344dab1d ("app/testpmd: add Tx scheduling command")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/testpmd.h
app/test-pmd/txonly.c