numam-dpdk/drivers/net
Jiawei Wang 7797b0fe64 net/mlx5: fix meter action pool protection
The ASO meter action with flows creation could be supported on
multiple threads. The meter pools were created to manage the meter
object resources, if there is no room in the current meter pool then
resize the meter pool to the new pool size and free the old one.

There's a race condition while one thread resizes the meter pool and
the old pool resource be freed, and another thread query the meter
object by index on the old pool, the return value is invalid.

This patch adds a read-write lock to protect the pool resource while
resizing and query.

Fixes: a5835d530f ("net/mlx5: optimize Rx queue match")
Cc: stable@dpdk.org

Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-11-01 14:53:36 +01:00
..
af_packet net/af_packet: fix driver init with default MTU 2021-10-27 17:44:49 +02:00
af_xdp ethdev: add namespace 2021-10-22 18:15:38 +02:00
ark ethdev: add namespace 2021-10-22 18:15:38 +02:00
atlantic drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
avp drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
axgbe drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
bnx2x drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
bnxt net/bnxt: fix stat context allocation 2021-10-31 17:02:36 +01:00
bonding mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
cnxk mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
cxgbe mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
dpaa drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
dpaa2 drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
e1000 drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
ena drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
enetc mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
enic drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
failsafe drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
fm10k drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
hinic drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
hns3 net/hns3: unify multicast MAC address set list 2021-11-01 18:31:07 +01:00
i40e net/i40e: fix 32-bit build 2021-11-01 02:15:25 +01:00
iavf net/iavf: add watchdog for VF FLR 2021-10-29 04:22:25 +02:00
ice net/ice: fix performance for Rx timestamp 2021-11-01 02:21:10 +01:00
igc drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
ionic drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
ipn3ke ethdev: add namespace 2021-10-22 18:15:38 +02:00
ixgbe drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
kni ethdev: add namespace 2021-10-22 18:15:38 +02:00
liquidio mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
memif net/memif: fix driver init with default MTU 2021-10-27 17:48:51 +02:00
mlx4 drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
mlx5 net/mlx5: fix meter action pool protection 2021-11-01 14:53:36 +01:00
mvneta mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
mvpp2 mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
netvsc drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
nfb ethdev: add namespace 2021-10-22 18:15:38 +02:00
nfp drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
ngbe net/ngbe: support Tx done cleanup 2021-10-30 00:53:19 +02:00
null ethdev: add namespace 2021-10-22 18:15:38 +02:00
octeontx mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
octeontx2 drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
octeontx_ep net/octeontx_ep: remove octeontx2 dependency 2021-10-29 16:09:18 +02:00
pcap ethdev: add namespace 2021-10-22 18:15:38 +02:00
pfe ethdev: add namespace 2021-10-22 18:15:38 +02:00
qede drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
ring ethdev: add namespace 2021-10-22 18:15:38 +02:00
sfc drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
softnic sched: add PIE based congestion management 2021-11-04 15:41:49 +01:00
szedata2 ethdev: add namespace 2021-10-22 18:15:38 +02:00
tap drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
thunderx drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
txgbe net/txgbe: fix link negotiation value 2021-11-02 11:35:53 +01:00
vdev_netvsc
vhost net/vhost: support power monitor 2021-10-29 12:32:29 +02:00
virtio net/virtio: fix link update in speed feature 2021-10-29 12:32:30 +02:00
vmxnet3 drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
meson.build