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 54DA042588 for ; Wed, 13 Sep 2023 11:23:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 48C38402ED; Wed, 13 Sep 2023 11:23:52 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 4705A402AB; Wed, 13 Sep 2023 11:23:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694597030; x=1726133030; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nlJlR9SnRvEyVo/o7leQGIOo3yeKQ3qPSabvV1EbbZY=; b=A673WhOWIJ4r/aMCBJmpY1YVhS5zaq/2F6nmSR3zWUKUCVyMgX6Ntba6 O0ceE69SDNlhc4OTg4cec9VGQRXNhm0fTyyp1ZDAwVQEgaPgkRDS5mANl 6ixyJ11dWQJE2JhHzL0yxp6f+ZR5xwi0gI6hjZd+OeeWRrVDnrkJAc6+M nsBSHNLrk+KBJuoyxEX1KZAmVoGBAL4odi/wRhKYlrw7O8oaO4H940vj2 EO6HkaeCPU8JCgLJFOmPhDIRRhrz1ot/CO16bp5ilgnY+HgKtjxcsVXjj JjxJ7yyU4Q+g5boowvd6i8Znwl/sABz7yo+Pr5IGktvBxVAJPkPjyTC0O Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="358042493" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="358042493" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 02:23:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="917760934" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="917760934" Received: from dpdk-qiming3.sh.intel.com ([10.67.110.238]) by orsmga005.jf.intel.com with ESMTP; 13 Sep 2023 02:23:47 -0700 From: Qiming Yang To: dev@dpdk.org Cc: qi.z.zhang@intel.com, Qiming Yang , stable@dpdk.org Subject: [PATCH] net/ice: fix initail link status issue Date: Wed, 13 Sep 2023 09:02:08 +0000 Message-Id: <20230913090208.1057944-1-qiming.yang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This patch fixed the issue which the link status still up when the link status changed from up to downi after device restart. Fixes: fdcf92ed6637 ("net/ice: fix link status recovery") Cc: stable@dpdk.org Signed-off-by: Qiming Yang --- drivers/net/ice/ice_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 4bad39c2c1..ed9771be1c 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -3646,6 +3646,8 @@ ice_get_init_link_status(struct rte_eth_dev *dev) if (link_status.link_info & ICE_AQ_LINK_UP) pf->init_link_up = true; + else + pf->init_link_up = false; } static int -- 2.25.1