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 4F653460DB for ; Wed, 22 Jan 2025 02:39:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DCA54042E; Wed, 22 Jan 2025 02:39:57 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2109.outbound.protection.outlook.com [40.107.243.109]) by mails.dpdk.org (Postfix) with ESMTP id BADE0402A9; Wed, 22 Jan 2025 02:39:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HDMmMkgw2apE67fEoDiZp3o1PFlcUhuD33YKaXY6n9iYLugTUV2o6njpBjb6kCRjER+oIbAV20yyJOkl5FzVOgaP7dM5KkFTKSptNwpj1SC+Hi8wSOPpLu5I7VYcM7DtDPD60k5V3NOakCk3Dc7FE6LRa+PrAWZM9Pf8ok6eue4N6JGDvsSt8qRZGZyzO3KPVF7gpCS+SvrRejvfaTbfGNubIcMM2tVeNxwbZ118X4kaXnVMD9q41f395v+ChN9h3Ge0mpEMhUmNo3X90VT9TvPXU+2mROxrwCQAyRapNYGsLOjnc9cKf9V8r2bZCUpAkN/RO0wAEEw7AHCPR+T5JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=L8V7/4Qn1XAXMPSZwtC4bod3vcVoSiOou3HcVqfdQlw=; b=ry4aZO1LjTwOvIBb1786s4gUIx45JsWUBV7PzT7R9Z8oKI1+DP/sH2DXER7jqzmtKy84hJYEdcej3ocoSLzcvDDkYYlao4YGgHl3J9EkzprKukAAMhe1TUfcXn9d8+K6oTPPSej2/STbMLpP+Z32eI+SPY7N47ZVqt7W4tDRucfMc1J+3i1zVzyj7Y8xXsxC8nAm7UH14OyfS1s1Jy+zrceSF6egk2awPbi+6wgHsoUTMIdP2FZJzsyC8exkSrTDTnjjALqXm+9GOLra6jOgjshSfyhYWMSQC/jV1cIGERbAFjbIx6c2JH7lDzpduF0ttSRqpOJWjFA+Ztbx+MhCig== 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=L8V7/4Qn1XAXMPSZwtC4bod3vcVoSiOou3HcVqfdQlw=; b=oV3FslCL0/phAbiN0l48vtMychG2CoRWYmDviVffpNqxKIvV9oVJ/oX+MiSZgsnt30+66VjQ6bCw1ivdw0zZYyD5/u6ORoFOYY04ZLQHwSXLcZdrEJl21ysTj0UsEDY9jBtKws9oj1cmabNHSXkpRQVwQvBMLEwKCJrtAbAonjM= 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 PH7PR13MB5987.namprd13.prod.outlook.com (2603:10b6:510:15b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Wed, 22 Jan 2025 01:39:52 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%6]) with mapi id 15.20.8356.017; Wed, 22 Jan 2025 01:39:52 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Peng Zhang , stable@dpdk.org, Chaoyong He Subject: [PATCH] net/nfp: set the correct control flag Date: Wed, 22 Jan 2025 09:39:30 +0800 Message-ID: <20250122013930.1705932-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.43.5 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0035.apcprd02.prod.outlook.com (2603:1096:4:195::22) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH7PR13MB5987:EE_ X-MS-Office365-Filtering-Correlation-Id: cc900730-959f-4ef5-5919-08dd3a85aab2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?TE0Wc7LhZvttG+BR9sde3t62u4jxU+ZBMbk/ZoHCCDohiQzNeLhfJP5mWFic?= =?us-ascii?Q?DKIjdAenVGWL3EB3ut6sDeTJmN1rbjkUL+NNxU0U8uwNy4z9J9/X7AnJ6R4e?= =?us-ascii?Q?cG3wq00Wn1HDH7Bbd3EOmJXoclnkmAsHIXh9ca/Xw7mhN7ZjHhdF0i2HbCDX?= =?us-ascii?Q?/Gyz4lKrB6r22P0gR/WOhO1wRpmuZfil8J0SFGAnYy0mWsvcm0FlD+6kB+ej?= =?us-ascii?Q?+XFvWNGnWeVmeBs0hICXhK8r2TX2hmNYO62g3w4iR8yvPbT6W3hsAscm/nDe?= =?us-ascii?Q?o0EwSSZRizWaS6AGNgYhfu1H+BHovZmjPLYH5Bi4uO/bwdy5b4l1PZr3kRyq?= =?us-ascii?Q?oj82a47r0Drxh3lHZOzl+QdX0eU8rNB/EodjSo9xVvscV0fEHFXMb4WQKx8j?= =?us-ascii?Q?yEg2rz8g5ToggiNGzW8KL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f?= =?us-ascii?Q?vFpcCapXwoGKI0gmIrocQ8o8Ii8MG9plAmzkkA2bHJo5zWvFI9YBtw0m5UTf?= =?us-ascii?Q?7QOhfUQNsQH/S9lpql4DFmExOOuYAmctcSHVj7v3zJAhXVdmWvCB8u3eFjmx?= =?us-ascii?Q?lf8xZRp157s33Eg31mq7MxFFrX2XqmOz?= 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:(13230040)(366016)(1800799024)(376014)(52116014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?bus+5ySwmS5ZJYTMsW9BK7+KAxWhgyH0/B/w9ymD9hFgNwy88DNsMPCWXbts?= =?us-ascii?Q?Wu96ttf1MeOdRDp6SgN4v+Ow9N8taa3hD4FC2K8dMdWObot5te15LnbDC0BI?= =?us-ascii?Q?zsTSTFa+9Kwds8zyeM7pm9EEdvb9J5CAFjEEFOCz4lb2qQdHa9f6VT5BPGYy?= =?us-ascii?Q?ak4/x5EG3BnHgVUr6OeiF5bLJEj9eiWIyFluPeEZVyw6I/NP51tJR8q0j3e0?= =?us-ascii?Q?N60b5cXhcqPjNg1JRAIL/KcvshuRp/oBWotZyxpTtNIfPHVN4kYEJefoVCA4?= =?us-ascii?Q?q3yA+5EQTWtpJOE1D13EWYdIql5kiGli6Ddnfub6zD8nh2gg+GDHn/hNEmHI?= =?us-ascii?Q?MBRCY6qe9In0e98y3wv9/a6B+NESexDg7N5XAwIDNmiR2WGMR4IAIUPtjxaG?= =?us-ascii?Q?6jnpVGzvAmS1pfPPK6uREoDS+XK9EGDeZL4/h1rUMgh6PtrwgnLTGlSgNisM?= =?us-ascii?Q?sbCqCsyd/zrp6S6VeKgmApgqgQlvLIqSvuBSv5X55bwXhMRqYm/U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ucsakKWy7K21j//BnQLqt9Ur?= =?us-ascii?Q?lLTMqQUZHtTG+R7KLniAZTQWhP8ZuXSgsAVC+GuY6dReA84uAfThwdjoNb+T?= =?us-ascii?Q?7Cg4zGUh2tsNYGBt56vqGYE5j1uv26S8u8YUbpR/T/SjwwjYHxUpW0sEkIxe?= =?us-ascii?Q?MfRgiNGknHbDpQy60IXgvB7KxCw37TJo3trUINAkMFvXtbsLmTduM7iLcZiQ?= =?us-ascii?Q?+Q=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc900730-959f-4ef5-5919-08dd3a85aab2 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2025 01:39:52.8426 (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: n2PQej32Ur8+keupOT0NG2mXcZ4ulXQTPB8yF+IkyUjigqMnHWGYFsPU4VwMuzYnh6zcp9cOmCs5J2genRbM94im3FFoUpxCNs3EAabrdD4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR13MB5987 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Peng Zhang In the original logic of 'nfp_net_start()', we don't set the 'NFP_NET_CFG_CTRL_MULTI_PF' flag when using multi-pf firmware. Fix it by adding the missing logic. Fixes: 95f978efab42 ("net/nfp: enable multiple PF in application firmware") Cc: stable@dpdk.org Signed-off-by: Peng Zhang Reviewed-by: Chaoyong He --- drivers/net/nfp/nfp_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/nfp/nfp_ethdev.c b/drivers/net/nfp/nfp_ethdev.c index f54483822f..b98eee6b90 100644 --- a/drivers/net/nfp/nfp_ethdev.c +++ b/drivers/net/nfp/nfp_ethdev.c @@ -472,6 +472,9 @@ nfp_net_start(struct rte_eth_dev *dev) if ((cap_extend & NFP_NET_CFG_CTRL_FLOW_STEER) != 0) ctrl_extend |= NFP_NET_CFG_CTRL_FLOW_STEER; + if ((cap_extend & NFP_NET_CFG_CTRL_MULTI_PF) != 0 && pf_dev->multi_pf.enabled) + ctrl_extend |= NFP_NET_CFG_CTRL_MULTI_PF; + update = NFP_NET_CFG_UPDATE_GEN; if (nfp_ext_reconfig(hw, ctrl_extend, update) != 0) return -EIO; -- 2.43.5