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 39FCC41BA7; Thu, 2 Feb 2023 04:46:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C2F78406A2; Thu, 2 Feb 2023 04:46:01 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id E54844067B for ; Thu, 2 Feb 2023 04:45:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675309560; x=1706845560; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=za8KLmi6QduCgsAy50XIEzk66wQSaVubapPz0DueH5k=; b=MuRstcshY/c221j3QgWxdPQ2w5+L7lEzkvxQOB91hVaAXSOY7VBksydw Tq79BDmN4GiM8ZI6oPDacLL5kQsUIHlFsoxnGVXzkIy2npnjv7f+VWZtz k0h4zau7sniZ3QNNL8fb5WadzVwUfCGsXXScFefufHBH8nHTG3UX8Qgv5 66oAaEaHD1OU3iyNRbYiWyIrHtAlCOmSbVPSpy4GiSMonIZdqUWxYpOVf 9fORawCR8B+Dfro7A6UjCozAnaETTNyYCwVGDGJ9gtd01KCTcU2YXg3nq JjQyaVOJy/e1651QOM3bj9A7LxhjOdrJ/5KufdiW54aEx5WuHd5nzIArn Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="414548760" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="414548760" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2023 19:45:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="697542911" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="697542911" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga001.jf.intel.com with ESMTP; 01 Feb 2023 19:45:58 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Wed, 1 Feb 2023 19:45:58 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Wed, 1 Feb 2023 19:45:57 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Wed, 1 Feb 2023 19:45:57 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Wed, 1 Feb 2023 19:45:57 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WPG5D7Y4JD+TcPkmFxJv0Gh4OQWHTl7235YhRXuotuQmFsMNxqSaKVLhrnmav9lhqixujnyw6y9PjaeTfOPYNNOcDIlNwssfGjeG8hAHVpMOIzUInNqGf325dVp+2BJ4NRGSGaSOhctcqCU6cXa7qHPrjWV0q6OBUCcyUpkERV8V7ZF+NMR2Mbs9o4joZR1Y0v+dDU4+VdGqmetICMc5BjJtEpr7AtlnrDxXTlX8ayce7nR6NhfeYTeQ/YGqSDUuexXDHQGHZTHu/5u8G+Mw24hQt9WQMKgWj/sraqlqqT2eHzbVJqNWtwexmGi+wC1/GUGAFueRQRna0N5gbMuXDg== 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=hca7Of+535/j1Eua10AJHo+JmUYH98FCASq7jl0cGgE=; b=V9OjvLRX2IGn6WjurvS8Px1vki+4dFeDwuoVFLT7ByZ7+R+QSXJEYMNbww2APiQUhwLOWJ0r7pf8Mds/EyeiiiG/MH1U8A3Z2e0jCRg18dmoRVPfkPpL0o/FUc72hIbgDFmYz9xQGlfP1rvRl4YYMx8WQnMtDSi71GkG9FvrQvzreSk/tm39LXExcGS4QlZVV/unj+EBw9EavOVhgY4b8LfuvtAs+ruLAgEaqOlcCFvu6BkcGzpPUw/hyFCDumLomABzIsnuy8scUBmGuFEFTJXHiXDGrtDUhMeZk25wpm+X1cbSwerbyYXbIOMQa2aTkxp105K9eZ6d5InVfODiNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW3PR11MB4587.namprd11.prod.outlook.com (2603:10b6:303:58::7) by DM4PR11MB5454.namprd11.prod.outlook.com (2603:10b6:5:399::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Thu, 2 Feb 2023 03:45:56 +0000 Received: from MW3PR11MB4587.namprd11.prod.outlook.com ([fe80::8b2c:e748:6431:3cb0]) by MW3PR11MB4587.namprd11.prod.outlook.com ([fe80::8b2c:e748:6431:3cb0%4]) with mapi id 15.20.6064.025; Thu, 2 Feb 2023 03:45:43 +0000 From: "Wu, Jingjing" To: "Liu, Mingxia" , "dev@dpdk.org" CC: "Xing, Beilei" , "Wu, Wenjun1" Subject: RE: [PATCH v3 3/6] common/idpf: support single q scatter RX datapath Thread-Topic: [PATCH v3 3/6] common/idpf: support single q scatter RX datapath Thread-Index: AQHZKxRe9/hc7rJoDEuyHd/F+sb9s667F32A Date: Thu, 2 Feb 2023 03:45:42 +0000 Message-ID: References: <20230111071545.504706-1-mingxia.liu@intel.com> <20230118071440.902155-1-mingxia.liu@intel.com> <20230118071440.902155-4-mingxia.liu@intel.com> In-Reply-To: <20230118071440.902155-4-mingxia.liu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW3PR11MB4587:EE_|DM4PR11MB5454:EE_ x-ms-office365-filtering-correlation-id: aeb122b3-ef93-4b4f-8f53-08db04cff5a6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5JjzBjyF4mCZ2ax440cLhiBagz+z1WjG3ShtZGoCJxisM3//gwc6ZCVkmpRqgZbXlmby/oO6/2Vvt4uYcO8sGd1yjtN1pWgN6yvieuDrT4NZ7uuIbtqRxtYY6/DSYjm0StoJrpjbjVLLI3slHKeR00M9rbEdsImplyAoaBVEhwZVCGH/3iKn/ziQkCESLFRBHP0sW7MrqSDkfZqh74aFM+aXy8YhHiBAzzz6m9EPPreD4MhS+Ar+jCrg47Pz3mSGIwqVsGY+on+iZ1CgPcv85NP5minnKRJWdmK9a+TWD4hUTMqdXqRJPwnjmp+Q+aAD45EC0q8PQOw01jJw/y0T9gKd24lQRiZPuGep6gYc2I9hkfiTnpsguBsl2zJ1FVvV/ni8Q1t4ddu7MPty4e48f31bsCmKIs6pMYltD8B+PgvCree8n9FJUr4+MtzGPNfG8xs5crwz9u7LhHJzyEuoRxTiRHdkKzaAKa0yoOleDAzjfDLN8SdHhos0fH5dgNGRy7c1EiJ6rVMiWz/qhjDokAfhZlnPckcwQ2TQDaQXI+L5NZ0LJ8omPO6FmP67bweTw4V6Kg3WsehWj8AxXGTrMl2G4tCk+loZAhkMKBGCsxZFNIfdIPh9/IkS/7xXjGE50WLgVbrAQJQWqVbHusXPDplbApYQrJI+8OrKenonioQBQ82HjDfZP9OgUrOssMHvqwL0oE+EX8IXO77q2O8pvQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW3PR11MB4587.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(136003)(366004)(346002)(376002)(39860400002)(396003)(451199018)(33656002)(82960400001)(38070700005)(38100700002)(86362001)(64756008)(41300700001)(122000001)(52536014)(5660300002)(54906003)(110136005)(8676002)(4326008)(66476007)(66446008)(8936002)(66946007)(316002)(66556008)(76116006)(55016003)(4744005)(2906002)(478600001)(7696005)(6506007)(9686003)(26005)(186003)(107886003)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?W7npjpvliK7M/uMrVCHhSc1i64pyKfP2VuaLEVmJAN/4hHPMo7rSxhS7IUxT?= =?us-ascii?Q?FJ1WmeN+TAhe+8t9kdwjqMRjuzYOGC8tU3rFhBmMx73uctNx57poPWaB3PYA?= =?us-ascii?Q?WcROIhumsoLZSSJM+UbZVi7gOgMRzymIW0gio15YM8P6WSgkPlbOVFLdgvH9?= =?us-ascii?Q?xIvAh5wH0qM3YVHNMc+6PAC0LxEpNS8z6u7YZG54AoZwvz0QzRjQUgjcmK0A?= =?us-ascii?Q?EVF8pRHXFgio/xrAlmCVHNX1yY5CMJwSk9PX3QlIyQa/J4LF7Qoo3jzW7tYh?= =?us-ascii?Q?+PllmfCgsAVYODSPbwXmKD9lpdgA7x/nwEK+JR1pkN29rVfCfm79zIBge0SK?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QqOs2rVkhA5DmRQ2bK?= =?us-ascii?Q?fbiSemXZ4UaxRtEijIc4DG4IsxLRaCeFojNxq3FMV31/YKNoV6uCc/c/6Gtn?= =?us-ascii?Q?ZqdILdhz6voLIUu1bJ1CDspnRrKu5Jz4YzxehK1kaPB/IKdWD0y5bSIawB0C?= =?us-ascii?Q?usHUTm8NXPYeQAqQWh2dl98SRrdE77tfYZCjUriJ+r0T6qokJa/v7Amp13lT?= =?us-ascii?Q?gsmXhdtJbku3JbNHeaIaNY5duNCzgKzTetClNSmzwmzfkuOrVU4kdB3sqTj0?= =?us-ascii?Q?LhdGs9+H00rCPUk4jWQv980sTK/7FMkTZdmhD/gfAowBxwuSLPr985zT5o74?= =?us-ascii?Q?z96qKToCJ7WVPBEfFUsu8eW3/xbxSI7npqDB3Oll?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW3PR11MB4587.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: aeb122b3-ef93-4b4f-8f53-08db04cff5a6 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2023 03:45:42.8507 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: spsZnksZz27E7gB5ozcZDxI15W8+FeyX14CpDL51E0oGAxRimVEtrLfcBN4MNgGRn4Gd2kgWQQfzoyBsbOhsgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5454 X-OriginatorOrg: intel.com 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 >=20 > +uint16_t > +idpf_singleq_recv_scatter_pkts(void *rx_queue, struct rte_mbuf **rx_pkts= , > + uint16_t nb_pkts) > +{ > + struct idpf_rx_queue *rxq =3D rx_queue; > + volatile union virtchnl2_rx_desc *rx_ring =3D rxq->rx_ring; > + volatile union virtchnl2_rx_desc *rxdp; > + union virtchnl2_rx_desc rxd; > + struct idpf_adapter *ad; > + struct rte_mbuf *first_seg =3D rxq->pkt_first_seg; > + struct rte_mbuf *last_seg =3D rxq->pkt_last_seg; > + struct rte_mbuf *rxm; > + struct rte_mbuf *nmb; > + struct rte_eth_dev *dev; > + const uint32_t *ptype_tbl =3D rxq->adapter->ptype_tbl; > + uint16_t nb_hold =3D 0, nb_rx =3D 0; According to the coding style, only the last variable on a line should be i= nitialized. > + uint16_t rx_id =3D rxq->rx_tail; > + uint16_t rx_packet_len; > + uint16_t rx_status0; > + uint64_t pkt_flags; > + uint64_t dma_addr; > + uint64_t ts_ns; > +