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 82338A034F; Mon, 11 Oct 2021 14:38:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9880E410DC; Mon, 11 Oct 2021 14:38:41 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2087.outbound.protection.outlook.com [40.107.220.87]) by mails.dpdk.org (Postfix) with ESMTP id 6ADF3410EA for ; Mon, 11 Oct 2021 14:38:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FMnmZDATZxn8z2NuEmJOB4Yl7fgB1FAGikJC2/trjELB5QwOC3EBE4EdjtTlyN3bdAuYSCDf+6yMTHr/p1Vkywf/6xvmUqRHZMnhCzuLLbfvu77RzvasSz5CTqk+nhEu5T1hRhRDWXYNT6o4Q+cznbr95JrTmkX5pfSRYu+Z5X1cODZgXpY26N628/2ldxLbrgpsYySLTgzUfTAQOg7X6R+pFEiAJb+i8tkehFkePyyVTH9DK5ZHoHyk0edYamRlpaxMORPGPsn/wXVyzW9b8Ez2fAsXG0m7Zk4lRgHo88L0nYRCuRQnvKbaOSWEfO5d44s8l3ofpS5TSeKlIlYWuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WMmdQKxUkb1lg/PnhuxMHrL9QxXzkfBXCCV5SII83A4=; b=VjR1s9kLSlqmYjr4tx7eyXjThx87Cf5t0Ab4IIcH6Q63rdvji2KTPiQQyTDkXCtiSKN/uQ+eoh7TY9ZQdhYeyT2LUVKGrUlvPGdjWUoZBeP1VanKJ8azfpTuKR69x9adzCwn3iePxHQeey0gA3QLbIT7udSKHvdcI1rVDgmxLT93n3afBj984rmB5/u8X1IlzoMKW+SASJOy8cKdU7raMW+T87irOvoHFUrs159k+7FdAVdK7tKLKrjnH8YJQj66kiK/YdqEG1SQ8B1tsH87N3cRE5v0T0X1wPTcZ1Uo31hsh1uUZWs8G+LZL/LDoUy7gsGPyLOu+sk/kn2vskj7iA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WMmdQKxUkb1lg/PnhuxMHrL9QxXzkfBXCCV5SII83A4=; b=FrKrzpHfMkg9Gb5DT0nixNzGnO9cPC3UENW0pOb/Xe3rURNvs7EpvH7d3eXvZ0+y9vOVKJSP3NdnqFhOUTqZtL9lCKYGdZHgfr7WDG1gt8eChgYf8x2IUoHl/L605OqnUFp3SkY30urIuTFgVhnzx4EcfHDv4jKX9e5TmTWzhJivjq7MmsBP1KN92qbv1tvWWpyk75v31FiD2biqTkuWPfiOhkX18RO2Cen6kthl3iz1lTFhAu29QV1ZCrM+5DcUZziRYNPKoo9XJnnuL4f1b2uaVjN2d5Eewpnz2e36AyC834uZWx79PQclrP+Fi1KW1c8tthw4lRpH4w/uxYerjg== Received: from DS7PR03CA0115.namprd03.prod.outlook.com (2603:10b6:5:3b7::30) by CH0PR12MB5220.namprd12.prod.outlook.com (2603:10b6:610:d3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.20; Mon, 11 Oct 2021 12:38:37 +0000 Received: from DM6NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b7:cafe::35) by DS7PR03CA0115.outlook.office365.com (2603:10b6:5:3b7::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Mon, 11 Oct 2021 12:38:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT042.mail.protection.outlook.com (10.13.173.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4587.18 via Frontend Transport; Mon, 11 Oct 2021 12:38:36 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 11 Oct 2021 12:38:32 +0000 From: Xueming Li To: CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev Konstantin" , Xiaoyun Li Date: Mon, 11 Oct 2021 20:37:30 +0800 Message-ID: <20211011123733.961222-4-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211011123733.961222-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211011123733.961222-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 519cc5b9-7e42-4556-efe9-08d98cb40b9b X-MS-TrafficTypeDiagnostic: CH0PR12MB5220: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:243; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: F5Qsbv1rlj7jR4Wea0SPSU4RMJF6STN5e/xc/beedfGgSGC08R+W4EaUfDivsDTLU9EWD8r+z0Muu8xI6yCgMAPE9gUlmGOYYjUgMed47bILOrn5wus2BTmsOcQt24McAi7pcNONtMNmWubaeiHuN90TVbZPViiXg3vtVMUSi7MF59wTqWHOa2QQjMd4Mcxew0k6pWPZGYdqd2wXEYePsve1eXFt6s3XnlsW5cEdsJibTVshpRgUVBIVhJrksUmfIi1AeTpvgmWf20+UgGB3q3fbJs0tBqKUY3oxQ5WwIFJMKlYkSXvnsas5W9drxCs9JRtHovOniMm5suFihFaGZdiwNpFjSgXTRSdCn6mMwAvzvs54odDov3HgoXkEcBy9Mv96TLoAa03QExGZwhQlZTRELHQd0rFPH0G7RtBWxSwQnEg6wotkshrxWL1+IKXjCc3rHQaHie6UZ9kX5W/lqf8E5y88FcxLa1NTP3tZu6PQXvUM/bREspMG8qSytOxK5412sCko5AM1AUobo3f2/X2IXxDvSX2nqeR8xwLSvtvpnaz2zp75zxp/XsGGf8Og4sjRaXw9/BFFFdhRWYiM2GJIZg2mKBIaTEzg1XAfqFNocJjK0fJQzJufXU0fuB3KJ8xViTrW3tqqrtxdjeCczlrdLRneLakP+z2WI6HpujbY7SKmijh797PAt676fPnuEylnovxMOVQhK3xCovkYiQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(86362001)(186003)(16526019)(4744005)(83380400001)(1076003)(8676002)(4326008)(8936002)(2906002)(82310400003)(36860700001)(6916009)(26005)(70586007)(7696005)(70206006)(316002)(5660300002)(7636003)(356005)(6286002)(426003)(55016002)(2616005)(508600001)(54906003)(47076005)(336012)(36756003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2021 12:38:36.5377 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 519cc5b9-7e42-4556-efe9-08d98cb40b9b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5220 Subject: [dpdk-dev] [PATCH v5 3/5] 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" In case of shared Rx queue, polling any member port returns mbufs for all members. This patch dumps mbuf->port for each packet. Signed-off-by: Xueming Li --- 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 51506e49404..e98f136d5ed 100644 --- a/app/test-pmd/util.c +++ b/app/test-pmd/util.c @@ -100,6 +100,9 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[], struct rte_flow_restore_info info = { 0, }; 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