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 D760A45BCC; Wed, 30 Oct 2024 22:44:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34648434DD; Wed, 30 Oct 2024 22:42:16 +0100 (CET) Received: from egress-ip11b.ess.de.barracuda.com (egress-ip11b.ess.de.barracuda.com [18.185.115.215]) by mails.dpdk.org (Postfix) with ESMTP id C5460434DD for ; Wed, 30 Oct 2024 22:40:39 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2105.outbound.protection.outlook.com [104.47.17.105]) by mx-outbound17-81.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Oct 2024 21:40:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OKB5TOYo6V2XwLMFPy7h05kFOai5+misC1E23f1VDDSJ5Le95PeKbcJ4apVhzImU2GDAT5lrz6kYTi8B+ezPgLrtH+9vBQsDF6G/3o/qZQMkgj6ylDslJD+BIyUSQQXAHRCe/N3rFgSTnmTlnLi30PgTTHcSuk1SKvkjDpAGVLBRr5YTLRn1SMcRltpdhnhYDSVirIWrHaAPv8vON9QFwOBklQmzTkCWEJO4tkJ45fiAXCfaBLtVkcGv3+7GItpV7sv8tdWhI1VEjRu6AYvqPuUUmBVAhmNQl6Uh2/WRazs/HAr9PjE5904o2Cn3wTgTzHZE/zm4+qfv8kpVjBtd4w== 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=aWH+B4BJ2YIv7CWLr9xKuuHE8oceQjkC789tz6OIkdjz1HzJDcrL2pXFsLtc6f41eC+FW8Oj1Ldl27nFGVpSAeflvMU4GBgBBU55gCHExEeO+XIcLH6V5OaqswUs/70VrkclVVJc7FqFr7k3QilmwuJ4QKSfoxKDEbEbft8LrQrEH8BTsFwB9T/FzVEYhNXmfFed1ejdX72LRLVLXm7T9dk737rJ2c0Cq7YJdPudtTvARmvryE0f9KbEHFBdQZIvImC3Qlb7gq9Ug+BFZ0lrk3VmPccyngrttzqBwvul21WaLQlfDoRnutOFLkui0JwrElJWfRIUg2oHLwxQHpdlZQ== 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=Yf3DhZYMdK9cBI6+jO4VSJrn9DVMQOag/OqGzsXxHg3H17jrG6BZ5XrJlcUSXwqYoy5sUIjBWli8k0c7Sb5//fdjiedhN4w1DJmAm9jAJXSOxa+FbArhYjkiQOIdvxsjicEFjytgvxOhKfG9UGep2/zNLW+FsqHH363bu8fLFK8= Received: from DUZPR01CA0009.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::16) by DB9P190MB1721.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:331::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Wed, 30 Oct 2024 21:40:34 +0000 Received: from DU2PEPF00028D13.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::bf) by DUZPR01CA0009.outlook.office365.com (2603:10a6:10:3c3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.22 via Frontend Transport; Wed, 30 Oct 2024 21:40:34 +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 DU2PEPF00028D13.mail.protection.outlook.com (10.167.242.27) with Microsoft SMTP Server id 15.20.8114.16 via Frontend Transport; Wed, 30 Oct 2024 21:40:34 +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 v5 44/80] net/ntnic: add IFR module registers Date: Wed, 30 Oct 2024 22:38:51 +0100 Message-ID: <20241030213940.3470062-45-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241030213940.3470062-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241030213940.3470062-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D13:EE_|DB9P190MB1721:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 65652334-b831-40b4-4e54-08dcf92b7c7f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|36860700013|1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?Q?CG1qkGqHqiPgM72g5j/icxvRBrWOIjZOTzMVa3fKbMSCKtUh66rUeGm35DON?= =?us-ascii?Q?aLqxmjHjol85zEcUE/o6G/HIig2mkkk2OquLlK2E7JBekR92DgvJSMUgKkrX?= =?us-ascii?Q?qC5t6mm4uJxYkQDrvkykJoNaTlEAzeRfXNXZl3eMg+54W2qUWNw1yEkcphP6?= =?us-ascii?Q?23E8EkZ+ap/pIS+DI4qMDfQrISUStil4ncuOKr1UAE9jlMkyy1nAxutRhjy0?= =?us-ascii?Q?TeR8YgXMl+yGvr/b8201/XIL/gQlFljoa2Hc1Ejkr35YxKvSJ8ZrijLECLct?= =?us-ascii?Q?nFnBOc1Dp5Z2mZtdoZY4ftJzfOuQjRwRCoXN2bkXu+8q/wpq6mxTb4Ovcmit?= =?us-ascii?Q?JRvzFXRztGTTR2mhcLN9ZGmntpcs3s47HpHn6ezIuPSsgenyvkKXDo5pBk1U?= =?us-ascii?Q?dHxTrpCwbOSHmA8NeA4pLwuyghhxywwFOLJ59O8ca146KyNEGs5ovhRdel1H?= =?us-ascii?Q?LddVgCY0qyptyDNU/Bpmv8tLNRHy1UL9xUAPVXe1eSIuWF2tOURpFerhJYP8?= =?us-ascii?Q?UEDMCWo3aqKQu/eYUVQg5mdHk1/pPp+A6cpY5xcfHDs59dfwmQ=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)(376014)(36860700013)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Ogzbdm6kDUSY7TIhkTMaaMFla/uAqpbw6gMjGog5pDNLf2AkP9B/39AJPmaoiDLmn5Mv9s6D8DkAUx1thYk3lVD3B5MqIxmzcavfpYmoP7QcHciHu83OusJxMLFPKhMcUUvpA/GNPgnfxKz40k7M7qWmErePFNpzg46dyWcjGsMJqRIRMUQxRvj9APLrKLYSGhO5zHTaKaTT1riBOc5K7zcxVR0A+d70vs4lDEph5kXVev80xS4s4ryAh6WAFvpjiYvfivM2Po9VM3eTL3zJFbVVn4iScXoyxLYx0MioU+6WaBqPlckW2MCcZdVvC30tM8uaEI1Uz3cG/JIDrAGmO45Psf0lxNleL4kU3HnOOG01GpMJ3hm8ILsfp9qyQqE+Su04yrgM8w67BFwpVixbIVSY8pC8do8HRsEbmkryc1xS0okmlf1xPlZxQo0jsuzL9pTPFL7jh1orKeaUjhOjqbaG+IcLkp1l6lYG5WZzNYUoPh7erhevSLpqLec/Qu0rJbsRZP/2uGBzHJ9AOGLlPcz5Gz6f3SThGRhSv/QZ+aZUcBb+iLgcxD6523jqbaNjfnH/slluC0f+SwPpyY8pKh5vY9ZmwNmfaCsO8QU35QB9ZpPylc/hBKBhP0VuYzD1gxNrS4iN33+nrbXhuK+R8VN08m7Pcp7jkjf2DxOXKw4= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 21:40:34.4426 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 65652334-b831-40b4-4e54-08dcf92b7c7f 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: DU2PEPF00028D13.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P190MB1721 X-BESS-ID: 1730324436-304433-12638-44634-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.105 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.260091 [from cloudscan15-95.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