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 97736A00C3 for ; Fri, 30 Dec 2022 18:23:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B42742D3E; Fri, 30 Dec 2022 18:23:37 +0100 (CET) Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by mails.dpdk.org (Postfix) with ESMTP id 0B33542D39 for ; Fri, 30 Dec 2022 18:23:35 +0100 (CET) Received: by mail-pj1-f50.google.com with SMTP id u4-20020a17090a518400b00223f7eba2c4so22196807pjh.5 for ; Fri, 30 Dec 2022 09:23:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=RuYkijLnYMAodY6Y3q+J6ZUKUhStThlCk9MZoSDybyI=; b=Vg/kdMEtSjA1ycUzkQqcChDcGNGbWHVloonoHwVvByE2dgTc+SQQr7UjhUiZeMooLV 2iHVVtZVV73rycrUT25SrcziygPtNQKBsOqHczQIYWjs7QslB5q3tXwpFWDN8jMUHEoH tY3/pAeNugfFv7/O6UNr8h3lVl6Vx1vlp64tVcU6LV4HVn2FFCdJBmOKXFxQC/DshbAb iaBfKNOBdokNqlQY+MUnxwn4hrPYV2r6xp9Y1Qd/MSaV+iYEO1Q7DvDlu2XF7/xvkM3U tWvVcnJSv3GXZDGeEaXcoOOd+rCh0xLHP8YOpoSZMgRQ6PE8tdN2Y3v6/lJLdRomiziD dsnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RuYkijLnYMAodY6Y3q+J6ZUKUhStThlCk9MZoSDybyI=; b=PvfMO+iL4jT6e48mBCs3E+Bo9iqAKqBJjcNB4lOPNZT63uNhDvKNfu55NemOwwoTz6 fKAU3RVNTuxxV/+mAvnw51snUeUjPx7orHEqQqBKjnvVdFNgoE36yBvqxb3cnv4UUNAj X/WQAGVYFZmsP+k9BfKkYd4flkk0hOyjbCHrK5ID4sR0aUlUDpijR6bDwWAIbQTcHlHM c780peak5I3NMdrKGpMx7x/YU5IDUtMvFzJ6uwEkjay+RXl5PYk1OoB5orlozx+S0iWq 4/2Vot3iQZQvp517YudY6d+UF3X/KAanDnt4z/IgIUksEnykpAu4XxZ0vuhuwiDRUJi1 VOsg== X-Gm-Message-State: AFqh2koqynk0mWd44V6RumUH+j1s9bsDs4dTpwEIPWkeARCBkUkTaSlp MQ9ksGyNYxUCG2FTYi26Sf7NyA== X-Google-Smtp-Source: AMrXdXvImQH7EaWxAIu9RfNaBk2xv0CBOZGx5W4sb+7hxv4trxHb5A6sd1hG5UicMkpyk+D99V1Sxw== X-Received: by 2002:a17:903:2ca:b0:189:efe8:1f with SMTP id s10-20020a17090302ca00b00189efe8001fmr55791236plk.13.1672421014056; Fri, 30 Dec 2022 09:23:34 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id 2-20020a170902c20200b00178aaf6247bsm15248655pll.21.2022.12.30.09.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Dec 2022 09:23:33 -0800 (PST) Date: Fri, 30 Dec 2022 09:23:31 -0800 From: Stephen Hemminger To: Shiyang He Cc: dev@dpdk.org, yidingx.zhou@intel.com, stable@dpdk.org, Aman Singh , Yuying Zhang , Anatoly Burakov , Xiaoyun Li , Alvin Zhang Subject: Re: [PATCH] app/testpmd: fix secondary process not forwarding Message-ID: <20221230092331.4a82c5f8@hermes.local> In-Reply-To: <20221230075554.25244-1-shiyangx.he@intel.com> References: <20221230075554.25244-1-shiyangx.he@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Fri, 30 Dec 2022 07:55:53 +0000 Shiyang He wrote: > Under multi-process scenario, the secondary process gets queue state > from the wrong location (the global variable 'ports'). Therefore, the > secondary process can not forward since "stream_init" is not called. > > This commit fixes the issue by calling 'rte_eth_rx/tx_queue_info_get' > to get queue state from shared memory. > > Fixes: a78040c990cb ("app/testpmd: update forward engine beginning") > Cc: stable@dpdk.org > > Signed-off-by: Shiyang He Would it be possible to fix this the initialization of ports variable, rather than doing a per-state fixup here?