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 F275045B96; Tue, 22 Oct 2024 00:38:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E091640615; Tue, 22 Oct 2024 00:38:24 +0200 (CEST) Received: from egress-ip11a.ess.de.barracuda.com (egress-ip11a.ess.de.barracuda.com [18.184.203.234]) by mails.dpdk.org (Postfix) with ESMTP id CC5F340615 for ; Tue, 22 Oct 2024 00:38:21 +0200 (CEST) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02lp2233.outbound.protection.outlook.com [104.47.11.233]) by mx-outbound8-87.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 21 Oct 2024 22:38:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jT3H0cBcn1DHNgYYuMXQ3Cno0bnYt0+EvX8X1xJpY7uYI1d4hP7sCjpH8lInicSZwB1Gx6+FOj/fsyIB70hwVpbdHcoSnR5sTd5ZDTXxoom2fJBy0Xu2C8wTKBrbADgypZlZR4cPxmIvdGWeMW8+p6yB1rJIAa3ke2iWbNx47dFaTMqd6ALJY1IdfM3Q51gcyxD/gBYovuzuMVnb68JEiKegVTN8sCjyQRKnc2JVpt8TqqccW8eBNdUcNDNnGabyh0qtAcpMouHSi/gQQTPVGECJjn9Wf9qImhu52ZoFLOxfvfFBhyfj3min1AFgeI1JjoxDcml/LUSFKgBmevnQnw== 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=e5XVJbCeTTx0bhYm7XS72FjUdUaWC5p2Zxm9Yo1Ft0s=; b=POzGvYy95uyeuHgH08ztxzlr+Helmwvmy2jXkJLjW7XWceWtu8xmrKfM9uTS3Rz41dzu2u2CEJ0mR3iN7jC9AgHOc4KF0db5YjCDz/LpW9dYWIrFaYUX87W/zhk2VX1hmjLLQkwGE2lj4GAIim2IZbobxhbdjctWiAn7JZK+cJLK7eFpDAitfXAMuZhKg6VEOc209Rf7MXRIxULmnuI/TWvyHV1mdjih3sGFDN9AQ8TufmpU9cD7XjhH/H72E3D2qR2GmFkq4l2xNakffMhvs6M/SWHOrckf0NPd5Am0fvJvGIf4QPTHr7YLDYhFxjs2D9F7KMtc/pOhxpMUzqG5pg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 178.72.21.4) smtp.rcpttodomain=dpdk.org smtp.mailfrom=napatech.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=napatech.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=napatech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e5XVJbCeTTx0bhYm7XS72FjUdUaWC5p2Zxm9Yo1Ft0s=; b=CfS0yw7cOM3O2l3a0kDu87pRmJ06m/pwfx6CIfj0lC9a2HLYdSBNgAUuzUjhaG4myjoazq2TKq7ZRaaW7xp030ON+Yuzdooz/1fn09rerVRRiSDncK7s41dnsgdhCqgZLfDgY/9hir3aN2URWUAtfRein7KbF69qohXvYGS1Kzg= Received: from AS9PR04CA0148.eurprd04.prod.outlook.com (2603:10a6:20b:48a::14) by AS8P190MB1936.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:521::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 21:06:15 +0000 Received: from AMS0EPF000001A8.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::b8) by AS9PR04CA0148.outlook.office365.com (2603:10a6:20b:48a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Mon, 21 Oct 2024 21:06:15 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 178.72.21.4) smtp.mailfrom=napatech.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=napatech.com; Received-SPF: Fail (protection.outlook.com: domain of napatech.com does not designate 178.72.21.4 as permitted sender) receiver=protection.outlook.com; client-ip=178.72.21.4; helo=localhost.localdomain; Received: from localhost.localdomain (178.72.21.4) by AMS0EPF000001A8.mail.protection.outlook.com (10.167.16.148) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Mon, 21 Oct 2024 21:06:15 +0000 From: Serhii Iliushyk To: dev@dpdk.org Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com, andrew.rybchenko@oktetlabs.ru, ferruh.yigit@amd.com, Danylo Vodopianov Subject: [PATCH v1 63/73] net/ntnic: add scrub registers Date: Mon, 21 Oct 2024 23:05:05 +0200 Message-ID: <20241021210527.2075431-64-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241021210527.2075431-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001A8:EE_|AS8P190MB1936:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 7ee08e91-8065-49e5-1884-08dcf2143385 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|36860700013|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?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SEW+oLa/?= =?us-ascii?Q?roydk+qgt7a9nMnaMUqhTLpE3oFDhAAD3XLCo9ShPk5hopp0QMAJh20XA4ta?= =?us-ascii?Q?n1kTmhttfSapa8cEnRUwtL8N3RxEXN6cOOuAvTb3UWlQZ6oWamKYLo1VjxvU?= =?us-ascii?Q?93qrV346nBU+H4Q2ZXB+yl7D4XaMzUuGUZTaLwtipinucoA7FLSqicYphCPd?= =?us-ascii?Q?AH5MQ2Xxrk9MBfE55SB2VNizv2rSh1TVwpStiapGS8QtfOLZUmcGIB0+LgEP?= =?us-ascii?Q?93yIGrAGi79BiAIaa4/w+RGXzFhwNTLZ1Ar+Hw0+An6Q+Ldch69QEdlmqWmq?= =?us-ascii?Q?ee30aXAIDkfZg8FEIMLndGsH1X4t8bLrymH3D7ylw9m23rhc1PufvNI0psEj?= =?us-ascii?Q?XPif0aTbT7JuEVdUYGfnbhWviYQO6iRdj9Y3LcdciLJx45VLNrMeo8/FM8Ml?= =?us-ascii?Q?XBhUx83uvE5FEA4SxxDRn7mJytYY8PrflJYJErxfVm69n8YbNxsJJlTuluGj?= =?us-ascii?Q?qN7RJ61OIHzgUO4jh/huigJIa7cDo+PhKz9GkHQ0LMhYgSLnAQ=3D=3D?= X-Forefront-Antispam-Report: CIP:178.72.21.4; CTRY:DK; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:localhost.localdomain; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(1800799024)(36860700013)(376014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: VGvQ9PjbJVzxxHpJqROh+u+jkDz7FVYj0xhYVmeAz7ep8+67rRHwkpKCI373OrFOwcMGNGyUkjimfy1WtsfOjo6k2G0oKTDD+5mAgbX5KrmL1pESJx6+FMIfrHK5C9m8cYjZSCaEvOu869dZ8c+wx7oQPFmcglC0B3AOrL+GplympndrR02mHfGBfhjkyiS1UU7AGWe5ZC4BSWfi0TUnxJL4LyUBjc7VWvlGQkmPyeoVyABH935L/cq8OBsJExtKeh4zKBncG9cDA/Wb2aJeNKhTDrtz86+yJuG87KbxdeTrIQuhnhb5/yQIIvq58i+OsGSh4vfKo+vnCwblcANDvB/TIWq7vT3W2PXvhfl1a72oIsnzfSrhz/Z7uCiw5eVsPBtnfwIGgDugVitz7q2nr7BF6FVwJyIgJNwgDQd7l9dOhTPEKMDXJ51oFXuGJH4HFwuNq4fYBhaUdv0ND4htQLrASaArmZMO3aC5QWtJLQSt2QNOUBa2TnOMgrY0b2Xge1TYIG8ypSBTmU65QYvTTQeoSwbPSSnRbZB/jMQxel9vYS2b+0FCTEl355fXsP/5Q2aRsUPsWYBo1V2NuST584eeP2RAfe2m7oe2mOVmpdsqucMAtXJxGpEVvbvgDzwY53RwDCwoPcrlfoMz1RVM2bBoV+KkaykMiXoQjM0Ln9c= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 21:06:15.5833 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ee08e91-8065-49e5-1884-08dcf2143385 X-MS-Exchange-CrossTenant-Id: c4540d0b-728a-4233-9da5-9ea30c7ec3ed X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c4540d0b-728a-4233-9da5-9ea30c7ec3ed; Ip=[178.72.21.4]; Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001A8.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P190MB1936 X-OriginatorOrg: napatech.com X-BESS-ID: 1729550301-302135-12910-46359-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.11.233 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVsZmFkZAVgZQ0DzRONXM1DTNMs k8LdXCxNzAIMXQ3DzFwtg81dQozchIqTYWANQUzAVBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259884 [from cloudscan8-241.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 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: Danylo Vodopianov Scrub fields were added to the fpga map file Remove duplicated macro Signed-off-by: Danylo Vodopianov --- .../supported/nthw_fpga_9563_055_049_0000.c | 17 ++++++++++++++++- drivers/net/ntnic/ntnic_ethdev.c | 3 --- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_049_0000.c b/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_049_0000.c index 620968ceb6..f1033ca949 100644 --- a/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_049_0000.c +++ b/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_049_0000.c @@ -728,7 +728,7 @@ static nthw_fpga_field_init_s flm_lrn_data_fields[] = { { FLM_LRN_DATA_PRIO, 2, 691, 0x0000 }, { FLM_LRN_DATA_PROT, 8, 320, 0x0000 }, { FLM_LRN_DATA_QFI, 6, 704, 0x0000 }, { FLM_LRN_DATA_QW0, 128, 192, 0x0000 }, { FLM_LRN_DATA_QW4, 128, 64, 0x0000 }, { FLM_LRN_DATA_RATE, 16, 416, 0x0000 }, - { FLM_LRN_DATA_RQI, 1, 710, 0x0000 }, + { FLM_LRN_DATA_RQI, 1, 710, 0x0000 }, { FLM_LRN_DATA_SCRUB_PROF, 4, 712, 0x0000 }, { FLM_LRN_DATA_SIZE, 16, 432, 0x0000 }, { FLM_LRN_DATA_STAT_PROF, 4, 687, 0x0000 }, { FLM_LRN_DATA_SW8, 32, 32, 0x0000 }, { FLM_LRN_DATA_SW9, 32, 0, 0x0000 }, { FLM_LRN_DATA_TEID, 32, 368, 0x0000 }, { FLM_LRN_DATA_VOL_IDX, 3, 684, 0x0000 }, @@ -782,6 +782,18 @@ static nthw_fpga_field_init_s flm_scan_fields[] = { { FLM_SCAN_I, 16, 0, 0 }, }; +static nthw_fpga_field_init_s flm_scrub_ctrl_fields[] = { + { FLM_SCRUB_CTRL_ADR, 4, 0, 0x0000 }, + { FLM_SCRUB_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s flm_scrub_data_fields[] = { + { FLM_SCRUB_DATA_DEL, 1, 12, 0 }, + { FLM_SCRUB_DATA_INF, 1, 13, 0 }, + { FLM_SCRUB_DATA_R, 4, 8, 0 }, + { FLM_SCRUB_DATA_T, 8, 0, 0 }, +}; + static nthw_fpga_field_init_s flm_status_fields[] = { { FLM_STATUS_CACHE_BUFFER_CRITICAL, 1, 12, 0x0000 }, { FLM_STATUS_CALIB_FAIL, 3, 3, 0 }, @@ -921,6 +933,8 @@ static nthw_fpga_register_init_s flm_registers[] = { { FLM_RCP_CTRL, 8, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, flm_rcp_ctrl_fields }, { FLM_RCP_DATA, 9, 403, NTHW_FPGA_REG_TYPE_WO, 0, 19, flm_rcp_data_fields }, { FLM_SCAN, 2, 16, NTHW_FPGA_REG_TYPE_WO, 0, 1, flm_scan_fields }, + { FLM_SCRUB_CTRL, 10, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, flm_scrub_ctrl_fields }, + { FLM_SCRUB_DATA, 11, 14, NTHW_FPGA_REG_TYPE_WO, 0, 4, flm_scrub_data_fields }, { FLM_STATUS, 1, 17, NTHW_FPGA_REG_TYPE_MIXED, 0, 9, flm_status_fields }, { FLM_STAT_AUL_DONE, 41, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1, flm_stat_aul_done_fields }, { FLM_STAT_AUL_FAIL, 43, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1, flm_stat_aul_fail_fields }, @@ -3058,6 +3072,7 @@ static nthw_fpga_prod_param_s product_parameters[] = { { NT_FLM_PRESENT, 1 }, { NT_FLM_PRIOS, 4 }, { NT_FLM_PST_PROFILES, 16 }, + { NT_FLM_SCRUB_PROFILES, 16 }, { NT_FLM_SIZE_MB, 12288 }, { NT_FLM_STATEFUL, 1 }, { NT_FLM_VARIANT, 2 }, diff --git a/drivers/net/ntnic/ntnic_ethdev.c b/drivers/net/ntnic/ntnic_ethdev.c index 9c286a4f35..263b3ee7d4 100644 --- a/drivers/net/ntnic/ntnic_ethdev.c +++ b/drivers/net/ntnic/ntnic_ethdev.c @@ -47,9 +47,6 @@ const rte_thread_attr_t thread_attr = { .priority = RTE_THREAD_PRIORITY_NORMAL } #define SG_HW_RX_PKT_BUFFER_SIZE (1024 << 1) #define SG_HW_TX_PKT_BUFFER_SIZE (1024 << 1) -/* Max RSS queues */ -#define MAX_QUEUES 125 - #define NUM_VQ_SEGS(_data_size_) \ ({ \ size_t _size = (_data_size_); \ -- 2.45.0