numam-dpdk/drivers
Bing Zhao 75f166c20f net/mlx5: fix queue leaking in hairpin auto bind check
During the start up stage, the hairpin auto bind was executed for
each port. All the Tx and Rx queues configured for this port should
be checked to confirm if the auto bind of hairpin is needed.
1. The queue is hairpin queue.
2. The peer port is the same one and the peer queue should also be
   with hairpin type.
3. The manual bind attribute is not set for this queue.

If the queue is not a hairpin queue or it doesn't need to be bound
automatically, the reference count should be decreased by 1 since
the count was increased when calling the mlx5_*xq_get().
When the peer port is not the same, it means that no auto bind is
supported and the mlx5_*xq_release() was missed in the current
implementation.

By calling the release function before continue, the count is
correct when calling the device close.

Fixes: aa8bea0e34 ("net/mlx5: add conditional hairpin auto bind")
Cc: stable@dpdk.org

Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2021-07-29 18:01:19 +02:00
..
baseband log: register with standardized names 2021-05-11 15:17:55 +02:00
bus net/dpaa2: add per-thread initialization API 2021-07-23 20:29:53 +02:00
common common/cnxk: support setting BPHY CGX/RPM FEC 2021-07-23 00:25:34 +02:00
compress compress/mlx5: fix overflow in queue size 2021-07-22 14:47:32 +02:00
crypto crypto/octeontx: enable build on non-Linux OS 2021-07-22 21:04:06 +02:00
event event/cnxk: support vectorized Tx event fast path 2021-07-16 14:16:50 +02:00
mempool mempool/octeontx2: fix shift calculation 2021-06-30 18:42:54 +02:00
net net/mlx5: fix queue leaking in hairpin auto bind check 2021-07-29 18:01:19 +02:00
raw raw/cnxk_bphy: support setting FEC 2021-07-23 00:54:01 +02:00
regex regex/mlx5: fix redundancy in device removal 2021-07-22 15:19:37 +02:00
vdpa vdpa/mlx5: fix overflow in queue attribute 2021-07-22 14:48:07 +02:00
meson.build log: register with standardized names 2021-05-11 15:17:55 +02:00