Skip to content

Commit

Permalink
net/ipn3ke: fix thread exit
Browse files Browse the repository at this point in the history
[ upstream commit d8f8e928a7ba23283300b1b80259d0c102348005 ]

Thread does not exit after driver is removed. When there is no
more representor exist, the variable 'num' will be 0 and thread
can exit safely at this time.

Fixes: 70d6b7f ("net/ipn3ke: add representor")

Signed-off-by: Wei Huang <wei.huang@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
  • Loading branch information
weihuan2 authored and kevintraynor committed Mar 21, 2023
1 parent 400ac4f commit b3fbfee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ipn3ke/ipn3ke_representor.c
Original file line number Diff line number Diff line change
Expand Up @@ -2579,7 +2579,7 @@ ipn3ke_rpst_scan_handle_request(__rte_unused void *param)
}
rte_delay_us(50 * MS);

if (num == 0xffffff)
if (num == 0 || num == 0xffffff)
return NULL;
}

Expand Down

0 comments on commit b3fbfee

Please sign in to comment.