numam-dpdk/lib
Naga Harish K S V 81da8a5ff4 eventdev/eth_rx: fix WRR buffer overrun
When a poll queue is removed from a rx_adapter instance, the WRR poll
array is recomputed. The wrr array length is reduced in this case. The
next wrr position to poll is stored in wrr_pos variable of rx_adapter
instance. This wrr_pos can become invalid in some cases after wrr is
recomputed. Using this variable to get the next queue and device pair
may leed to wrr buffer overruns.

Resetting the wrr_pos to zero after recomputation of wrr array fixes
the buffer overrun issue.

Fixes: 9c38b704d2 ("eventdev: add eth Rx adapter implementation")
Cc: stable@dpdk.org

Signed-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>
Acked-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com>
2021-10-21 10:16:00 +02:00
..
acl lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
bbdev bbdev: add device info for data endianness 2021-10-18 20:11:16 +02:00
bitratestats bitrate: promote free function to stable 2021-10-01 15:31:47 +02:00
bpf lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
cfgfile version: 21.11-rc0 2021-08-17 08:37:52 +02:00
cmdline version: 21.11-rc0 2021-08-17 08:37:52 +02:00
compressdev log: register with standardized names 2021-05-11 15:17:55 +02:00
cryptodev cryptodev: fix multi-segment raw vector processing 2021-10-17 19:32:13 +02:00
distributor lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
dmadev dmadev: add flag for error handling support 2021-10-18 11:19:27 +02:00
eal devargs: make bus optional 2021-10-21 11:32:44 +02:00
efd efd: allow more CPU sockets in table creation 2021-10-01 16:33:20 +02:00
ethdev ethdev: replace bit shifts with macros 2021-10-20 19:34:24 +02:00
eventdev eventdev/eth_rx: fix WRR buffer overrun 2021-10-21 10:16:00 +02:00
fib sort symbol maps 2021-10-05 17:03:37 +02:00
flow_classify flow_classify: fix leaking rules on delete 2021-06-24 15:34:45 +02:00
graph eal: save error in string copy 2021-07-05 15:11:30 +02:00
gro net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
gso version: 21.11-rc0 2021-08-17 08:37:52 +02:00
hash hash: promote some functions to stable 2021-10-21 09:46:47 +02:00
ip_frag ip_frag: fix fragmenting IPv4 fragment 2021-10-14 08:52:34 +02:00
ipsec cryptodev: rename field in vector struct 2021-10-17 19:31:15 +02:00
jobstats version: 21.11-rc0 2021-08-17 08:37:52 +02:00
kni version: 21.11-rc0 2021-08-17 08:37:52 +02:00
kvargs kvargs: fix comments style 2021-09-30 17:38:13 +02:00
latencystats version: 21.11-rc0 2021-08-17 08:37:52 +02:00
lpm version: 21.11-rc0 2021-08-17 08:37:52 +02:00
mbuf mbuf: fix reset on mbuf free 2021-10-21 11:18:54 +02:00
member version: 21.11-rc0 2021-08-17 08:37:52 +02:00
mempool mempool: accept user flags only 2021-10-20 10:03:55 +02:00
meter version: 21.11-rc0 2021-08-17 08:37:52 +02:00
metrics ethdev: hide internal structures 2021-10-13 22:14:59 +02:00
net net: fix aliasing in checksum computation 2021-10-18 18:15:58 +02:00
node lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
pci eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
pdump mempool: add namespace to flags 2021-10-20 10:00:16 +02:00
pipeline net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
port version: 21.11-rc0 2021-08-17 08:37:52 +02:00
power lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
rawdev version: 21.11-rc0 2021-08-17 08:37:52 +02:00
rcu lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
regexdev lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
reorder version: 21.11-rc0 2021-08-17 08:37:52 +02:00
rib sort symbol maps 2021-10-05 17:03:37 +02:00
ring ring: fix name size in ring structure 2021-10-21 09:32:04 +02:00
sched sched: get 64-bit greatest common divisor 2021-09-27 17:24:16 +02:00
security security: add reserved bit fields 2021-10-18 20:12:19 +02:00
stack stack: remove unneeded atomic header include 2021-10-19 17:15:10 +02:00
table eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
telemetry telemetry: fix socket path conflicts for in-memory mode 2021-10-14 20:31:10 +02:00
timer version: 21.11-rc0 2021-08-17 08:37:52 +02:00
vhost mempool: add namespace to flags 2021-10-20 10:00:16 +02:00
meson.build dmadev: introduce DMA device library 2021-10-17 20:49:57 +02:00