]> git.droids-corp.org - dpdk.git/commit
net/ice/base: fix getting sched node from ID type
authorWenjun Wu <wenjun1.wu@intel.com>
Tue, 17 May 2022 05:09:26 +0000 (13:09 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 18 May 2022 04:22:43 +0000 (06:22 +0200)
commit8f7a83e19325be26207e4cb2f11856f0fe3dbeca
treece17beff5382cf8b770a1b7a52da3c22092ffdb5
parent0f9fb100f6c6ed1dcadaf76352f4b4f2bd5501f6
net/ice/base: fix getting sched node from ID type

The function ice_sched_get_node_by_id_type needs to be called
with the scheduler lock held. However, the function
ice_sched_get_node also requests the scheduler lock.
It will cause the dead lock issue.

This patch replaces function ice_sched_get_node with
function ice_sched_find_node_by_teid to solve this problem.

Fixes: 93e84b1bfc92 ("net/ice/base: add basic Tx scheduler")
Cc: stable@dpdk.org
Signed-off-by: Wenjun Wu <wenjun1.wu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_sched.c