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 DB67945BC0; Tue, 29 Oct 2024 18:18:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C40BB4328B; Tue, 29 Oct 2024 18:17:17 +0100 (CET) Received: from egress-ip42b.ess.de.barracuda.com (egress-ip42b.ess.de.barracuda.com [18.185.115.246]) by mails.dpdk.org (Postfix) with ESMTP id 94F2443293 for ; Tue, 29 Oct 2024 18:17:06 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2107.outbound.protection.outlook.com [104.47.18.107]) by mx-outbound17-86.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 29 Oct 2024 17:17:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MitH7/gzjrKCOLeiS7GMusYCdQ6Z0aGdiFyQRrQ12oUcWCqn990seHmNLGPIAHOBE8aBPibTH/6VueKSCQJ1/AJnFbviroWG8iAjzHzqHEGc1a2ORiJ3CR4J2d0tfxxbSOiYVq79xlMTasnQFCfF5Uc53JXl60HNEWTOYshekraTcOQajVCgnBV/BLiS0TS8UVuVH3Imwvz+o6X0I0SwBP3f5folwbcYDabKRoMLYSKiqCbKm11y6w8K6CSqm7cGMeUK3YMffnwhoRZVBcECPY+pQIICFl36sScMl49KuoqR2u8980InH7enP7hrU+UQc2W3YILqRgGMKGJ4/Vmvrw== 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=uIhheIQd3ak91EvZNASALaQQ0g/kOd1fZaCylXA+EzXzm/4KOwS+fCMpHB46wlSTBmlD/YtWuUcrfTc7Y4zbHQRb/pXpD9TXJixhhNamn+wcqnXQt+a0BqCxheHBttOReT/jVvn1/p+fmNkZaJIH4oOBbClRd99kT3RdrTd4ZuhR1So5+jEqZAovROfUNaboJ903E34TBpjxM3lz+d0MFx0pIQjkDaNl/BnwTM4EPrLNaUjwkm8SfaDzP+UjpghOmo1YaVAmK/3St0raw3YVlvt81iUKqUtxtTEyPfbXQsgXfJyRRNx0keJsky3eAhzx4QsCklEV0SzmsKt6o9L2MQ== 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=njq74OB8QsVcn85ZC4ArAZ5DKuS/s1ci2y19vN0kzmE1JB5NMUwlcVfKl9FkxoPHBq1wtQ4Au8t9SJ59T5PciS7QMU/6qtnHGZI9fgO0g1aJzqdtPy3UiaElVyYp1YVoATSTEFhLEKUYNYzYesm2cuPIidzKqIJyuykcUovOMxA= Received: from DUZPR01CA0210.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::24) by GV1P190MB2217.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:1f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.24; Tue, 29 Oct 2024 16:43:36 +0000 Received: from DU2PEPF00028D06.eurprd03.prod.outlook.com (2603:10a6:10:4b6:cafe::bf) by DUZPR01CA0210.outlook.office365.com (2603:10a6:10:4b6::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.29 via Frontend Transport; Tue, 29 Oct 2024 16:43:35 +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 DU2PEPF00028D06.mail.protection.outlook.com (10.167.242.166) with Microsoft SMTP Server id 15.20.8114.16 via Frontend Transport; Tue, 29 Oct 2024 16:43:35 +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, stephen@networkplumber.org, Oleksandr Kolomeiets Subject: [PATCH v4 44/86] net/ntnic: add IFR module registers Date: Tue, 29 Oct 2024 17:41:48 +0100 Message-ID: <20241029164243.1648775-45-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241029164243.1648775-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241029164243.1648775-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D06:EE_|GV1P190MB2217:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 20d51ed9-ee70-43c9-5b8d-08dcf838d538 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|82310400026|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?/smaJEwh1unpuKejgyuTtpwLuWlLBGAZwKP2WiJjOoxUXCxJ1OwoFg+ghGO0?= =?us-ascii?Q?jwUCcZHZ0svp8qfUKMaN2lK+k4UrQB5eEHkIbQpWbPqAwPMusdjtGCM/0llr?= =?us-ascii?Q?sVS+yhl50j9gEBoyizb/tj4asmbsVsgjwydAUG39aMUMrD1T8VXl6jkuC9NZ?= =?us-ascii?Q?ZHTHcJ+fi+bRut4AsgPqNTog36Q6mRs277xfjPGGWI1xhXmppvpXiESXpM7i?= =?us-ascii?Q?9ZykCSqK59srio8rU6jKtMp/YDK+9Lh70aRPh1ePGx3TXWaHfTr9MkQ/NCZa?= =?us-ascii?Q?3i8KWtAclxRs5aVLu9u/CHHNixT8/AZN4CNk5RXNZqgpTB2T5nqhVv4Hyroz?= =?us-ascii?Q?PqvxYEknIo4xyj/UQGUZdypLjHuuDSyQtPrVEwtSjb4HtKkkyiINEoK+L599?= =?us-ascii?Q?Soo+xtZItfidRA5dJ4zcXGeVeeipkxyTzJ73NluH5IQw5f+bnWovsZMLxNeG?= =?us-ascii?Q?m0puP/gz0U8KONXYtNefc1TSCI6HM4/uWW4VNKzV+bRgumeOWqJnvFtCe3jh?= =?us-ascii?Q?DUL6LROslVapS+G3Y6pitV1a5uxg3phs2iXcoLd8/GkCiza3ZXSumNVP6bps?= =?us-ascii?Q?yeRp6rfbZ7MDmuk6ENWneNI2853xWiAhwS6R4ZhxEd19mHCgVjCiAvOGoM75?= =?us-ascii?Q?Ty79CCTvnd7GJybH9NUpQuT0qiqhnCU8jtSAynnZqgPHI7ZPRuMj73yT8Ee0?= =?us-ascii?Q?F+DxO6ldIRfaHA/RxoqJEgxPVlnUtD7jmJu8e/SKLTcHX56Ea4wXIdmLsR+z?= =?us-ascii?Q?jmLMZoRsscfOFjA9sXQmH86p4oRxPcQMcHwVkQYBX3rjP3zJSGzd1IJif7sb?= =?us-ascii?Q?pSgEZaHfBlR18QIiAtBH8NncKz/+nK9XRTIKkUSBRVL67ni4Qzm7o/ThZ05R?= =?us-ascii?Q?SCZ8V/D9JJMZwdETu1NrraHaWOC13X0g2iva+t57kOb8WEruGn8odvPvu+Yn?= =?us-ascii?Q?2x9GeOuv/0giqGgjV/fDWvXamQmcusnvXXLBQGAs7oHLTGT09n3hKSPlmYPp?= =?us-ascii?Q?Zthy/4xhXkA8xe3A59gYtvVkeGJyepicnOsaJB1zDWzcG7oxUalUW7pmmLks?= =?us-ascii?Q?j6bZVohh6xM/H6eu54BDy0A24gyY+j231mm87lOdRHhQiZd+OZbV5c2G6hxc?= =?us-ascii?Q?VEUEfAunIKl+D0DRSaT7DqgngGLcLNE+sT9OB6nhnXUdX2sS9dZjCDZ42vUS?= =?us-ascii?Q?cCK12J5zcZuQZZUzn5W2DSfq+ITrmk3Ow39RH+q33bttA59XkXCqDXekwbws?= =?us-ascii?Q?3SQQtSVilyrZReQrHEX1TqwisEfch2fltNHZNCKHSjvpjnGrTOg6oxlk8zJs?= =?us-ascii?Q?vWq1vKIV0YdI/gqMs3LFayQjYL74gv6TT6TmbVDS8P3xMHRdr+9F9a7h6fOo?= =?us-ascii?Q?lg74NAN5fuuLWqHY3R8B14PNJ95WuCOML6vLjAKU801b/b2GRA=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)(1800799024)(36860700013)(82310400026)(376014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: gseh/Ws+SoV57Bqi+rd55KXyzlLVyEb1g8cs+S1CI1keuiMAo/cB/WGaNe65xeMut524jO7TNlxh13qn4IEaIutFFlKCBIHJKgJ3VpjhwEIpMxvxaVeW9WyUIXkd4/bb0zpKXfmgVG9+GsUIH/uRdCNbny5vr4IyxJdLAgC+Sh6QoJAB2m1cj9A8AXANMFkF30yw0QP7JN/E4qZLFFaiElhvuSs/g7qORPXOVDSoCwuqMaIcUXNSBKWqIcnU/LpT76+HsDqjA98BzAsEADo/Ore04A9kAACD+V2nltcNGOYSHDf+VhpSLtxejqfL8b3J3uk1GNeKLeIS/kwnt7LobHFp7M7oXBMSZ4F9yk4RHwNDsTXAfHOa3LkxYMaqJMIXAol6eoJfqnZoR7S+VGtIb9gVaKI5LNLre9AJHL3olxZ7eBSdNQ9rMBwBM3GO1bpaYVI1Q9qOaktPzKt4t70a4mLJBhkwX7xDLmFcre7X3RGTjcZRcvhjCbyogmJN99oWPpta9DE65SvPnQp1G6WzhZdy+AH2OzD164y/VjW410jgfWpmxC7ymV76DQ6/duBNDyyIoivl84eVRbBbGIVlR9ubjQn3WPn668i8nNtyX3ES9AldRovXdnGcGOSkIuvUngtSW/WCQWP3NiBIxmZ7B8PW/IXzJwpJPqYVYYfEIfo= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 16:43:35.5896 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20d51ed9-ee70-43c9-5b8d-08dcf838d538 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: DU2PEPF00028D06.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1P190MB2217 X-OriginatorOrg: napatech.com X-BESS-ID: 1730222223-304438-12712-32026-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.107 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.260064 [from cloudscan23-168.eu-central-1b.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