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 544A5A0548; Wed, 12 Oct 2022 04:59:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 04A8140691; Wed, 12 Oct 2022 04:59:50 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 3816F4067C for ; Wed, 12 Oct 2022 04:59:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665543588; x=1697079588; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Fu+XMpUL01HT0wDHCOzEzpPedYp6WP0fKisWqmRDEOw=; b=VBBy7THQrh36UK8T/HvqGMte4Ct51jIfiEaFZVxMuFbGL5688sE+BgJ/ 9tmOEx9o3yncLuqVC8FSO+Bz2cO6Bxs5Vg9ofJxDHch3XkMj2tEWBW0eB xtGd5DgbPuE0igre+o+opUMppJMmwPjQ4S5Oo2ww1AxFnQkaUIt6y/vOE JA18ULBq1L8tsI8anEgohmgdUi/XnSMd4C+jlLZtJKVnYo4xylqo5wA88 6F8yklWbje73GII2QOn6YYk5SFA7/rA+AO0OjNBtL5Z62q2eQEFL18jjz phBBeFTFFK4OkwFgdCOeNP1612RwtCmv2G+kVaWFGsjJXhGcphDioN7lb w==; X-IronPort-AV: E=McAfee;i="6500,9779,10497"; a="287949817" X-IronPort-AV: E=Sophos;i="5.95,177,1661842800"; d="scan'208";a="287949817" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2022 19:59:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10497"; a="871744977" X-IronPort-AV: E=Sophos;i="5.95,177,1661842800"; d="scan'208";a="871744977" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga006.fm.intel.com with ESMTP; 11 Oct 2022 19:59:45 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 11 Oct 2022 19:59:45 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 11 Oct 2022 19:59:45 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 11 Oct 2022 19:59:45 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.177) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 11 Oct 2022 19:59:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C0DPa+IyJtXXWYAGbGcjx2vBtjO+3/kwzMRq/YsrBUHMcJMTDdwNtRZRMq4bu4Wg2xVHxJjqFX98eX/Z8GJL16dQ6eg0fHEMV9ofYUFy+wVtX7Qkud0KyFB2WjsoSgadmUP3l55g5/RN8iov7l0Xnlpe0vTQCJqJfl45/7QTCyu8/NffD66T0iRXdkOzOLhaDloH+uuLkPnzgs8/cZL3PTcC4A76dPUInZDEctqz06Z7QLx90sKQfLJAslQZ69jfubBM11DqWg8vgVk68IgYb86yK80DEBPPsjMqzZxC2Q8U474tSuOFJ/2uITKHSxARrw7ShW3O7oZ3UkekqQiycg== 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=HSFedFZcNCZPu4CaLmpq610fxGGaQiXThhmuadswEEo=; b=LxZLWspPTvNJ3Pd15jKLrmd2h/B1NtgAnCAqQV+V1ET/pr0pQ/IXVg0OI6/dTZSjZxvLtnixdJZjKEUr+H91jHYjQdNWgweKdGig0VQn+jdohNP7CuQwIa3G8hIwmM95Hwew3q9iu3jrNnOHPaEuoxU6XjHz5GagHPkjz4US4M9p+BTooHu39SqMT81UsAn99ubWnCyN6NVTueYSF4pngmr0DsoorIit7VZKWOs51Gjo07CynxsKNxETjAfQQphRmgMNNrXHuMF4skzjxDpE77lNRXGdI5pRGaeYD9TF1Fzvu4Ddoj+Xm3DCwBa2u6CnzgCdQ7WLPAUirs9DxmUXSQ== 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 SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by CH3PR11MB7390.namprd11.prod.outlook.com (2603:10b6:610:14e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.15; Wed, 12 Oct 2022 02:59:42 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::39bf:57b1:4824:d40d]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::39bf:57b1:4824:d40d%6]) with mapi id 15.20.5709.015; Wed, 12 Oct 2022 02:59:41 +0000 From: "Xia, Chenbo" To: "Pei, Andy" , "dev@dpdk.org" CC: "Xu, Rosen" , "Huang, Wei" , "Cao, Gang" , "maxime.coquelin@redhat.com" Subject: RE: [PATCH v3 1/8] vdpa/ifc: add new device ID for legacy network device Thread-Topic: [PATCH v3 1/8] vdpa/ifc: add new device ID for legacy network device Thread-Index: AQHYyZPnjcIaL0qBlEuRPLQ2Ahd/Pq4KOg2A Date: Wed, 12 Oct 2022 02:59:40 +0000 Message-ID: References: <1661229305-240952-2-git-send-email-andy.pei@intel.com> <1663308990-621-1-git-send-email-andy.pei@intel.com> <1663308990-621-2-git-send-email-andy.pei@intel.com> In-Reply-To: <1663308990-621-2-git-send-email-andy.pei@intel.com> Accept-Language: en-US, zh-CN 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: SN6PR11MB3504:EE_|CH3PR11MB7390:EE_ x-ms-office365-filtering-correlation-id: 3821fbfd-9c09-4e88-3f82-08daabfdcec3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2UNm3+Y0vUYWziqtYg/YqHrZWLnPgGAwA/er/owG2B0Vr91zviT8OqtVi3VxLi2MSiuV6ci+Wrcxi7g3JQ9vLENedh4u1s+5o0pGQImEQ5a+5eqaSzjKteTV4DnUQr1W4kcucAl0FMp8PJKed1rBREFNUPkG4kKJm0gCl9ECrAOT6RIoN6i5AjAoCu34wKubVVfEb7//uPX4nRtxLmkvYUxzyIaCl7RCLR8QwjKtDhcJm22m2ewPHi1+Sx7RSgy/OlTd+KJyWJnAeUfFR0hPgqZ1dIrYdRl6EvszyyjOp1r90fxn0laOZIq3JOiJrgLEqz2l3b7Wn69Do2DzwnC4G7YC3fM4jTq16MeGggPwhNM3IpraV0YPUGetLXiSmhAzrYG9G3QgpSr0fYI645PYxpIQllsxkeHywnZqQ0mFucPTwMp8IqoIJbKbhkkxibxccUZXYCO/QahWY5xzDiKqprcw0q/3j8c2Ay1VFXzmfYQGTHU67zUOS5LCbmFsPy3nBVLV5s2V+b9BRfDq7N/gv4LQb2xQadbbl4D4qr5Zu06GZPVqWzMNp/nbMIFsC6gTcZeCV/Gsr5TsWhRJbwy7SjD0HMqyWTiAsfIBdIAnWTcgZD4qUPh7VWBlxVxkYIDIv2dClgyUXWnQz67KxPYEUeNivWN7t70Q4jXMPGuaKaEQs73s1AJCj66wMyzngLpQWh3Qv0UGmNMoOcUcvQpopNfvfQnm5k35Up2BSRJMeDZGqRmYJA6MA8bUSCHkNMJRvI9PRElj+ucNqL/jE+pBjA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(346002)(136003)(396003)(376002)(366004)(451199015)(71200400001)(55016003)(41300700001)(83380400001)(7696005)(6506007)(86362001)(110136005)(2906002)(52536014)(54906003)(478600001)(122000001)(8936002)(53546011)(66946007)(66556008)(8676002)(9686003)(66446008)(4326008)(33656002)(64756008)(316002)(186003)(38100700002)(38070700005)(5660300002)(76116006)(82960400001)(66476007)(26005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?YMr4vPSje1cKEzja6kdVx87mJFJD7fLO3OHTbno1h2q/xVao7uiktMt93Lrl?= =?us-ascii?Q?Li/57fmmELb4tktv7YG0eSZH1JocEu4pdVxqgoW62f4SEJ+dC2HWMDrWUc4d?= =?us-ascii?Q?YTXfTxrdbBL3nCib9SunC2FjpD4OLCmwvUkYxLsZR0pJ54gE3oBGRdC+rbhB?= =?us-ascii?Q?Q8dWuoY2Mm6ao0nddbOFIElx9LoNuymhgdDZJtVx/BWtywswKabQ4YzF09mP?= =?us-ascii?Q?ADjSO683pQhNwV4f2QE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W?= =?us-ascii?Q?tabh7WbWGIPU9lPlIbspodHaBj8SOEw9w71IXO3vqFmC80slzAk9byZ7UZLx?= =?us-ascii?Q?vwoQZKFGw41J/AcOKx1ukr8gd1pXY/Roa5ujp/GvJXwNF1pJ9vMof8TAp9Oz?= =?us-ascii?Q?1+EHWNwpgXzmAW9YzuHl6IHZbvvEhMulyxXS3H7j7Pc10HFe03zKumRtxorx?= =?us-ascii?Q?dU0hV4gzcq4LYGwJlv5r0/FR5VG4/haDefpud9bvMEqKaw7VcrhF3nK0Jp4j?= =?us-ascii?Q?H4ZVbZ5xWnrMwjYo7Xm79mkjb/DFZsaIgq2Kyl32ETse2880QASQszUofqoY?= =?us-ascii?Q?6LT037AyMDUXda6vuU37+LwSK0A/KJ0d15IzeDJl9TWod/otiqNB/VRvk+gv?= =?us-ascii?Q?1gCQ8K49iWGfPvE40UBcsVftpOM7pva7Q79py0nkM4qD71SBzJIgMI0+PQ+8?= =?us-ascii?Q?8c40jUoDB4wp9p15GGlwJn82VyVt6q6ZzluISQEi?= 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: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3821fbfd-9c09-4e88-3f82-08daabfdcec3 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2022 02:59:40.9855 (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: HswnxLhEHUa8BzXD7uQb5qOYucmHpP5XXnvFZntvhB7mGtRQpKAbdok4H1CBvNSCAo8bedJlkS4SoMupdxFmMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7390 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: Pei, Andy > Sent: Friday, September 16, 2022 2:16 PM > To: dev@dpdk.org > Cc: Xia, Chenbo ; Xu, Rosen ; > Huang, Wei ; Cao, Gang ; > maxime.coquelin@redhat.com > Subject: [PATCH v3 1/8] vdpa/ifc: add new device ID for legacy network > device >=20 > From: Huang Wei >=20 > Add new device id to support IFCVF_NET_TRANSITIONAL_DEVICE_ID (0x1000). > Rename macro from "IFCVF_BLK_DEVICE_ID" to "IFCVF_SUBSYS_BLK_DEVICE_ID". >=20 > Signed-off-by: Huang Wei > Signed-off-by: Andy Pei > --- > drivers/vdpa/ifc/base/ifcvf.h | 6 ++++-- > drivers/vdpa/ifc/ifcvf_vdpa.c | 13 ++++++++++--- > 2 files changed, 14 insertions(+), 5 deletions(-) >=20 > diff --git a/drivers/vdpa/ifc/base/ifcvf.h b/drivers/vdpa/ifc/base/ifcvf.= h > index 9d95aac..ef7697a 100644 > --- a/drivers/vdpa/ifc/base/ifcvf.h > +++ b/drivers/vdpa/ifc/base/ifcvf.h > @@ -12,12 +12,14 @@ > #define IFCVF_BLK 1 >=20 > #define IFCVF_VENDOR_ID 0x1AF4 > -#define IFCVF_NET_DEVICE_ID 0x1041 > +#define IFCVF_NET_MODERN_DEVICE_ID 0x1041 > #define IFCVF_BLK_MODERN_DEVICE_ID 0x1042 > +#define IFCVF_NET_TRANSITIONAL_DEVICE_ID 0x1000 > #define IFCVF_BLK_TRANSITIONAL_DEVICE_ID 0x1001 > #define IFCVF_SUBSYS_VENDOR_ID 0x8086 > #define IFCVF_SUBSYS_DEVICE_ID 0x001A > -#define IFCVF_BLK_DEVICE_ID 0x0002 > +#define IFCVF_SUBSYS_NET_DEVICE_ID 0x0001 > +#define IFCVF_SUBSYS_BLK_DEVICE_ID 0x0002 >=20 > #define IFCVF_MAX_QUEUES 1 >=20 > diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.= c > index ac42de9..07cc63d 100644 > --- a/drivers/vdpa/ifc/ifcvf_vdpa.c > +++ b/drivers/vdpa/ifc/ifcvf_vdpa.c > @@ -1684,23 +1684,30 @@ struct rte_vdpa_dev_info dev_info[] =3D { > static const struct rte_pci_id pci_id_ifcvf_map[] =3D { > { .class_id =3D RTE_CLASS_ANY_ID, > .vendor_id =3D IFCVF_VENDOR_ID, > - .device_id =3D IFCVF_NET_DEVICE_ID, > + .device_id =3D IFCVF_NET_MODERN_DEVICE_ID, > .subsystem_vendor_id =3D IFCVF_SUBSYS_VENDOR_ID, > .subsystem_device_id =3D IFCVF_SUBSYS_DEVICE_ID, > }, >=20 > { .class_id =3D RTE_CLASS_ANY_ID, > .vendor_id =3D IFCVF_VENDOR_ID, > + .device_id =3D IFCVF_NET_TRANSITIONAL_DEVICE_ID, > + .subsystem_vendor_id =3D IFCVF_SUBSYS_VENDOR_ID, > + .subsystem_device_id =3D IFCVF_SUBSYS_NET_DEVICE_ID, > + }, > + > + { .class_id =3D RTE_CLASS_ANY_ID, > + .vendor_id =3D IFCVF_VENDOR_ID, > .device_id =3D IFCVF_BLK_TRANSITIONAL_DEVICE_ID, > .subsystem_vendor_id =3D IFCVF_SUBSYS_VENDOR_ID, > - .subsystem_device_id =3D IFCVF_BLK_DEVICE_ID, > + .subsystem_device_id =3D IFCVF_SUBSYS_BLK_DEVICE_ID, > }, >=20 > { .class_id =3D RTE_CLASS_ANY_ID, > .vendor_id =3D IFCVF_VENDOR_ID, > .device_id =3D IFCVF_BLK_MODERN_DEVICE_ID, > .subsystem_vendor_id =3D IFCVF_SUBSYS_VENDOR_ID, > - .subsystem_device_id =3D IFCVF_BLK_DEVICE_ID, > + .subsystem_device_id =3D IFCVF_SUBSYS_BLK_DEVICE_ID, > }, >=20 > { .vendor_id =3D 0, /* sentinel */ > -- > 1.8.3.1 Reviewed-by: Chenbo Xia