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 6310145BA3; Tue, 22 Oct 2024 19:31:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40CE640B8D; Tue, 22 Oct 2024 19:30:43 +0200 (CEST) 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 C6664406B6 for ; Tue, 22 Oct 2024 19:30:40 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2112.outbound.protection.outlook.com [104.47.18.112]) by mx-outbound15-54.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 22 Oct 2024 17:30:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=an25VG8iOy0lkvmovS3wfD+EYnTPaI4DJC9ZX75iukhlxupCdfQOjjS1f3H7bi+ndAuq7heg54H33EeM2aqYh+MLhhLOyFDcB7PJa1dzliVa5xGqYkFHISztQO8p+AnBloU5akLv3k+0q6qhHJioAGuBu1rAgcg52t8vlgZSAnV7cGuw6Gw1Ac5A6WLa+jPeTZVlTnnw81Guype0cjbN6K83GNl5VWDVjYOjnfbn+DBjlxtCQPTE/ON9iSTDdnEOz74Y9vJwOA2uUKsHe+kV6uO13IJKyBXp0nTQN0I7kC9IgLSZeA3YR31Twcw2H6sUjvj+Mo7DGh6HUSjGjVGtPw== 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=JLvCho2JkP0b3JxNgfBVg7UhzO0mAKWs9oW8YhtjUjhvUnXFGKWyJoLEMrYOW1Lbnr01ktUur55bHR5zCQGadb8nFbbg+bU6PJTtAeZfCvBREN4qlQ4bx5MDThnKHGdHf6BggmMxqnuV851bx49GERUkfNbCCN556k2VcCo0fjXakIWGXjEHlVyeLbuidusq2WV3omEocD64s4EoaLKP2dI6iX+Kjf0UalV2RuqeuLDzZ3wxZ0tslFl28LYztKPnAegN7veE4FoqjmaIvE67Ni1xPiHJBANxuGHmjfE3NKZQRwVqqQOZWR4hy7Q9pZny44/XzHQIzP8r0+LY3TCpUA== 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=TG+b+bDG3xeudWR6DSUICn9xplfrFvDqQFar96ed1nRDx/wso14lcDEtst2obP0kJ1VhZ5mByHAYa1WKmG1mo+GHvbM+UdJB4rhWenFr5Tn1BRk+7wZPQwdGAFU6xPNujZRIqtz9n4P2KA3N3M/mtxBlff1P/bfTGPImQgj3waY= Received: from DB9PR06CA0001.eurprd06.prod.outlook.com (2603:10a6:10:1db::6) by AM8P190MB0849.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1db::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Tue, 22 Oct 2024 16:56:49 +0000 Received: from DU2PEPF0001E9C2.eurprd03.prod.outlook.com (2603:10a6:10:1db:cafe::c) by DB9PR06CA0001.outlook.office365.com (2603:10a6:10:1db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Tue, 22 Oct 2024 16:56:49 +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 DU2PEPF0001E9C2.mail.protection.outlook.com (10.167.8.71) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Tue, 22 Oct 2024 16:56:49 +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 v2 47/73] net/ntnic: add RPP LR module Date: Tue, 22 Oct 2024 18:55:04 +0200 Message-ID: <20241022165541.3186140-48-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241022165541.3186140-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241022165541.3186140-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C2:EE_|AM8P190MB0849:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 7a2d45ad-7140-42a9-f4c0-08dcf2ba8570 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|82310400026|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?JyT4wgyo02x+sHfxCPdeIObmKOXLIk1/K7ezL8xj3s00JomDBX6TPVyUxNvv?= =?us-ascii?Q?kKCC72sDqjIYae4SY5D4LzookycbnFtHwxM1hRABaH43y2zb5IY5viqkcYpI?= =?us-ascii?Q?GDvcWRUjwO+t+tZ5hk1kxG2gTzfNY726nQP5dJPTUTfRAQ7arko3I5TenVA9?= =?us-ascii?Q?NrOZVpCzMvm13XxG3phuS3dhh4oTBwX+tFWF4tyw3iapeYouJX01KJ9gK/Fs?= =?us-ascii?Q?wNcde1N0IhtfA0FMdB4SpgsaN58/KHK+dL83FxBgPDMdkjM3rKsZMyA3mQNP?= =?us-ascii?Q?jhFFlBE2QL3RSJKKXxJII/wtWzEvDUJ6QccunRkxtxCJgz1svwOtw0/tr9o7?= =?us-ascii?Q?tHqd8jrfPCxIvKBzIKGtbgFVYBKCFTJsUYNszrJHQrFfKr07bGmlRX0B7LpX?= =?us-ascii?Q?mOc1rSS5iz/lz94klLBol4fUXw0sjRL5fQ85wNFjQyz6BrYD+qtVPKupgn+Q?= =?us-ascii?Q?bXrZ8NE27pYKse3CqUGB4rWkYS2fVVPE9RGn8gRZgavn+Fkm6am8T0DNU8kq?= =?us-ascii?Q?2s7h0T5PMhZ6ConIhi5TKpU8Z7cetyRAlT6D9rJmCIc+35FeB5FeVPE2HTcl?= =?us-ascii?Q?E7GQkDMRAjCfmX2kwVML3dl+85IBHxdRBtxK3AcQcQfqxWwYPR6kAis4NHXg?= =?us-ascii?Q?653llkBDlGJRS9BIeoQR8V9/2uN2s4dmVonBP/kLB+/SSY41JTC+pZRrKEQG?= =?us-ascii?Q?QfRc8JAR6udd2/arBUd8ZVsA5tUfuQok4/VLluTMXpZyHbL4j6V05JXRhhA2?= =?us-ascii?Q?QmCQYOIrmA+iTG1wikOzlTD1QCysVgU0uMfDHfC7dxpHCgNEY+PaZmx2kcOC?= =?us-ascii?Q?byYUs+IQT1xPrLz3D2D+JLhEwMA5rlayYd8Sj2T4Y+HqEhrSRiqUfYR1aU+c?= =?us-ascii?Q?KJEkH8we4ZLt1hEvsvMip8KU2GhMfQemvSjFJ0XzT/PoKBU/cRqlty5eX44B?= =?us-ascii?Q?POhvLsno88cJdaiMTvNTJddSWeCBdSnWaRtEtrql4gm7VlJcUvLeULsAESEK?= =?us-ascii?Q?A4opXoodcb435xNznmEFzZY7Ys6eke9E9R0v5nlyCYhqr0oIBuAq6DXkWq2B?= =?us-ascii?Q?YRcDpqtC1SZoHZnxw5N2JJNupajweAsMPsznOtJD88Vdk/o4WP6l1HJPeZxI?= =?us-ascii?Q?waaYDdtpUsdzN4E7IxMluaH89YTtVR0QBwErYVi5F8yZQyRRr/E3GrDYbX+p?= =?us-ascii?Q?9YQFndRXLtggwVzioUSpWypGRAokAXMJgtjdsUgIaG2HknxfLo/GUjCK4rXS?= =?us-ascii?Q?vreF5MfypAxR0LxaIWqG4MEV/s/mCwtaNdwei/yzTdvldoUS4O7SzfNUYMLm?= =?us-ascii?Q?oLBE6qxnM8xrr3wkdfe5nrh6Wc4akhiEEkdYBGx/hI+OxpVgF+J2qGT9GM4Z?= =?us-ascii?Q?arinpvB67NAZwX72R/p55Wl2VGzD09huw/GKd/cF+dqOdrMF1A=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)(36860700013)(1800799024)(82310400026)(376014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ZMyxchrV/yIK1el6iAeOiKTleI/9cPImL2pjafB6oeIq8H1zqL7A1MYH5FdcAWvx0bGBcq6/06qnW3wvs6u64jboUSjPB4SemdKDgtbAnr2l1d27QmHfNEMn0fNZ9fbgYEj/tbQZvJoyEnVui2TbnRvAjvCbO+IjTwSz9na6A0kDIqCXa3xEt1AvoZ5N719HEp6CpbumJSba2dc6wuZ1WqnOSt0O5yq0J86w+MEaysP7Sn1+6KeXCsDzFFxqTxi+bPiwjwU1c2MpHe7m6g6yjCQ3MCKd2yBs30Fd71S2v6qJRto6Vavmj0sELCPx1XoV4Du5EB2iFLm6a/G+zks/ozm/EYYrAJK8rz58Q/DpQYcrKGdpqIEmLFxPKzM06S6hqtE038eZ7mf75dAptWm7XElz3/xbj3S+FmUKdlvKLZI5Gm1COJBTkZ04DUTEi/1oVCy8RcOqduCM6HsxPbmnpsG3hce0egVDr/mHN6cRLgRaiILiq+oQ3bRYQw9A6yUGXemjkXTtUiBQ+Ir0QNaOjuh7RQjcbRYfzay8mtV3NfWgG4TDsf19B7Pr3AgYAEO4mEoIPPCfK6Dl6+SpIRm7YmFp++c7cYDmiWm4H9v3ouYFlCh//e8XelqbYhj7kJwvitJk4MiV5uO/su/dvql/Ji395W3WaCyYkOMfBP4ttBw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 16:56:49.3254 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a2d45ad-7140-42a9-f4c0-08dcf2ba8570 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: DU2PEPF0001E9C2.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P190MB0849 X-OriginatorOrg: napatech.com X-BESS-ID: 1729618239-303894-12660-14997-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.112 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.259902 [from cloudscan12-68.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