]> git.droids-corp.org - dpdk.git/commit
examples/multi_process: fix Rx packets distribution
authorGregory Etelson <getelson@nvidia.com>
Wed, 10 Nov 2021 16:57:59 +0000 (18:57 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 16 Nov 2021 15:22:26 +0000 (16:22 +0100)
commit69f9d8aa357d2299e057b7e335f340e20a0c5e7e
treeeda4a20f30e1e88abc6cb485a98093f27156ff5f
parent19781e7a038ac3fdae4d71904268daa6ee399001
examples/multi_process: fix Rx packets distribution

MP servers distributes Rx packets between clients according to
round-robin scheme.

Current implementation always started packets distribution from
the first client. That procedure resulted in uniform distribution
in cases when Rx packets number was around clients number
multiplication. However, if RX burst repeatedly returned single
packet, round-robin scheme would not work because all packets
were assigned to the first client only.

The patch does not restart packets distribution from
the first client.
Packets distribution always continues to the next client.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
examples/multi_process/client_server_mp/mp_server/main.c