numam-dpdk/drivers/net/memif
Huzaifa Rahman 231435a5e6 net/memif: fix crash with different number of Rx/Tx queues
There's a bug in memif_stats_get() function due to confusion
between C2S (client->server) and S2C (server->client) rings,
causing a crash if there's a different number of Rx and Tx queues.

Fixit by selectiing the correct rings for Rx and Tx i.e for Rx, S2C
rings are selected and for Tx, C2S rings are selected.

Bugzilla ID: 734
Fixes: 09c7e63a71 ("net/memif: introduce memory interface PMD")
Cc: stable@dpdk.org

Signed-off-by: Huzaifa Rahman <huzaifa.rahman@emumba.com>
Reviewed-by: Joyce Kong <joyce.kong@arm.com>
2022-10-04 16:50:40 +02:00
..
memif_socket.c bus/vdev: make driver-only headers private 2022-09-23 16:14:34 +02:00
memif_socket.h drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
memif.h net/memif: replace master/slave arguments 2020-10-20 13:17:08 +02:00
meson.build net/memif: set memfd syscall ID for LoongArch 2022-10-06 12:45:05 +02:00
rte_eth_memif.c net/memif: fix crash with different number of Rx/Tx queues 2022-10-04 16:50:40 +02:00
rte_eth_memif.h net/memif: set memfd syscall ID for LoongArch 2022-10-06 12:45:05 +02:00
version.map version: 22.11-rc0 2022-07-21 12:13:48 +02:00