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 ECA4745B96; Mon, 21 Oct 2024 23:11:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 807C5427A0; Mon, 21 Oct 2024 23:06:55 +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 A8BB540E2C for ; Mon, 21 Oct 2024 23:06:12 +0200 (CEST) Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02lp2107.outbound.protection.outlook.com [104.47.11.107]) by mx-outbound46-162.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 21 Oct 2024 21:06:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZcRuaxhJUyM8NpiapWOPwzxpAKFa0NEQnMMJHdeQh7rKxyrw7yAdHdHIgd2nkUjHt0AUOxtOP3r6sXxuBemP1jLVIW41ytZHvdb7UfL0UCiTd6m+qApV20erR5CojqlyUqQ+K1mruJo1Uh1luCxrGOpdA5ESI1vdbZQ3lFAq0XiwUQE4oZKKz5PFKqH53Om4eUzFPngu2fJKQgFlE1iDwqKrLtFiGnmxwPLcnRFQkkD0qT5dUVh2vYiz9ItOrCPqFpe4DCsmp1vGkfJiMf/Vgk1mC3tqk1P7gIutnSy3tQ/I/pI7Y0PUyisM/vUyRXMkNr8XaPL7LAUmjUmWlVfWYg== 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=Cgu7eD+yOTDMtyC9/2KrrgsuON5W5WCmoIoerwYHaNM=; b=BdO5YtAdZf36LSJ+jKqbEJ19i0LUkzudBbuFevfM1v/BO4c8Ukc9/CCAZNwIapdip7CFugECFyj70++XnIOBYkKanY+7ibyAOy/zVa1BklNUJoE5709ANJR7UFMHRFsDQdwUKfTL18OVmaO+DExG6RgkcFu9AyZHuQJ7glWmsOMvCMRAKXh4fLEDfyQyLmmGPVHS1wRHe+nTJNseejxf9qqRnVhCL2EtezPxUNarBLSI3k6yFhS1lpbdY/SlD7C7zvr1Z8d2g4JmORU8h32APUFcSBl6nhfHMWmLYgUp0Q5j8yMaVPZ7y0dR0Id1sIxzMHceUpJehSeomKtnVw7Y3g== 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=Cgu7eD+yOTDMtyC9/2KrrgsuON5W5WCmoIoerwYHaNM=; b=X/ZR9kzNmfBaZkv2UhO3cJxZL4IYl2ms5GeSNQNxqkBg1PbywbPedpblb14h+nZEEuEnK0UTb5VM8ruvbQSKpvTAyo+5vE4WJa8++0XidTc9qPX92kczm839Oghs4hAW7IAGx9o7JdeZrIbJIw/UrI17sR8s0T17SKrR3UNUGII= Received: from AS9PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:20b:48a::10) by AM9P190MB1124.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:270::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.23; Mon, 21 Oct 2024 21:06:07 +0000 Received: from AMS0EPF000001A8.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::a7) by AS9PR04CA0135.outlook.office365.com (2603:10a6:20b:48a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28 via Frontend Transport; Mon, 21 Oct 2024 21:06:07 +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:07 +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 50/73] net/ntnic: add Tx INS module Date: Mon, 21 Oct 2024 23:04:52 +0200 Message-ID: <20241021210527.2075431-51-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_|AM9P190MB1124:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: c4c641a6-6917-40ba-3cfb-08dcf2142e9a 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-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3YxofeyvS6GpGqutny2jd/l?= =?us-ascii?Q?SRfRUW7ruEY7uqFb8RFoSgHuEqY7dGQZft58prIynzw2ROcJDwe9qtEy27SF?= =?us-ascii?Q?G1Bl9lBp/bNtLcMkVtJ3V+D/ST8nTZ7V3ShG4rIiwlugSfTHyF0C4k5BVTyv?= =?us-ascii?Q?RYZYu9MovVW8/jsSfxS9/e7c33xIthdSPAK88xG0b4l4NNSxux14yo0iVIBD?= =?us-ascii?Q?+6QQh2nYicOFiJxLyplFbzwRNn5lCjqoM4705z99O/Rg3SjmNYslIa1+f8j/?= =?us-ascii?Q?s0+wK0TF/jxXbWlDBjRZxFmvaACtv9Y7dAsGCvMB8nrt7sFPpRz8IDTlGGSL?= =?us-ascii?Q?WzFkiEUNUCjee14ES/XKuyaK5/aG96Z5f70F2ts2/eCPjpfmARrsmzuwEUeg?= =?us-ascii?Q?rRKJ7ngLyIYuu0hr6JFigl3ozUpzUaEavTlcmWuDBvyU4aP9wfCQjmr7s8TV?= =?us-ascii?Q?AMgUNI5T3cJdfeAFhEFCIPrXx1+S4AmkpaUVCd4SKpy+e8w3J3yFpljL7CAR?= =?us-ascii?Q?js57w1Y8u/WwJS1xUjNQadAn124xLkyWW6tjaUEityrcbW7VBw=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: AWKGOn+k6/5D32W1tWFrYJWGiJyfIQYofKGXyuCOiOxs6wI8fjHrzulvdoPxoEZpc7EK/wKBmbwZtsN4w3BNkbQ/y/dzoQEv+tFh4JJ2zJwgsZ2NQ6DqAm0WkROK7KlT+3m8olpd6/hLefB5ly4Ch9sajEb8bfrZ1pOwudDtbp4MxclirHmEtLq/bu0F4cgx4ZR0tXdAYL7rTkXvE0F2JtSAJ+4CkKiNXT7tPKtUGZhmA/ciPdzigm2QmY38MZ0DlK5Rusyr7gjNPTGpWB/guU35pXm8BWDb80pGXIV+m3PZJY4HwWFWWxE4dTyM6hQh/MaOC2LqSRqwOasBxf8s7VsZj4V5ZYcgw5zj45YExpTgWGs7UThIGe25wq1esSSQ0DYznO90aNW2c2c/G3l7nNl8h6M3H10+qFN2eATz74X7UrHFwivbXWd+yj7hbaVkwoA08LqsktsNkisrsbrIZzDEdawJ7ZFmESBOm5GC3eB3L3KhUbFdwZk2v29ezJM07GlvqpdOwniwg72WT6Cl4RujsH041iwltoZenzUGPSHLRAIpshY2YuWGTZyUh+VcJhNTTANktNQfQewqn7bLJTy6fiJmoD0P8kMvhl4imfZmkqPRYMnZg2xrrWq4r2W/60+iLSexx7dlaQ4fsqWjLJklEhj0lgzzR316T1fJAtc= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 21:06:07.3333 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c4c641a6-6917-40ba-3cfb-08dcf2142e9a 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: AM9P190MB1124 X-BESS-ID: 1729544771-311938-13026-41162-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.11.107 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVsaGxpZAVgZQ0MjS1Cw10dgo0c TAwsDc2DLZ1Mw0xdjcLDHFKC0pMdVQqTYWAHjF8R9BAAAA X-BESS-Outbound-Spam-Score: 1.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259883 [from cloudscan16-126.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.50 BSF_RULE7568M META: Custom Rule 7568M 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.50 BSF_RULE_7582B META: Custom Rule 7582B X-BESS-Outbound-Spam-Status: SCORE=1.00 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_RULE7568M, BSF_BESS_OUTBOUND, BSF_RULE_7582B 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 TX Inserter module injects zeros into an offset of a packet, effectively expanding the packet. Signed-off-by: Oleksandr Kolomeiets --- .../supported/nthw_fpga_9563_055_049_0000.c | 19 ++++++++++++++++++- .../ntnic/nthw/supported/nthw_fpga_mod_defs.h | 3 ++- 2 files changed, 20 insertions(+), 2 deletions(-) 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 60fd748ea2..c8841b1dc2 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 @@ -1457,6 +1457,22 @@ static nthw_fpga_register_init_s iic_registers[] = { { IIC_TX_FIFO_OCY, 69, 4, NTHW_FPGA_REG_TYPE_RO, 0, 1, iic_tx_fifo_ocy_fields }, }; +static nthw_fpga_field_init_s ins_rcp_ctrl_fields[] = { + { INS_RCP_CTRL_ADR, 4, 0, 0x0000 }, + { INS_RCP_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s ins_rcp_data_fields[] = { + { INS_RCP_DATA_DYN, 5, 0, 0x0000 }, + { INS_RCP_DATA_LEN, 8, 15, 0x0000 }, + { INS_RCP_DATA_OFS, 10, 5, 0x0000 }, +}; + +static nthw_fpga_register_init_s ins_registers[] = { + { INS_RCP_CTRL, 0, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, ins_rcp_ctrl_fields }, + { INS_RCP_DATA, 1, 23, NTHW_FPGA_REG_TYPE_WO, 0, 3, ins_rcp_data_fields }, +}; + static nthw_fpga_field_init_s km_cam_ctrl_fields[] = { { KM_CAM_CTRL_ADR, 13, 0, 0x0000 }, { KM_CAM_CTRL_CNT, 16, 16, 0x0000 }, @@ -2481,6 +2497,7 @@ static nthw_fpga_module_init_s fpga_modules[] = { { MOD_RST9563, 0, MOD_RST9563, 0, 5, NTHW_FPGA_BUS_TYPE_RAB0, 1024, 5, rst9563_registers }, { MOD_SLC_LR, 0, MOD_SLC, 0, 2, NTHW_FPGA_BUS_TYPE_RAB1, 2048, 2, slc_registers }, { MOD_TX_CPY, 0, MOD_CPY, 0, 4, NTHW_FPGA_BUS_TYPE_RAB1, 9216, 26, cpy_registers }, + { MOD_TX_INS, 0, MOD_INS, 0, 2, NTHW_FPGA_BUS_TYPE_RAB1, 8704, 2, ins_registers }, }; static nthw_fpga_prod_param_s product_parameters[] = { @@ -2639,5 +2656,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, 33, fpga_modules, + 200, 9563, 55, 49, 0, 0, 1726740521, 152, product_parameters, 34, fpga_modules, }; diff --git a/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h b/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h index 0ab5ae0310..8c0c727e16 100644 --- a/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h +++ b/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h @@ -28,6 +28,7 @@ #define MOD_I2CM (0x93bc7780UL) #define MOD_IFR (0x9b01f1e6UL) #define MOD_IIC (0x7629cddbUL) +#define MOD_INS (0x24df4b78UL) #define MOD_KM (0xcfbd9dbeUL) #define MOD_MAC_PCS (0x7abe24c7UL) #define MOD_MAC_RX (0x6347b490UL) @@ -47,7 +48,7 @@ #define MOD_TX_CPY (0x60acf217UL) #define MOD_TX_INS (0x59afa100UL) #define MOD_TX_RPL (0x1095dfbbUL) -#define MOD_IDX_COUNT (34) +#define MOD_IDX_COUNT (35) /* aliases - only aliases go below this point */ #endif /* _NTHW_FPGA_MOD_DEFS_H_ */ -- 2.45.0