]> git.droids-corp.org - dpdk.git/commit
ethdev: fix port state when stop
authorMin Hu (Connor) <humin29@huawei.com>
Tue, 3 May 2022 10:02:17 +0000 (18:02 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Mon, 30 May 2022 11:20:22 +0000 (13:20 +0200)
commit74b74269978c2790bc49238029e00b7c6e81c450
tree7b2feddead97aa819a6759b781d16c6252ef2112
parent10c4c4d4eac1b7def2d2e8a63f9d302cf42a606c
ethdev: fix port state when stop

Currently, 'dev_started' is always set to be 0 when dev stop, whether
it succeeded or failed. This is unreasonable and this patch fixed it.

Fixes: 62024eb82756 ("ethdev: change stop operation callback to return int")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
lib/ethdev/rte_ethdev.c