From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6E19BA0C4C for ; Mon, 13 Sep 2021 05:41:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 58E5D410E6; Mon, 13 Sep 2021 05:41:15 +0200 (CEST) Received: from mail-m973.mail.163.com (mail-m973.mail.163.com [123.126.97.3]) by mails.dpdk.org (Postfix) with ESMTP id 6935240151; Mon, 13 Sep 2021 05:41:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=TJy3a cWK0dexHg/F0XvfDtTA6IgvwtLIWrGHLhhp1OA=; b=DE7OLao/slVNHPHlmhDJQ R5jkRmnccw+EmDsyrAPv19RvMT7YYoOr5R+o94w8wOGks3C+kTdXBkKBxvnx1n8u xUaI1TeQI4uy6bULclEjtIGJi31LLp1fpRky5U0NZyvQYiiZniIlWTl/4M0HZ7tX wlLzn+7+Ms5YFsL7KLIVjI= Received: from localhost.localdomain (unknown [124.160.213.250]) by smtp3 (Coremail) with SMTP id G9xpCgB37BRSyD5hm55pHA--.1065S2; Mon, 13 Sep 2021 11:41:08 +0800 (CST) From: Qiming Chen To: dev@dpdk.org Cc: beilei.xing@intel.com, jingjing.wu@intel.com, Qiming Chen , stable@dpdk.org Date: Mon, 13 Sep 2021 11:40:23 +0800 Message-Id: <20210913034023.4324-1-chenqiming_huawei@163.com> X-Mailer: git-send-email 2.30.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: G9xpCgB37BRSyD5hm55pHA--.1065S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKF18KFWkAF4kZw4rAFWxtFb_yoWfXwb_CF 40yr47Zr4jkw1FqF17Cr4rZFy8Kr4DWFn5Ca1jq39Yqw17uF45Wryvvrs2yrZ8Aa1IkF9x Cr9rGw1fua4avjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8GhF7UUUUU== X-Originating-IP: [124.160.213.250] X-CM-SenderInfo: xfkh01xlpl0w5bkxt4lhl6il2tof0z/xtbBzxUNoFaEAKJ2wwAAsy Subject: [dpdk-stable] [PATCH] net/iavf: fix queue start failed X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" In the iavf_dev_start function, if the first execution of iavf_start_queues fails, it will still fail when it is started again. The patch solves the problem of rolling back resources after the queue fails to start, and then restarts successfully. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Cc: stable@dpdk.org Signed-off-by: Qiming Chen --- drivers/net/iavf/iavf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 6ed2dbbcbe..9eca4b70ee 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -897,6 +897,7 @@ iavf_dev_start(struct rte_eth_dev *dev) err_mac: iavf_add_del_all_mac_addr(adapter, false); + iavf_stop_queues(dev); err_queue: return -1; } -- 2.30.1.windows.1