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 9E80345BCC; Thu, 31 Oct 2024 00:14:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 59A084350F; Thu, 31 Oct 2024 00:13:59 +0100 (CET) Received: from egress-ip42a.ess.de.barracuda.com (egress-ip42a.ess.de.barracuda.com [18.185.115.201]) by mails.dpdk.org (Postfix) with ESMTP id 7C5F94353E for ; Thu, 31 Oct 2024 00:13:58 +0100 (CET) Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03lp2113.outbound.protection.outlook.com [104.47.30.113]) by mx-outbound47-144.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Oct 2024 23:13:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yw5o/DxAMJB/v1gw2RhvA9Ua6v4+5k/zF3F9wQNAUhlnD8Vm71bpLaAz05/k+VTCZnFIjFrgjXWAQvV9JzXP95N/GX2VRa4SeoejUcxEDzqVjezazJjxhRzdxn8LXzZPUxPeewbbm6gYKiSO5QPArghUciappiuQ1kPMX82YSQzsb0gWv4qhzQVxZzL25nKwlm8cq9pP2w93CHacqC+TkDKqCSq7mgg5ksQlvjTt+DI7hfVVofVO3JKXQC+/hZDKzwvqBKbTjMVc5IFL1/84wziRbYTQG17qpA+lJ9p6mLq15rTxD/Hzat1nEfxt8LqV1HDj4gMeyay1s+OXYPVosA== 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=AKrP8t84JgSWHcNL5r2sd5Ghh2JpfqHLLTyNjO4fWTE=; b=yZtrwrA2jknzoKaFD6Iz1omSHCMKGg1wjFbI07n0dj9K/UPFuUWd8I2xxLY04o0LoXrT6dw11nAjboB/uWvcEUsKBGGnK9f5RLr/u640Lt0nNAfl+KtOkcUHN95zl7bpUGLNVPWNXwNDtgjIyOaCctJxBW24oJed0cpSVH4wrAiC30lQhVxL/GgVFjWe2bNYjCwGWvURE5IksUS70AeghPLYj7BhSQvpK/ks/TjX9U5Pj10T0Eb2IKl4GRSDO+o0pY0yWzLjkgl+zXULNBoGbVfBAotJmT0PXdegIGlpUEFEFAFThPeqKpHP7Zq9V0eGcwapH6rdQDFaymlafLWDsA== 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=AKrP8t84JgSWHcNL5r2sd5Ghh2JpfqHLLTyNjO4fWTE=; b=pwDy3cYL+o3cAuYYxQ4aEHVggvlhoD02ZLQ4CgaaQtSTYtUJ2+e3RURhtMlwWdbCLvd5gzEtsgM+cCLwGY4+v+XXz6N0EpbKXJNm7ZR+jFqYhJL+8EMJil0RuSfd6YqBZu/eIQyYthilUOpbwq6w9jKPwAA9jfUGxMycptmYogo= Received: from DUZPR01CA0008.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::17) by AS8P190MB1304.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:2b5::20) 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:37 +0000 Received: from DU2PEPF00028D13.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::f6) by DUZPR01CA0008.outlook.office365.com (2603:10a6:10:3c3::17) 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:37 +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:37 +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 47/80] net/ntnic: add RPP LR module registers Date: Wed, 30 Oct 2024 22:38:54 +0100 Message-ID: <20241030213940.3470062-48-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_|AS8P190MB1304:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 17296be9-0f07-4984-4dde-08dcf92b7e44 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ZvmRiL0kE3s5Ym4Z1H1TfmSUwy/3F0fneYs8ngwZAk9XDSYyHKm6iEsaLTKs?= =?us-ascii?Q?Nlrxf1tmpzqsVO6YRLdb+Iy1eDubP7QiCR8M+nrtoLk1KMBEMp24VP+nY+Hh?= =?us-ascii?Q?2ocmJ0AR9Pc6/9ewdE/Cj8YDwybtfYF2nUQ7iM31giNXEtVH17MX46Jlua3w?= =?us-ascii?Q?2Feb7ARVcH1cg1uU/0qFLA1v+zhXcv8DgtmA1tQ1WmwUkLkwECHRKTgkquvl?= =?us-ascii?Q?vf38Ggzl0yjDp65gXDD/gT/8W1mLWLnOcRqFzvRy6UcnGK749ZFIg0mS0v9g?= =?us-ascii?Q?H4frGgQ/hL/DWZo58LcLLEIpjga/TCOIQsBB+bSmBYK8RusTO3yH7QhbfTxU?= =?us-ascii?Q?1NVX1xPxNGg1uNPJfhypjzo1kqomfrdjtIkksW/T2P8E3REjrGfaP2T3gYe0?= =?us-ascii?Q?bQr8fcw9Ih509USnVQmBGkXLocy09RFclyAfe/AVrjl6Ca9I1IQIE5sLqW7c?= =?us-ascii?Q?r1uR9KupCkb9MGAWLg1pdAh4ED/BOc/s7xKxPtCSVPInESb/2lpq97ST0PAR?= =?us-ascii?Q?1L33D4P0t6sl4G18Y1UxWN6hG+ifXIc/Lx23n36Q7P7FVfDGjGlTwHknp2kw?= =?us-ascii?Q?arNmoDgyoyWAFlXa2yYj8Tht70n6tJdraGMFt01EQ6r4pe/6P1mMPHsRpiKV?= =?us-ascii?Q?1S/lX630WxATMuuXU7kNV5JruDJiTEUleNeohfVJVz1Yyrgl1+nrPwuO0NTR?= =?us-ascii?Q?oS4SXOUn3MfDWWBixmRGI5b4zX3Xfm1Rqt5czZtasBfqOx9e+g0PMWHMB2f+?= =?us-ascii?Q?M+q39dRNX6pm2dhawHPNTokdbe5AaNoUujlPr1czE2BoMNd9E6VL+ju5a6zY?= =?us-ascii?Q?FjlxSlBMdMYK5oh3aTxPRd7dg/NLFeHkSxJVviiRYq2v4dbm0OsNBLvugLyL?= =?us-ascii?Q?RTZEyZ8FAK899zX22kW5mw4cjv4vSJfKeQYhX2c9Hq7euTX9W+2DsRnxJdBX?= =?us-ascii?Q?UhqFDcz6JNz9vDtjjIWrh8Q+CGu0VlXhjTFXpJxO+vWNvFj6xJ/H49mKOyf4?= =?us-ascii?Q?BxtmXhF9GyTRnVZ1IEEfzUekS1wPAjStof/oxAYEJRnhAk9R2YS5RQJr7olB?= =?us-ascii?Q?LZb7iqQECrQPt2+bvPC5twyssrcr8paukXiLBY1qz6IQ0x+nwxr9acFeh/1W?= =?us-ascii?Q?/E5lbW/5hIEg7JCalGGalfYbbus7RmlgsokqVhslXHNm3dO8FnG+pdR3s219?= =?us-ascii?Q?Eg4/hX7Y3NOLDnLlKpv8NeUnGkjzXoYGeP1O6FaoLV8q0GGaoFgCF2aSf58c?= =?us-ascii?Q?AooeK8L7qy/qeVDjud/kSWeQU7HDzVEgLRdtj2AoSETGlsOO+Ez3DBk5hAq1?= =?us-ascii?Q?MlLx/Ed1L2Xcp+FYgrxBxBPg6cLBiA7FtpxjLjo0JkRVIYfHG05aumGDf2zn?= =?us-ascii?Q?Fl2voFgo4r1jvlNQSKBL3ENk+AuUOZacMyFQRVp7p75X81OZWQ=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)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: DkERt6mS7m6jAMBMWTFUh0lBUhGUlrrjV21CNmjzu6UIYU9mB13chJ6wclAOwP7AoipuOMf5yCH13qDKCXUTdHik2ExcY/xoU2lHE/9VXU60NFgF50Z4jB1Xj/iqLQVea2Q44qRnBkLtWBzhXzk/CrGsbSk/oeE2smiXnQirNsBaWI4dg8waJVZnwP8CMdRrUFuYHsASyF6kCmt0qOBDEDq7lIakxCe0K4SGWkeTfZwEYdXtbRHJpoGbsEUw8Ya7kDaq2ImAFuCSX1qHcs5BA+5qB+enbAji//nucj+ieyIMs+QTV6ns286UcB90neAIptMmX5DeyavLY/Ei8baqFQ7MJZEcBNgmSNjxyxLxhnFwQsKkdxOJt7F42ejG1M1dXDDI5qdhgSlLe/4NHE78Bfu+OrkRt84+8ah2Gw9BcZxpsJyIj0vsspCMj/QDWA8TuF0h8kW2zvCDvekGnc+HFA/Ycng9K6jrr/y4NsELmogBoWmUdireiJp2AGO+jPog6mat4DtXr/Q4Kq5HrO/HtH6VKN4HRaJqiehO3damIVTKMLPhXdNDSbun2xBswTH2hL1BVPC3eexlf4tO8Awr0zOl4xxCXc82S/uCO8DwYkDQsNWySNpXbnacyNjKl6xzYpkpW0DjT8QtFqSEAP1UmHnmOQoZQ6lxskHhjc62SdU= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 21:40:37.4114 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 17296be9-0f07-4984-4dde-08dcf92b7e44 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: AS8P190MB1304 X-OriginatorOrg: napatech.com X-BESS-ID: 1730330036-312176-12713-43882-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.30.113 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVsYGZoZAVgZQ0DTVJM3MEEikpi SmGBgYJZlamJubmBkbm5olG1lYGirVxgIAIEJrT0EAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260092 [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 RX Packet Process for Local Retransmit module can add bytes in the FPGA TX pipeline, which is needed when the packet increases in size. Note, this makes room for packet expansion, but the actual expansion is done by the modules. Signed-off-by: Oleksandr Kolomeiets --- .../supported/nthw_fpga_9563_055_049_0000.c | 32 ++++++++++++++++++- 1 file changed, 31 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 7a2f5aec32..33437da204 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 @@ -2138,6 +2138,35 @@ static nthw_fpga_register_init_s rmc_registers[] = { { RMC_STATUS, 1, 17, NTHW_FPGA_REG_TYPE_RO, 0, 2, rmc_status_fields }, }; +static nthw_fpga_field_init_s rpp_lr_ifr_rcp_ctrl_fields[] = { + { RPP_LR_IFR_RCP_CTRL_ADR, 4, 0, 0x0000 }, + { RPP_LR_IFR_RCP_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s rpp_lr_ifr_rcp_data_fields[] = { + { RPP_LR_IFR_RCP_DATA_IPV4_DF_DROP, 1, 17, 0x0000 }, + { RPP_LR_IFR_RCP_DATA_IPV4_EN, 1, 0, 0x0000 }, + { RPP_LR_IFR_RCP_DATA_IPV6_DROP, 1, 16, 0x0000 }, + { RPP_LR_IFR_RCP_DATA_IPV6_EN, 1, 1, 0x0000 }, + { RPP_LR_IFR_RCP_DATA_MTU, 14, 2, 0x0000 }, +}; + +static nthw_fpga_field_init_s rpp_lr_rcp_ctrl_fields[] = { + { RPP_LR_RCP_CTRL_ADR, 4, 0, 0x0000 }, + { RPP_LR_RCP_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s rpp_lr_rcp_data_fields[] = { + { RPP_LR_RCP_DATA_EXP, 14, 0, 0x0000 }, +}; + +static nthw_fpga_register_init_s rpp_lr_registers[] = { + { RPP_LR_IFR_RCP_CTRL, 2, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, rpp_lr_ifr_rcp_ctrl_fields }, + { RPP_LR_IFR_RCP_DATA, 3, 18, NTHW_FPGA_REG_TYPE_WO, 0, 5, rpp_lr_ifr_rcp_data_fields }, + { RPP_LR_RCP_CTRL, 0, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, rpp_lr_rcp_ctrl_fields }, + { RPP_LR_RCP_DATA, 1, 14, NTHW_FPGA_REG_TYPE_WO, 0, 1, rpp_lr_rcp_data_fields }, +}; + static nthw_fpga_field_init_s rst9563_ctrl_fields[] = { { RST9563_CTRL_PTP_MMCM_CLKSEL, 1, 2, 1 }, { RST9563_CTRL_TS_CLKSEL, 1, 1, 1 }, @@ -2230,6 +2259,7 @@ static nthw_fpga_module_init_s fpga_modules[] = { { MOD_QSL, 0, MOD_QSL, 0, 7, NTHW_FPGA_BUS_TYPE_RAB1, 1792, 8, qsl_registers }, { MOD_RAC, 0, MOD_RAC, 3, 0, NTHW_FPGA_BUS_TYPE_PCI, 8192, 14, rac_registers }, { MOD_RMC, 0, MOD_RMC, 1, 3, NTHW_FPGA_BUS_TYPE_RAB0, 12288, 4, rmc_registers }, + { MOD_RPP_LR, 0, MOD_RPP_LR, 0, 2, NTHW_FPGA_BUS_TYPE_RAB1, 2304, 4, rpp_lr_registers }, { MOD_RST9563, 0, MOD_RST9563, 0, 5, NTHW_FPGA_BUS_TYPE_RAB0, 1024, 5, rst9563_registers }, }; @@ -2389,5 +2419,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, 30, fpga_modules, + 200, 9563, 55, 49, 0, 0, 1726740521, 152, product_parameters, 31, fpga_modules, }; -- 2.45.0