numam-dpdk/drivers/net
Ivan Ilchenko c97e73779c net/virtio: fix split queue vectorized Rx
Descriptors number may be set less than queue size for split queue
vectorized Rx path. Pointers to mbufs for received packets are
obtained from SW ring, that is initially filled with them in the end
of queue setup in virtio_dev_rx_queue_setup_finish(). The begin of the
SW ring filled up to the size of descriptors number. At queue size
offset from the begin of the SW ring pointers to some fake mbuf are also
set for wrapping purpose. So the ring may contains the hole of invalid
pointers from descriptors number offset to queue size offset, and split
vectorized Rx routines could write to the invalid addresses since they
use the ring up to the queue size. Fix this by setting descriptors
number to queue size on Rx queue setup.

Fixes: fc3d66212f ("virtio: add vector Rx")
Cc: stable@dpdk.org

Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2021-09-14 13:21:57 +02:00
..
af_packet version: 21.11-rc0 2021-08-17 08:37:52 +02:00
af_xdp net/af_xdp: fix zero-copy Tx queue drain 2021-09-07 17:55:23 +02:00
ark version: 21.11-rc0 2021-08-17 08:37:52 +02:00
atlantic version: 21.11-rc0 2021-08-17 08:37:52 +02:00
avp version: 21.11-rc0 2021-08-17 08:37:52 +02:00
axgbe net/axgbe: fix unreleased lock in I2C transfer 2021-09-08 15:27:02 +02:00
bnx2x net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
bnxt net: add macro for MAC address print 2021-09-07 19:07:46 +02:00
bonding net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
cnxk net/cnxk: add flag to show CPT can enqueue events 2021-09-06 21:46:34 +02:00
cxgbe version: 21.11-rc0 2021-08-17 08:37:52 +02:00
dpaa net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
dpaa2 net/dpaa2: add some parameter validations 2021-07-23 20:31:01 +02:00
e1000 net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
ena version: 21.11-rc0 2021-08-17 08:37:52 +02:00
enetc version: 21.11-rc0 2021-08-17 08:37:52 +02:00
enic net: add macro for MAC address print 2021-09-07 19:07:46 +02:00
failsafe net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
fm10k drivers/net: fix vector Rx comments 2021-08-10 05:01:57 +02:00
hinic net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
hns3 net/hns3: fix Tx push capability 2021-09-09 19:35:40 +02:00
i40e net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
iavf net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
ice net/ice: fix performance with writeback policy 2021-09-06 03:57:13 +02:00
igc drivers: remove warning with Meson 0.59 2021-08-27 15:51:34 +02:00
ionic version: 21.11-rc0 2021-08-17 08:37:52 +02:00
ipn3ke net/ipn3ke: change experimental symbol to internal 2021-08-31 16:00:04 +02:00
ixgbe net/ixgbe: fix mbuf leak 2021-09-06 03:46:22 +02:00
kni version: 21.11-rc0 2021-08-17 08:37:52 +02:00
liquidio version: 21.11-rc0 2021-08-17 08:37:52 +02:00
memif version: 21.11-rc0 2021-08-17 08:37:52 +02:00
mlx4 net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
mlx5 net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
mvneta version: 21.11-rc0 2021-08-17 08:37:52 +02:00
mvpp2 net: add macro for MAC address print 2021-09-07 19:07:46 +02:00
netvsc net: add macro for MAC address print 2021-09-07 19:07:46 +02:00
nfb version: 21.11-rc0 2021-08-17 08:37:52 +02:00
nfp net: add macro for MAC address print 2021-09-07 19:07:46 +02:00
ngbe drivers: remove warning with Meson 0.59 2021-08-27 15:51:34 +02:00
null version: 21.11-rc0 2021-08-17 08:37:52 +02:00
octeontx drivers: remove warning with Meson 0.59 2021-08-27 15:51:34 +02:00
octeontx2 version: 21.11-rc0 2021-08-17 08:37:52 +02:00
octeontx_ep version: 21.11-rc0 2021-08-17 08:37:52 +02:00
pcap net/pcap: improve Rx statistics 2021-09-09 15:30:32 +02:00
pfe version: 21.11-rc0 2021-08-17 08:37:52 +02:00
qede net/qede: fix minsize build 2021-09-15 17:11:56 +02:00
ring version: 21.11-rc0 2021-08-17 08:37:52 +02:00
sfc net/sfc: set FDIR bit for flow mark in EF100 Rx 2021-09-09 19:52:36 +02:00
softnic net/softnic: promote manage API 2021-09-15 09:26:23 +02:00
szedata2 version: 21.11-rc0 2021-08-17 08:37:52 +02:00
tap version: 21.11-rc0 2021-08-17 08:37:52 +02:00
thunderx net: add macro for MAC address print 2021-09-07 19:07:46 +02:00
txgbe net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
vdev_netvsc version: 21.11-rc0 2021-08-17 08:37:52 +02:00
vhost version: 21.11-rc0 2021-08-17 08:37:52 +02:00
virtio net/virtio: fix split queue vectorized Rx 2021-09-14 13:21:57 +02:00
vmxnet3 net: add macro for MAC address print 2021-09-07 19:07:46 +02:00
meson.build net/ngbe: add build and doc infrastructure 2021-07-12 17:55:19 +02:00