Skip to content

Commit

Permalink
net/hns3: fix secondary process request start/stop Rx/Tx
Browse files Browse the repository at this point in the history
[ upstream commit db6a165 ]

This secondary process should not send request to start/stop Rx/Tx,
this patch fixes it.

Fixes: 23d4b61 ("net/hns3: support multiple process")

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
fengchengwen authored and cpaelzer committed Jun 10, 2021
1 parent 357f95d commit cb46f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hns3/hns3_mp.c
Expand Up @@ -132,7 +132,7 @@ mp_req_on_rxtx(struct rte_eth_dev *dev, enum hns3_mp_req_type type)
int ret;
int i;

if (!hw->secondary_cnt)
if (rte_eal_process_type() == RTE_PROC_SECONDARY || !hw->secondary_cnt)
return;
if (type != HNS3_MP_REQ_START_RXTX && type != HNS3_MP_REQ_STOP_RXTX) {
hns3_err(hw, "port %u unknown request (req_type %d)",
Expand Down

0 comments on commit cb46f4c

Please sign in to comment.