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 BDB4645B96; Mon, 21 Oct 2024 23:09:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C256410D2; Mon, 21 Oct 2024 23:06:35 +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 7301B40E13 for ; Mon, 21 Oct 2024 23:06:06 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2175.outbound.protection.outlook.com [104.47.17.175]) 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 21:06:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H8XdylvyQTMk+qqNwn1u2kP2w/ddN1/Y8yyF4hdOA6jy9ck9siKBCSXke/jVTMk25qpfaAUSO5aOLHqaV28GGPb4cTDR4a7IQUIig6HT7hv1E7xXdFUaQ9fzZ8fiZgf9WeY5VnRYwR1vPc7fD0qvinXzLIONApwWvYv1/Q3D9JT1cDDOzDNC6MEsH52kFuT5+RY47XFUXp0th749c27pvINDX6PVYyEWySJ70T/bXWKps2Y6Qjwdvi6s/1d5QxOKv9blgZQJJFcNJBiPp1+JNuvb41s+kBzbwvhshz6ugIZ/GTBcfzuKO4tSF3yk3X9Slb68jC9f1puU6NxZFEXWqQ== 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=mN1p5G0MTKTOUvZhzoNA+wil2SIMafO5l2KelxehsRM=; b=Kkl0EaJZ0aAKD3cf2JX9cP146Zm6wg9S4JuddGxQY0UD/TlTQo/h9fovWzYXMbes4f3Y+1ouhOsCv7M47bB9VnYoyqjKx+oyZWi16sgykES+Oj0523z7DxiYMQHI0+TGcmLKt1WSDxLgLAdZ++BHmoDHfhNFtaa+JhtgaFpvxlbqGfWPeNAbDEtDcnnhG3t33ZEAtKWh8ynIigT3jd2RxORGpdYaAAZ2yLKYTOKZsQqyRUXC7MVsBiDtEafeGZKu0xDVYlsfGdeZ/PVLdfjDdshc6pJ3ppWlc/EAIYRutYFMWHiqxtjvLyO4pSDwn6vQcn3SbMl1LT5wVqhdBpnyTQ== 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=mN1p5G0MTKTOUvZhzoNA+wil2SIMafO5l2KelxehsRM=; b=CaJrwndbwKAMce+9ay+XLC0jTT3PxywaGhufIgWM9+P0STP8GamdyAMr4dZm+A7WMjj5dU6IRz4DVVemKGOkBVDaNT9UU5yiDxlGMqzk+tpd4Spp3H/tRnboAkYApfxgFztHwSL3V58rkYui2uKSrl86exXjtebo4U970dtYGlo= Received: from AS9PR04CA0145.eurprd04.prod.outlook.com (2603:10a6:20b:48a::15) by PRAP190MB1833.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:293::19) 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:03 +0000 Received: from AMS0EPF000001A8.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::5b) by AS9PR04CA0145.outlook.office365.com (2603:10a6:20b:48a::15) 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:03 +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:03 +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, Oleksandr Kolomeiets Subject: [PATCH v1 44/73] net/ntnic: add IFR module Date: Mon, 21 Oct 2024 23:04:46 +0200 Message-ID: <20241021210527.2075431-45-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_|PRAP190MB1833:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: dfc75c52-5dd5-4544-58d3-08dcf2142c2e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?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g?= =?us-ascii?Q?p0ZWi+X87YvDDTqgMJCOD9BhQ0Bq7RV6Mw2HSwe6qklJSKSe0deenNdDImZy?= =?us-ascii?Q?93HVq9900P4TLg9rqa5Pu8qmCKPJwFvpZriGQvspMW5siAwEw3AgRXXwiCU/?= =?us-ascii?Q?AwO4txVTs6vhIvN1+oex1RNv9m0+eHjuUgJJkTDKxjU3+ZpaaGpgWfw9lLhs?= =?us-ascii?Q?WPEJjJ9orooIGZe4n/+blbPDTqkmmbCFHZnh/CcJjP6x2GoBzUWFvySFLMX6?= =?us-ascii?Q?WTHgC4YPiV+kFH8UaDZu1ZSa80Sf0LxU383Ts+C+XdTltFgcabifCBiORL9s?= =?us-ascii?Q?mugBJoCgyNfAhAqoaetLGrXP5fgevXtCycOp8dERJS+C4+2jRZjQu9KK30az?= =?us-ascii?Q?NoC/rG/Ztsyr559qGYoeL5ijN/tkJ2ICl2vhOs6eZssXAMRmADpuHNzRq3GJ?= =?us-ascii?Q?U3uTFhDvhY2pFkeMkhRwhKeFievWtIL7rxJGIwDks0blHzBwvR5Kr6aoCGYE?= =?us-ascii?Q?DVRWvpgbLs/U1lOiix6G+5EJo0FWjabERRUkiKeWbyVso6waxA=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)(376014)(82310400026)(1800799024)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: IN1Gw/R3ZE0dIw8fl4+0kF9qkNDc+sDgmElsKH9y3wqZizU868UFu7WW97P8kLM8oC8n4dv0IUkt4VS+tXNN26dMkFgz0KLe8OOoQ9DaVpZO3gVGNmuLStHLdydUk1eUyMaCbeEq2udK45weP6S3mXEIYIjd/WchDd5AsDPsbNNgX4+rF1UAm0aOCTXGfxvc6dy+mCLkCbB3DBM7psrHcgAbs/tjAK1XzpDJFHG3qYMS1oBCArGA/i7K+xMpHTL4tYgnOEFGiz078RHWByM5XmMFeHwY0xmWm2MR+tkUm+qKKOCb0mklef+Xc1SZ1YJ6EKFb+7jSc9QJ3GIJnHzI4Nounwp7Rv151smSuRwGXV/hYLB4HXjzS+h/MzgNIOMhkBIM4QiBW0Tq4OqtILCLmazHj3MEcOBWgP9hVddgL6NiZ/Fpur40N82FmC8/x8XRTY83Gp44k7/mHzhtsOZ5smDZeLTrQfXTLNJBCM8sBecRdDMj4XNYc3ryt5uVCxNcgLHY61vDyJMOlSnrHFvTIoPHX5hmJ2e/h6H0bzmaYkMDkdSSH65P4ghOdxM1O9CvDLEufXjpFVEDrfT6SHsj7Ux1S5qmEjE/ozjrpgwrcFeLb7YHhKez5FyRDRFMKoaGuVjj0/2tuYjfnMshrkg7bpLlfrh6TzmFfEW3hGKxv1U= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 21:06:03.2707 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dfc75c52-5dd5-4544-58d3-08dcf2142c2e 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: PRAP190MB1833 X-BESS-ID: 1729544765-302135-12923-43232-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.175 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVsbGZuZAVgZQ0MjYwjLFzDAlzS Q10SwtOS3RzNDY0iLZ0CDNwCTZyDhNqTYWAL09KdlBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259883 [from cloudscan9-212.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: Oleksandr Kolomeiets The IP Fragmenter module can fragment outgoing packets based on a programmable MTU. Signed-off-by: Oleksandr Kolomeiets --- .../supported/nthw_fpga_9563_055_049_0000.c | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) 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 82068746b3..509e1f6860 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 @@ -1095,6 +1095,44 @@ static nthw_fpga_register_init_s hsh_registers[] = { { HSH_RCP_DATA, 1, 743, NTHW_FPGA_REG_TYPE_WO, 0, 23, hsh_rcp_data_fields }, }; +static nthw_fpga_field_init_s ifr_counters_ctrl_fields[] = { + { IFR_COUNTERS_CTRL_ADR, 4, 0, 0x0000 }, + { IFR_COUNTERS_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_counters_data_fields[] = { + { IFR_COUNTERS_DATA_DROP, 32, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_df_buf_ctrl_fields[] = { + { IFR_DF_BUF_CTRL_AVAILABLE, 11, 0, 0x0000 }, + { IFR_DF_BUF_CTRL_MTU_PROFILE, 16, 11, 0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_df_buf_data_fields[] = { + { IFR_DF_BUF_DATA_FIFO_DAT, 128, 0, 0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_rcp_ctrl_fields[] = { + { IFR_RCP_CTRL_ADR, 4, 0, 0x0000 }, + { IFR_RCP_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s ifr_rcp_data_fields[] = { + { IFR_RCP_DATA_IPV4_DF_DROP, 1, 17, 0x0000 }, { IFR_RCP_DATA_IPV4_EN, 1, 0, 0x0000 }, + { IFR_RCP_DATA_IPV6_DROP, 1, 16, 0x0000 }, { IFR_RCP_DATA_IPV6_EN, 1, 1, 0x0000 }, + { IFR_RCP_DATA_MTU, 14, 2, 0x0000 }, +}; + +static nthw_fpga_register_init_s ifr_registers[] = { + { IFR_COUNTERS_CTRL, 4, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, ifr_counters_ctrl_fields }, + { IFR_COUNTERS_DATA, 5, 32, NTHW_FPGA_REG_TYPE_RO, 0, 1, ifr_counters_data_fields }, + { IFR_DF_BUF_CTRL, 2, 27, NTHW_FPGA_REG_TYPE_RO, 0, 2, ifr_df_buf_ctrl_fields }, + { IFR_DF_BUF_DATA, 3, 128, NTHW_FPGA_REG_TYPE_RO, 0, 1, ifr_df_buf_data_fields }, + { IFR_RCP_CTRL, 0, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, ifr_rcp_ctrl_fields }, + { IFR_RCP_DATA, 1, 18, NTHW_FPGA_REG_TYPE_WO, 0, 5, ifr_rcp_data_fields }, +}; + static nthw_fpga_field_init_s iic_adr_fields[] = { { IIC_ADR_SLV_ADR, 7, 1, 0 }, }; @@ -2071,6 +2109,7 @@ static nthw_fpga_module_init_s fpga_modules[] = { { MOD_HFU, 0, MOD_HFU, 0, 2, NTHW_FPGA_BUS_TYPE_RAB1, 9472, 2, hfu_registers }, { MOD_HIF, 0, MOD_HIF, 0, 0, NTHW_FPGA_BUS_TYPE_PCI, 0, 18, hif_registers }, { MOD_HSH, 0, MOD_HSH, 0, 5, NTHW_FPGA_BUS_TYPE_RAB1, 1536, 2, hsh_registers }, + { MOD_IFR, 0, MOD_IFR, 0, 7, NTHW_FPGA_BUS_TYPE_RAB1, 9984, 6, ifr_registers }, { MOD_IIC, 0, MOD_IIC, 0, 1, NTHW_FPGA_BUS_TYPE_RAB0, 768, 22, iic_registers }, { MOD_IIC, 1, MOD_IIC, 0, 1, NTHW_FPGA_BUS_TYPE_RAB0, 896, 22, iic_registers }, { MOD_IIC, 2, MOD_IIC, 0, 1, NTHW_FPGA_BUS_TYPE_RAB0, 24832, 22, iic_registers }, @@ -2255,5 +2294,5 @@ static nthw_fpga_prod_param_s product_parameters[] = { }; nthw_fpga_prod_init_s nthw_fpga_9563_055_049_0000 = { - 200, 9563, 55, 49, 0, 0, 1726740521, 152, product_parameters, 25, fpga_modules, + 200, 9563, 55, 49, 0, 0, 1726740521, 152, product_parameters, 26, fpga_modules, }; -- 2.45.0