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 DE77342B95; Thu, 25 May 2023 06:13:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF95740DDB; Thu, 25 May 2023 06:13:00 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 3526040A82 for ; Thu, 25 May 2023 06:12:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684987979; x=1716523979; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=kkEvUuurh96JkSeIyxowSueHkYOsrqZgEvsV3bybhoM=; b=TWYbBivmpGVusKa639kvdhmIR8FhQziUnAopyU4llGuCXTAXGyef9bK4 /UNOroJbWOsXVJMgYzmPLetVZGZmRSA/jrd4GNeGL5QA2nNVblbBUY1h4 mRohvhmyrx/iqYWsTr5/WurtesPOAUp3Bj2F6k9bnGqvKJaX6+crCpY8N YCucA/3NFvNk2M2NUj05yDSDDMEqfg1uG0YrqXjBeYMQ70HCxCEdLt8dc XbaCSsmt59ETbJnsutjWzmywnPbNedcVh3IRthGMGpHgFrvogpf/LgwB6 GVY7bJUa9v0YliSMDoDCZx9ZZZjWPQmcIKp4DKpVA9b4HlybeDM584bB5 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10720"; a="338349453" X-IronPort-AV: E=Sophos;i="6.00,190,1681196400"; d="scan'208";a="338349453" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2023 21:12:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10720"; a="1034813851" X-IronPort-AV: E=Sophos;i="6.00,190,1681196400"; d="scan'208";a="1034813851" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga005.fm.intel.com with ESMTP; 24 May 2023 21:12:57 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.23; Wed, 24 May 2023 21:12:54 -0700 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.23 via Frontend Transport; Wed, 24 May 2023 21:12:54 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) 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.23; Wed, 24 May 2023 21:12:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W4rpKpX+a2GTd835/3LcN6ZIfA0J07sJb9xAmxzQqlahDlPc+3l3bhnk8ss+Z7isRBRtef6bh+dxTr+5GzHwVVCyqugND4qAnNRibhOCaHWfHc1+WOffZbyiqHSgNCmdtKxr2DJeLZGVPOfApRSVOHCHdq+UbGJH+iN2WLxoMNCQLlrz9RsdtoKLdj+c+9+DnLN/WRWNEy9wYxR+PG+dSa+FTeV5JMRxCI0HQEAb9ryplEv0RJfbSVDHlgOYYqF6T3GW0q0uxrhbrAbm31MWmDkNk/tDqiM88DTjVHkdHq0aN3c+cQV8M+TJNPUFtZaN9+w1Xh2COi3PazVt+AaQrw== 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=yvEl8ffxTNscwktsSftSu82ojzpXZ9yVxN6zHCPiZGU=; b=CT4ZP+hpsfG+6wJMqDAYQGvwvWf8ew2ME/G3QyLRyqldmW6MH7gtiSf1Z1nMzPHxND5LV+zmTFUPs0Th4LISLDwkHETCwcvfBWUw2mAywRojXqiZcI1ldH86Q4oGQ7pRZaJ5uI/1JByncCY+yj6jnO8omUXI95e2lXk6F6G5y5QZ1czOW9pG4TkpqNCxoOMTGFmSSBENzj8QNvegThO/87NdB7HDASzbu+yroLF+gJm3i4H9ozTsWy97RBx24O7CU1sbKhyD5pO6w9GrBK4nrnt6mNQAYE11u/mpNsXVpgBU2UQw2+LUw0l3qkI7+Rp2uBfYVJQf0YjveWFVJa4CCQ== 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 CY8PR11MB7686.namprd11.prod.outlook.com (2603:10b6:930:70::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.16; Thu, 25 May 2023 04:12:52 +0000 Received: from MW3PR11MB4587.namprd11.prod.outlook.com ([fe80::5666:142:4f22:1a30]) by MW3PR11MB4587.namprd11.prod.outlook.com ([fe80::5666:142:4f22:1a30%7]) with mapi id 15.20.6433.015; Thu, 25 May 2023 04:12:52 +0000 From: "Wu, Jingjing" To: "Xing, Beilei" CC: "dev@dpdk.org" , "Liu, Mingxia" , "Wang, Xiao W" Subject: RE: [PATCH v3 07/10] net/cpfl: support hairpin queue start/stop Thread-Topic: [PATCH v3 07/10] net/cpfl: support hairpin queue start/stop Thread-Index: AQHZiidPgxbzSZC/VEa5y35IsN1To69qZkBA Date: Thu, 25 May 2023 04:12:52 +0000 Message-ID: References: <20230519051055.106893-1-beilei.xing@intel.com> <20230519073116.56749-1-beilei.xing@intel.com> <20230519073116.56749-8-beilei.xing@intel.com> In-Reply-To: <20230519073116.56749-8-beilei.xing@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_|CY8PR11MB7686:EE_ x-ms-office365-filtering-correlation-id: c142a508-4f8c-4368-9bf3-08db5cd64f0c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5pZ5EoP7lQaHeQGTkHw60qxqPOXzlRpdZG3pjyESGSDlwvMr1hmZ/QF6OW5gKpnowx00nk0CLGC1GjS29xT+Mo82Z3JiKdvCN3sTQZjQH3sd0Ts6iX9XtNZ05Z8wqpuaAFJFFRiksnEc3vIb/uYDqh4cUvWcqavPUISmonWV0fIpGX7hvrmONsYlumcmtfiyKbFbqXVkw4nwQP8uYHNNvbUTt1McacIyCVL9klqlx3zy8JNPn1RoFzqVnHbg3rfHhdi+nFH0+Q6PsFsCn8nxbLtchspYVEiA4IaQSIJhzSkdAVR3Qosrf9eHGIqFNJfS7DHn0LljPfDWUAIFrVGtm1E5Oc/TVHKbbvhmYqncFo3Lsrk7ljSGWoLdfw1zVWKobgllWBmSuhEe4XcVfN7x+BzxfzUHa89CNLwmp5HNsDL1UZIZyruckhHr6mb5bPqj4iDCCfYMKj0prW9rxe2Ubf8WI5T95Xu4Q3lRZOxz28K7lUkLD3QIweiHhYLxT9lCX9iFsfZ+7601hT5h6/UZDWzqPFDcXhy60iTxuxyD/dvzOolDREVQLJOiFUrUGH3VBiv3y57kbHLUg94zjn5R5KWXnna5PSlfUPxmXJq3PU6Et5r0e/dcnk3VhLgBRDYh 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:(13230028)(396003)(376002)(366004)(39860400002)(136003)(346002)(451199021)(64756008)(76116006)(66946007)(66446008)(4326008)(66556008)(66476007)(82960400001)(6636002)(66899021)(316002)(54906003)(478600001)(7696005)(41300700001)(71200400001)(55016003)(33656002)(186003)(86362001)(122000001)(53546011)(9686003)(6506007)(8936002)(6862004)(8676002)(107886003)(83380400001)(2906002)(38070700005)(5660300002)(52536014)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Wkz5ULUgwm5MzvaOJS6Fc5tqd65ZzPTtwNhh4JF0W1Jn3OQ4wEmGyan4scXJ?= =?us-ascii?Q?wtTeCxjuQbLMzZVvEwEmAgYLsNyQCASZoEnOl1jyWAybspEhoeIljplwfav1?= =?us-ascii?Q?RiH81dmue12pF1EizfoSAYiu1YH03nNYfxPlZaRveg77wFBLwsMQAd6uVpC7?= =?us-ascii?Q?c3ZtsQVqzVCHulKKPjVcdERiKxim6YbbYfykACUQQWCrDKi3zD/Oxbv5rTZP?= =?us-ascii?Q?Lcp1MCHA8vPIu3KxBQeZ6zS1L6xMwFEv4h0bGYnERpRkJUfYwMOjJcC0Ss1l?= =?us-ascii?Q?RrTwPRuoMGiCcKR2F0uoV7KgnjJKPU7/m3RM8jtJAGletzt8iUtuwwHsZADL?= =?us-ascii?Q?xFiLLW7chFNHmO2iYFTcFZfsI75j6tHzWBHlHB/VDc5MW1dZSnpqFjMptl/g?= =?us-ascii?Q?qg30DLqdZiZCse+IrPcha309GN5ZSz3HxcUPIAbzp3u6JVK/QLYm6aCCsrMZ?= =?us-ascii?Q?KzlZQMaHYeFD6Hfln8/snGW6cKM1WBkhHXwz5toovJH0cBpw4itb3/cwy14D?= =?us-ascii?Q?nHRF5it3dkBypuj8hFL2TGiFP3tNhayRVE5ZL+Hs05xtzRN+2xi7xCPN/PVK?= =?us-ascii?Q?yHA+nHK35OOevFjpLL1aj3+2cANDuf1JV9cnkqqTWJO7Nu7zIpBsQsL9JNGv?= =?us-ascii?Q?mD+gOJH0PZLmUk6ufk0c03gzEJDvwspeMjChX4ezeH+f+AH9e09O+bUuV4+p?= =?us-ascii?Q?1uGEr8xVNIDIZUEzoFDRjs3XXIsuNArbhqvZyl3GCheHEeLUi4D10aVbFpzM?= =?us-ascii?Q?AWlFrhxKWaJU58dsijECZDMz8HhIVK73qFPmsMYAsUjBqEm8dns9J1Arq9SG?= =?us-ascii?Q?VxGzY/SAOZCAClvS2xcs7RBb1CKmozdLE9QehXjshjtoKaqUscRWXUDlxFld?= =?us-ascii?Q?I3NJb3IHhd6HyMI1lcEIq3kWfvFeYLrhHb2awtz9/FEV1R0pmW72En7aiNC6?= =?us-ascii?Q?TY5w2WQmG0/dehfsXsUxEVdEmjjzqAwHLrqUVlc51XnZHAGuXXsNOBSK2Myr?= =?us-ascii?Q?baEvFgLrzYi3XVXrtZyLE53QfsaJOn5dLSYkqHLfAMhoC22QUWWz2K30PyWt?= =?us-ascii?Q?mavJtJEutLSuPnUfCG75sGC3SVu8IP4G25VPHzPWWOqeaz18GNH0K+eSx+uf?= =?us-ascii?Q?LWy/1YCzGyT341uuenaJBKwjDM3wPTS6vreKxBLfFCayHEFifPP9sZPa7mEA?= =?us-ascii?Q?pUn11T2qHRh5M28+lDTt/zU4OW2taVlaXKONWht/LpH4eX938zCviLLJy0m/?= =?us-ascii?Q?CoAT8IvY3J60TeIu5A0fOK2gEHlzcwcO/nAo74cnss1h5P46QZjMpKYcjtCy?= =?us-ascii?Q?SADTsWCsC/nW6VD0oqgOouceJWMzitpxlphdX4S09Q0VwM23to2H83Lsbso+?= =?us-ascii?Q?Web196NGlVzzb9WSv8kk7QUhagt68mEM56NEtOHFFGMneScOQ5jwgIm6ufx8?= =?us-ascii?Q?WQpwhYm8z6Kc53AA3R2XnK8MWM273cDErfGJjAtLEwcNUx4GJIdjgfs0PGUN?= =?us-ascii?Q?hSer+DmOy1Z46GSGXNFyUGIR6GchkVK8wuITbxVIYOh2C81C6zm66NJbzVDO?= =?us-ascii?Q?FMPOnRZ9eqzTNHhaKB9imL/pUk/vHOyNEieQt+ALVEx9XE32rdGeAckWokjO?= =?us-ascii?Q?VcfjWtMSqbRR4C6KxZi6B7t1YpLdGy4DGCq/8o+WPcs3?= 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: c142a508-4f8c-4368-9bf3-08db5cd64f0c X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2023 04:12:52.1925 (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: OOpcYZF79HfC7cJXEbRYUGDSbP+tacpelKSWk4hkYXth7YA3zF0+WR+Uv33tuFL2Fi+RI3MG4pvuV5OJPNCsow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7686 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 > -----Original Message----- > From: Xing, Beilei > Sent: Friday, May 19, 2023 3:31 PM > To: Wu, Jingjing > Cc: dev@dpdk.org; Liu, Mingxia ; Xing, Beilei > ; Wang, Xiao W > Subject: [PATCH v3 07/10] net/cpfl: support hairpin queue start/stop >=20 > From: Beilei Xing >=20 > This patch supports Rx/Tx hairpin queue start/stop. >=20 > Signed-off-by: Xiao Wang > Signed-off-by: Mingxia Liu > Signed-off-by: Beilei Xing > --- > drivers/common/idpf/idpf_common_virtchnl.c | 2 +- > drivers/common/idpf/idpf_common_virtchnl.h | 3 + > drivers/common/idpf/version.map | 1 + > drivers/net/cpfl/cpfl_ethdev.c | 41 ++++++ > drivers/net/cpfl/cpfl_rxtx.c | 153 ++++++++++++++++++--- > drivers/net/cpfl/cpfl_rxtx.h | 14 ++ > 6 files changed, 195 insertions(+), 19 deletions(-) >=20 > diff --git a/drivers/common/idpf/idpf_common_virtchnl.c > b/drivers/common/idpf/idpf_common_virtchnl.c > index 211b44a88e..6455f640da 100644 > --- a/drivers/common/idpf/idpf_common_virtchnl.c > +++ b/drivers/common/idpf/idpf_common_virtchnl.c > @@ -733,7 +733,7 @@ idpf_vc_vectors_dealloc(struct idpf_vport *vport) > return err; > } >=20 > -static int > +int > idpf_vc_ena_dis_one_queue(struct idpf_vport *vport, uint16_t qid, > uint32_t type, bool on) > { > diff --git a/drivers/common/idpf/idpf_common_virtchnl.h > b/drivers/common/idpf/idpf_common_virtchnl.h > index db83761a5e..9ff5c38c26 100644 > --- a/drivers/common/idpf/idpf_common_virtchnl.h > +++ b/drivers/common/idpf/idpf_common_virtchnl.h > @@ -71,6 +71,9 @@ __rte_internal > int idpf_vc_txq_config_by_info(struct idpf_vport *vport, struct virtchnl= 2_txq_info > *txq_info, > uint16_t num_qs); > __rte_internal > +int idpf_vc_ena_dis_one_queue(struct idpf_vport *vport, uint16_t qid, > + uint32_t type, bool on); > +__rte_internal > int idpf_vc_queue_grps_del(struct idpf_vport *vport, > uint16_t num_q_grps, > struct virtchnl2_queue_group_id *qg_ids); > diff --git a/drivers/common/idpf/version.map b/drivers/common/idpf/versio= n.map > index 17e77884ce..25624732b0 100644 > --- a/drivers/common/idpf/version.map > +++ b/drivers/common/idpf/version.map > @@ -40,6 +40,7 @@ INTERNAL { > idpf_vc_cmd_execute; > idpf_vc_ctlq_post_rx_buffs; > idpf_vc_ctlq_recv; > + idpf_vc_ena_dis_one_queue; > idpf_vc_irq_map_unmap_config; > idpf_vc_one_msg_read; > idpf_vc_ptype_info_query; This change is in common, better to split this patch to two.