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 7A260A0C43; Thu, 21 Oct 2021 21:48:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4112C40040; Thu, 21 Oct 2021 21:48:28 +0200 (CEST) Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) by mails.dpdk.org (Postfix) with ESMTP id 565D74003F for ; Thu, 21 Oct 2021 21:48:27 +0200 (CEST) Received: by mail-il1-f173.google.com with SMTP id y17so1896895ilb.9 for ; Thu, 21 Oct 2021 12:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hWa7DPb4SQxGgwFPcidxPyk/7+zxWp8fslcCiFF8Z/Q=; b=fdkvTF6vKLy52TqlSRfPQaQvAqHrV6+D4O39uA5tW9sQ6pPjs0Rt7Bmpg/B0ofD4Y3 qp7b9r4P+4V2frKHbu6NRNzgufaURKoqgag9JzpjCD4vjtfXWfKKuFYeaEsCClEZAI0Y pkjgi3XNgJLZFcHShrGgCEdRfERix+DzIPXa0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hWa7DPb4SQxGgwFPcidxPyk/7+zxWp8fslcCiFF8Z/Q=; b=k6OEIP06bHFv7P6MMZ4Z9xmwYaqO94HDKry4WZhitdbdhI6XWoaWHvRFj8TpYw93CH BpIj3qDiUytMMMkYZMLuqS9RkPzK3bYrY7WCGRne8luwcjBGaRpxO4ylYL+0KXspScGn oWieCgP6O18q9L4Ubs3QItnWYrLv8b7Qivz3vAjf08jAVuHvxNlnIFZauzn5oC0bx7/R LZ6eUygiDdGabcT3FV+xKIDdOPZpzY+S4on/nUZorsNWm1SdRc7eroA2j1bofIYVmLax RTx1g/JTI7bPRkn/by8JfK8mn812juB3Ar2sxdQBX564NJzu0MmHHeIS5XqEhD+Pmdxj cSWg== X-Gm-Message-State: AOAM5311cnW7vsxbnkYDTtdOOOGOz1zOAiXXsk3Afp5v6SK6+8vk+ghN gF6DfbpzRmKKknnIXbyUgpNB9veJQfAqXgoh3Pvfpg== X-Google-Smtp-Source: ABdhPJzTAfwv91u9aAK2szfF/sxBIC4Spc6sdWTcqozYinp6GqOb9Oe0Xh6v5boNTw30ZzVujLAMahl6a4NxYMZvbSg= X-Received: by 2002:a92:cd51:: with SMTP id v17mr4914701ilq.255.1634845706707; Thu, 21 Oct 2021 12:48:26 -0700 (PDT) MIME-Version: 1.0 References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211021104142.2649060-1-xuemingl@nvidia.com> <20211021104142.2649060-6-xuemingl@nvidia.com> In-Reply-To: <20211021104142.2649060-6-xuemingl@nvidia.com> From: Ajit Khaparde Date: Thu, 21 Oct 2021 12:48:10 -0700 Message-ID: To: Xueming Li Cc: dpdk-dev , Zhang Yuying , Li Xiaoyun , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , Ananyev Konstantin Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v13 5/7] app/testpmd: dump port info for shared Rx queue 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 Sender: "dev" On Thu, Oct 21, 2021 at 3:42 AM Xueming Li wrote: > > In case of shared Rx queue, source port mbuf from polling result isn't > the Rx port of forwarding stream. To provide original port ID, this > patch dumps mbuf->port for each packet in verbose mode if shared Rx > queue enabled. > > Signed-off-by: Xueming Li > Acked-by: Xiaoyun Li Acked-by: Ajit Khaparde > --- > app/test-pmd/util.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c > index 26dc0c86406..f712f687287 100644 > --- a/app/test-pmd/util.c > +++ b/app/test-pmd/util.c > @@ -101,6 +101,9 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[], > struct rte_port *port = &ports[port_id]; > > mb = pkts[i]; > + if (rxq_share > 0) > + MKDUMPSTR(print_buf, buf_size, cur_len, "port %u, ", > + mb->port); > eth_hdr = rte_pktmbuf_read(mb, 0, sizeof(_eth_hdr), &_eth_hdr); > eth_type = RTE_BE_TO_CPU_16(eth_hdr->ether_type); > packet_type = mb->packet_type; > -- > 2.33.0 >