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 DFC5CA0543; Tue, 25 Oct 2022 04:06:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99607410D3; Tue, 25 Oct 2022 04:06:59 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id D294540DF7; Tue, 25 Oct 2022 04:06:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666663618; x=1698199618; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=w9YskSQgiYqFqHFQItk9Es9HkpQaJo0lTN+w/x+GYWo=; b=PRPwrHUsakDhyCD/suLPKXoLVlfj8jjZx9Y1Y2n4MvCXSy+WCisfTq/e h9B4IiCRfJQzH7+IaGpGM3g1TwtMSowhEXCujcaO6qceW3QeF9spMoz8n 1DOeRiK4mCaHGrIeoBF1qjBwJKY645kUgyuFw+zaqvzK+PLAfEepI+e/Z 7VVPG8A1Ktk7wKB3B5+f1blKolDzBOAWY9SvtqrD3n1ndmXq4CeDOxEtD xtNIlSULuLfZdHJYdm2ye8Q3zajWNAv6IW5gTn3tz/QC8GlhjcfgO34CN ecDseU6LFaxEfM7VOysmQzYTQ308gqirfG4Rf5sQBUkj/3QnCupUtYnMt A==; X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="308659114" X-IronPort-AV: E=Sophos;i="5.95,210,1661842800"; d="scan'208";a="308659114" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 19:06:56 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="609406282" X-IronPort-AV: E=Sophos;i="5.95,210,1661842800"; d="scan'208";a="609406282" Received: from intel-cd-odc-gavin.cd.intel.com ([10.240.178.188]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 19:06:54 -0700 From: Jie Wang To: dev@dpdk.org Cc: stevex.yang@intel.com, qi.z.zhang@intel.com, qiming.yang@intel.com, aman.deep.singh@intel.com, yuying.zhang@intel.com, Jie Wang , stable@dpdk.org Subject: [PATCH] app/testpmd: fix testpmd receive jumbo frame packets Date: Tue, 25 Oct 2022 10:05:10 +0800 Message-Id: <20221025020510.117132-1-jie1x.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org For NIC I40E_10G-10G_BASE_T_X722, when testpmd is configured with link speed, it cannot receive jumbo frame packets. Because it has changed the link status of the ports if it was configured with link speed. When exiting testpmd that it automatically stops packet forwarding and stops all the ports. But it doesn't update the link status of the ports. If stop the ports first that it will update the link status. This patch fix the error that testpmd will update the link status of the ports when it exits. Fixes: d3a274ce9dee ("app/testpmd: handle SIGINT and SIGTERM") Fixes: 284c908cc588 ("app/testpmd: request device removal interrupt") Cc: stable@dpdk.org Signed-off-by: Jie Wang --- app/test-pmd/testpmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 97adafacd0..c348a3f328 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -3548,7 +3548,7 @@ pmd_test_exit(void) } #endif if (ports != NULL) { - no_link_check = 1; + no_link_check = 0; RTE_ETH_FOREACH_DEV(pt_id) { printf("\nStopping port %d...\n", pt_id); fflush(stdout); @@ -3675,7 +3675,7 @@ rmv_port_callback(void *arg) need_to_start = 1; stop_packet_forwarding(); } - no_link_check = 1; + no_link_check = 0; stop_port(port_id); no_link_check = org_no_link_check; -- 2.25.1