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 6BAFFA0551; Fri, 26 Aug 2022 07:50:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B42440146; Fri, 26 Aug 2022 07:50:47 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2131.outbound.protection.outlook.com [40.107.93.131]) by mails.dpdk.org (Postfix) with ESMTP id 7BFF540143 for ; Fri, 26 Aug 2022 07:50:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lAvpx+yCDCLt2m4q3rp5om5J7+7reVPuiZhhVw94jQY/Y/Vwkw5XDlU498A8ByH89pA7mQwRGnEFXxFSU1Sj+60wkjloLUD9xifpVr9881MVb/Bf0Mk1otNq3L5cBOXR+oeoP6SVU29RVAbORI0oQ+p1yh2t1kqRHaQEh2PVoYd18lQvDxU8orqnXzAhYfRV0Vi8hsrJzPRlZ1HPTKk82J5QJj4TbCxztrubBl5WMGSvdfuz8d3TyXdwTGJ0jz71xRUF1OrDJmcND7J3NMUsMCya8YY+dmdyFRpQxBZ1LAc/umq42hmyRXJlY+qUfKCg4TpUBk7ApiEPgIpjRiEhDQ== 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=MBJynN3eFhS2VlUWEUSjz5rtzV4CEan17g/srvHyOQ0=; b=VKskXTCrepQY/caMk6OXqx0kOiClRRDTv26sdKtAwtkLnhRRGSpA8LxHJ/yND7hpMI9A3iyc0TF+Lg9gk6VQIIVdUna3joqO1XKiIOAj6Kuvn63dgHdnd7va4vaXFr1JjyFkj75Ymo8QMOHsp+F0uscEkTqsNwQY254lWkLV+lsqOUjbHHQMVHsC/6TPNLhdeTaZG8C67/OwrtoUMsUT/g2hzPuG+Hob6B8kcCcidG6LXoIb1yeXLMh3C66LWwhASUaj4yExhMQ64qO/o1cm4q9e15vQvScJWEdxIAY7iln3GAImyp6MawQzvf3U0HrulWK1RBDhJ+XnY8S9Vi4Fig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MBJynN3eFhS2VlUWEUSjz5rtzV4CEan17g/srvHyOQ0=; b=KO/usHoPZLJAiqNXqJd/46sM8VG50uFYE6FfZ6WfuAiptZSbpSNK6rIwG98dortkG+zhx45b8ZFwYNk3oNWgDzA4uhxRW4h1fxDW4zS7nAB4BTMYVbRohHQiZiVhP/uZ3Oc+vN+7nsHKUdYviL62EcwNAJkdjelouO8w2X6hQ9A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by MWHPR13MB1741.namprd13.prod.outlook.com (2603:10b6:300:137::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.3; Fri, 26 Aug 2022 05:50:42 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::402d:6abc:83a8:2431]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::402d:6abc:83a8:2431%6]) with mapi id 15.20.5588.003; Fri, 26 Aug 2022 05:50:42 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, James Hershaw Subject: [PATCH] net/nfp: support Corigine PCIe ID for the nfp PMD Date: Fri, 26 Aug 2022 13:50:14 +0800 Message-Id: <1661493014-24112-1-git-send-email-chaoyong.he@corigine.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BY3PR05CA0030.namprd05.prod.outlook.com (2603:10b6:a03:254::35) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0a685876-b09a-4a2e-daec-08da8726e920 X-MS-TrafficTypeDiagnostic: MWHPR13MB1741:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5+ZUJ/7/KodlbWaNA/vdR5wU8n5HJS1pqThU4YFCP73pWxVVQHKSExvPRlgi5D67VdDUm0Xk6BzCpqfuNd82ASZx2VohNdqmQjI39XXOiXDeM4cWYjaRjSBje9MLP7g3LBOmGKc9XYl3Y7QXSohTiAU1Qj2qKOOHOl8t6V9IzEhaoBTNXJ5FWi0JuqhJvO9SQnjavIGgtHewUzafOHC0OGFHsZoTWgcyUO5yQ+0ijBUKnxSw4h2GNyZiEH4BZwrZKGbnUuc3bP/5vBNAYHzaTKIQZ5FQrO3qyWsMQCcJfn61d8ECJpZsvPRCD/e86gp6NmUTRBDafHTmq1j80sxGscVPl70P8DX76j5SWTfhtWuIXffk0gbV4r9ZUr3Y75HlH0RNvragyQuqC5/HU0HmkHqtxfwHT3g7pZmpZtKvkVV+Iv7sNyGEHAVB+K/2/z+GxSb2muanO14QJ2WyQNEt0kT/+RV+K2K3Bwg+bXpNDVcKn5VbLYchfURwvohKGCA3K8vGgJg6JLcJ60rbixfLlskhdsj4W3K4R11O45IkuYln9iafEDP032jTOFX5mHB9bFpxn/x0hv+xQafUYs+8/tcgSCvCzJNhLJllyPiDOqNc7JBsv5wiclgZGEMg0e28vEFJFHjHD/1n1nOviDWHtCkxiPbAefHQKSr/AWUBbD8+R9a69IPJQfU/XftRTWfssmDamSbaRRkYpeRYbjMXe07EeqIhv8jEXJ+Vr7yPbt3SoUejqddzsaNC8VpJAu6w1fJxpiZGl2qR6ySo78E4rvW3JnrWHp6e32AdLmn/MAfZzTAX43RtEyOk/24OAhAU X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(136003)(346002)(396003)(366004)(376002)(39840400004)(38100700002)(186003)(316002)(478600001)(8936002)(6506007)(38350700002)(52116002)(6666004)(26005)(6916009)(2616005)(6512007)(2906002)(86362001)(6486002)(107886003)(5660300002)(41300700001)(8676002)(66946007)(36756003)(66476007)(44832011)(4326008)(66556008); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b1NocFo1V3F1ekpGRjMyRlJiS3kxM2lnQ3J6YURPaVpOYUxxbU53TXY1R3J0?= =?utf-8?B?NmdqV3JrK0ZwVXN5Q0NPbHNSY29sWFRLdTRaNGhuT3d0Vzl5b2hYWlk1enpp?= =?utf-8?B?MEVhTVZmWDM4NmdOSEhheVZyOElVY3RtT0Q1UkJlaForUkxyTlBiVTRoczd3?= =?utf-8?B?Y2pwQUlhMklQK1ZicUlZYkdIdEQ2Mnp3Tndxd05ZVWFnRndlbFo4WGNqRFFC?= =?utf-8?B?ek00MExPL2tVT1Y3K2xUNWN0dlIxeE5TeFRhN0tHeWxtWFMzVGQ4VGVrUnQr?= =?utf-8?B?Q3I4QWo0NzE4TVJsZXQwUVoza1ZCQ2ZhR2RVQWphTnlwREVZRGlxWnBYcktq?= =?utf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MFNTdmF4cDJyZVdW?= =?utf-8?B?V1E9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a685876-b09a-4a2e-daec-08da8726e920 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2022 05:50:41.9222 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NgALDtfMbwJzoXbjxDE7QUcyKObYGg4In9ETVw6Iyfk+biJxUCJsLOVWJyB4epN53O1vSSvkKct9tjtqsIBQrd4q/yeH1xrXWlof3paRtTA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR13MB1741 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 From: James Hershaw Previously the nfp driver as supported NFP chips with the Netronome PCIe ID. This patch extends the PMD to also support NFP chips with the Corigine PCIe vendor ID (0x1da8), which at this point are assumed to be otherwise identical from a software perspective. Signed-off-by: James Hershaw Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_common.h | 2 ++ drivers/net/nfp/nfp_ethdev.c | 12 ++++++++++++ drivers/net/nfp/nfp_ethdev_vf.c | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/drivers/net/nfp/nfp_common.h b/drivers/net/nfp/nfp_common.h index 6d917e4..6ceb7e9 100644 --- a/drivers/net/nfp/nfp_common.h +++ b/drivers/net/nfp/nfp_common.h @@ -16,6 +16,8 @@ #define NFP_NET_PMD_VERSION "0.1" #define PCI_VENDOR_ID_NETRONOME 0x19ee +#define PCI_VENDOR_ID_CORIGINE 0x1da8 + #define PCI_DEVICE_ID_NFP3800_PF_NIC 0x3800 #define PCI_DEVICE_ID_NFP3800_VF_NIC 0x3803 #define PCI_DEVICE_ID_NFP4000_PF_NIC 0x4000 diff --git a/drivers/net/nfp/nfp_ethdev.c b/drivers/net/nfp/nfp_ethdev.c index 5cdd34e..3ab82d3 100644 --- a/drivers/net/nfp/nfp_ethdev.c +++ b/drivers/net/nfp/nfp_ethdev.c @@ -1071,6 +1071,18 @@ PCI_DEVICE_ID_NFP6000_PF_NIC) }, { + RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE, + PCI_DEVICE_ID_NFP3800_PF_NIC) + }, + { + RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE, + PCI_DEVICE_ID_NFP4000_PF_NIC) + }, + { + RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE, + PCI_DEVICE_ID_NFP6000_PF_NIC) + }, + { .vendor_id = 0, }, }; diff --git a/drivers/net/nfp/nfp_ethdev_vf.c b/drivers/net/nfp/nfp_ethdev_vf.c index d304d78..affea9d 100644 --- a/drivers/net/nfp/nfp_ethdev_vf.c +++ b/drivers/net/nfp/nfp_ethdev_vf.c @@ -505,6 +505,14 @@ PCI_DEVICE_ID_NFP6000_VF_NIC) }, { + RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE, + PCI_DEVICE_ID_NFP3800_VF_NIC) + }, + { + RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE, + PCI_DEVICE_ID_NFP6000_VF_NIC) + }, + { .vendor_id = 0, }, }; -- 1.8.3.1