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 3E07E45D55; Wed, 20 Nov 2024 19:03:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5CBF442FD3; Wed, 20 Nov 2024 19:03:15 +0100 (CET) Received: from egress-ip11a.ess.de.barracuda.com (egress-ip11a.ess.de.barracuda.com [18.184.203.234]) by mails.dpdk.org (Postfix) with ESMTP id CD6DA42FD3 for ; Wed, 20 Nov 2024 19:03:13 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2171.outbound.protection.outlook.com [104.47.17.171]) by mx-outbound41-38.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 20 Nov 2024 18:03:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IskXGAEREq3uVbDbqei15GmPo9WaXq9i4ixmA6JFWT1JVAjrFrdNr0jvZUaxSBD1jikeR64lQcOM0Dluv9h8mh+G0IGVF8dITmwdS5CPm249bNvohQb174dlEiCoQccrp54n5jZEj+kxMzdqZRW3+/Z3Hpj81d8wOY2wtc3M+I/OW32aEZRTsvyDZgfrqPEdnC8/DpLC+X5NR/Tvd2dVVD5Z+zIBDHfWuS3OZ9sUq9DBQjUcW+yOFGjd5LqRmqwrMNe7t6FYqeU2Mwk09PCPLH7HxbGzZak7PZX7wtXS9NBi3BFj293pWMEn2IkFidJ1mwsgFTciiPLRSfi+4OQAVQ== 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=O+Zkyr3hIKez4ByPtHjJqUyLCTIwr2NSwhEMeNwcvIY=; b=eoM1EDITyc9mZaZ2KkfSG3QT9K6izdjC4eXLvmiKx+mYY1SM5cw0p1GCFYQuFTlHuP+lZrm1cZLUZXUlDgNXhxCqk3GokV53zLml31fy1gwEIeFlkSCsv6UbjFKK887+zRG7THO4MsCRdqmMcGpejOHyjU/INp6HCE+5+Pctobf30aQoulXVZsN3SzcGEv56ZGg4nkV+VS+imTRRaVMJG7VSlb1doS99D1MSjqX2gpMQHxyigdDpQAiGjhA8dZ6tE12V6Ylk7GP7C2V+O1xWpo7OqFqq5e00+N2Eroto4LIGiIurVilNfWxPIX2UOJkWjYKu4uBkz97YdIN6PA7v0g== 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=O+Zkyr3hIKez4ByPtHjJqUyLCTIwr2NSwhEMeNwcvIY=; b=jeVfmTnCpKKIHjsfboTYXiL2+D+xhUfBrt37xzkCslprCuHMDkvyMqfEvUUOOiVw6LBTjU0I9FXwEMshGboAsbTXPdX6D2iyxuMdIa1MwbV+4cGq2bJ5Yj0R1J6SN1IFyQ9HHzBi1pIlV3I2/fT/ePzqeE0bZg6VcV0eq242xZg= Received: from DB7PR05CA0033.eurprd05.prod.outlook.com (2603:10a6:10:36::46) by AM9P190MB1090.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:26e::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23; Wed, 20 Nov 2024 18:03:08 +0000 Received: from DU6PEPF0000B61D.eurprd02.prod.outlook.com (2603:10a6:10:36:cafe::95) by DB7PR05CA0033.outlook.office365.com (2603:10a6:10:36::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.24 via Frontend Transport; Wed, 20 Nov 2024 18:03:08 +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 DU6PEPF0000B61D.mail.protection.outlook.com (10.167.8.137) with Microsoft SMTP Server id 15.20.8182.16 via Frontend Transport; Wed, 20 Nov 2024 18:03:06 +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 v1 2/3] net/ntnic: add supplementary macros Date: Wed, 20 Nov 2024 19:02:56 +0100 Message-ID: <20241120180258.64185-3-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241120180258.64185-1-sil-plv@napatech.com> References: <20241120180258.64185-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU6PEPF0000B61D:EE_|AM9P190MB1090:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 5344e9e8-f470-4063-fa48-08dd098d95be X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam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4OL/2zM41WleFs9u82H6B5wxxv8hY?= =?us-ascii?Q?IqxXmxMEScO+9+yAKEhPtay6bUttjoH404qS4wi7Eo2BKloA35oFIV30AXTF?= =?us-ascii?Q?cQeg51hc4TSzwiUZ/VJiPg4KhdppsFmkM8xzIR9K33juSHIZwFnL0DVaV4Sg?= =?us-ascii?Q?flCEfXL5qqx9EiudgcancxSzJtrTWPNEiBdWDwEVZF9h1Fj/ssUr3mRY4ROQ?= =?us-ascii?Q?aIO7KrFpNLcnIvpo3D7zib+l35Pe2t8toI4t7rxFdMK6VdAzFECLO3E4+Ama?= =?us-ascii?Q?WJ4fvxctSeF83ed22ON4SSbjuxxbHh2WlajJD34uA7fx7DmYr3HyrDMyiaA8?= =?us-ascii?Q?gfD14+TTT5W09Ke5oNfMJ0Og/PgTFDF7r/zef6hK4uq8xYnTmP8AT4eQWKW+?= =?us-ascii?Q?mvbiuufo0sBVoCuxdv2Mtd5BoEAQjR8B2rsC92Qyuniw5ShH2tlwbp4pNHR1?= =?us-ascii?Q?BTOlgnPw9cLvnGJ08BHPUnJHFlJrHMrqqF+80j52gqmsddOyRs2wID2A3sp7?= =?us-ascii?Q?k8xDH5vinjRaZtO9IOcw1q061TkaCHt6wuIMz7XJViyATZNpiw=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)(376014)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: PtqNbRg+PxE2v8B0QAKHtbAjZNzqDmyPIO7DZ7Ak9JAF3+W/CLUqFzK5iiqb9hVSp7aOn+oK3pJ1pW4sMOn5e/xNzUJWerlvnqoDwWJkZiHK81wyOl2Ia4v9O1ntFnRqXDp139FQWPtnmYnkCUzMQ5CT73y9y6jiYNHp2IGkSVJiVDRaCSAf+RDWkrisLttscijsR5oppt2cJPPKGGDlmpgJHc4IoGRpw6a9aFtZWOjcN8tEikg+R2SGxpsHcptW6iDsJiqRy+yDddXZTCZ9v3JgiPD61Y+V9RuJqrpA6V7EpdGyNZmHEou+oYtDWJmgTX+mjvOzttcQe4Kp4xfu+WuLwa8TeLo6WyOuDUlftCuUlreRv7VDt0HERdE55Ln6DKpqVXT9SyH/azmBgN9Vnnzd69fvsOfms6WE+JTYbbgDx176ZEsUZG4q9XgzxfcVegBTokVRdTJwgFwuIZgfZUk4mNtEsYsmfNE6KtDf+1n+VLQ1QZGhP8rIqz4E7TUVOmwnLjqvcBLpEDmDlQuQgkaeDhHHY5C/Nt0ZFLwSxn3+Em4NnEM319U4s+n5s5Zii6yQqvNXPO7lzibpdCAensUO5BEug7a0/pmh4TL12JbmvY3/JBtPFxvU4tJO1VabWhb6jdtuoVNx7mknxroPBU5j44Bn9FDUB8YLr02C2Uo= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2024 18:03:06.0713 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5344e9e8-f470-4063-fa48-08dd098d95be 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: DU6PEPF0000B61D.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1090 X-BESS-ID: 1732125790-310534-13483-32961-1 X-BESS-VER: 2019.1_20241119.1834 X-BESS-Apparent-Source-IP: 104.47.17.171 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoaGBhZAVgZQ0NTQ1MQ4Jc3Iwt AyJSkp2cA4OdUyMS010djUItXAIClRqTYWAAdXVQ9BAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260557 [from cloudscan11-32.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 Supplement existing toggle-like macros with respective opposites: * DISABLE_FRAGMENTATION -> ENABLE_FRAGMENTATION * IPV4_DF_DROP -> IPV4_DF_FORWARD * IPV6_DROP -> IPV6_FRAGMENT Fixes: 6019656d6f68 ("net/ntnic: add MTU configuration") Signed-off-by: Oleksandr Kolomeiets --- .../nthw/flow_api/profile_inline/flow_api_profile_inline.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.h b/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.h index ce1a0669ee..169f71ee68 100644 --- a/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.h +++ b/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.h @@ -11,9 +11,12 @@ #include "flow_api.h" #include "stream_binary_flow_api.h" +#define ENABLE_FRAGMENTATION 1 #define DISABLE_FRAGMENTATION 0 #define IPV4_DF_DROP 1 +#define IPV4_DF_FORWARD 0 #define IPV6_DROP 1 +#define IPV6_FRAGMENT 0 /* * Management -- 2.45.0