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 0F27E428D7; Thu, 6 Apr 2023 11:51:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 784FD42D2F; Thu, 6 Apr 2023 11:51:14 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2054.outbound.protection.outlook.com [40.107.93.54]) by mails.dpdk.org (Postfix) with ESMTP id F0BF540F18; Thu, 6 Apr 2023 11:51:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MF5eVfu6/iDFIBhnWz2ceGBFJzI3q/CPuRhA/mfHzAIQ2iNRlZjYLYLWaZ7RosMv+y1N2vDkTyXpgJB5EURdu8ZJGSEx3sOaB5ym3gJ5Rj6NyVUx2yjCm64Rj2XF7MnzQvW3F9Y2mzSYrb7BMqr8Sui97t5LlF6WZtQdHnWUSZyYdYzgoeI5UpFrwgpF7IYtPAiqPBITr4SQaZ7G9/6LPO1mZ226/895KmOVPffvCddYJzSspPaaQ61VmxqOLlSFX/0wLlYjzCmhYSAXqXnugefczh/aLBToEJxKqZihANSUR6PAlC8J+8y4nP8khOpJCC23NbzFuOsu/zxe9jrBIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=kFjvR22Qq+IrwyuPy7QK9KWerq53yk+MQVw5GNgyvQw=; b=Una5BLV7XP4npns2tR4q89mYWTqr4b1jEFu7B6kGEfRC8OlrQNvUPSdwiU62Ag3H3kNmSX9vz5qNiPGRN5fCNHFqx8BA2PoZKQSBg5qm0u4mqVZ1IoEA/J/Nrrq5JgoxAgeOpHL142CaLFetmGnvujMMAd9KjQ7EM/vdvOxBXDo3Ik7lmUtZJM6qdyQ2gwBXlQCNogdrZVJh4iOYD2MzlE9lIjvFnDikaMN7FrYgsvIVOy7BtPA7d111LJVsHRjEioSPz9FjNj9dEQkyf04ghhw2v2Gcn8aI+SIFAIPgAYTDPyJqKq+Y67yJ21g50ZwPnaxlqDiHshOT6ljgnRsojQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kFjvR22Qq+IrwyuPy7QK9KWerq53yk+MQVw5GNgyvQw=; b=ZIpFwo+MHHTTorZ5nHOwA10GlDbyofwyeepQgrNHGVgBmXGvegkhrRi+yd3htZkVGDzvZ9mDmx6aT7NIbdF+AwVb4jwMrYWlEpEMvL/rGmFgIJioPSlXZ6uLtrK2q/s0vLANkovOk01TpG3/p3S6JX9lXb6akTnE9C8Pj9zoae0fdYX/+H0cs8KGNmYq7MDWoGK5ScAnvfU9gQWFv20n3ewbxGXRYtGf8XeTdp91sFSJQ4Fm26GDx4NHgJQVwcFvRUss959IKg9BoE6FuOwJfMJkLxdD/iioR9yhOn83yflw+hGxr2+yhtwnSA5KhjJoRozkEC84vvUSm1QfWQ7ruw== Received: from BN0PR04CA0113.namprd04.prod.outlook.com (2603:10b6:408:ec::28) by BN9PR12MB5226.namprd12.prod.outlook.com (2603:10b6:408:11f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.31; Thu, 6 Apr 2023 09:51:11 +0000 Received: from BN8NAM11FT072.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ec:cafe::b2) by BN0PR04CA0113.outlook.office365.com (2603:10b6:408:ec::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.31 via Frontend Transport; Thu, 6 Apr 2023 09:51:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT072.mail.protection.outlook.com (10.13.176.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.31 via Frontend Transport; Thu, 6 Apr 2023 09:51:11 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Thu, 6 Apr 2023 02:50:59 -0700 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Thu, 6 Apr 2023 02:50:58 -0700 From: To: CC: , , Elena Agostini , Subject: [PATCH v2] net: fix return type of IPv6 L4 packet checksum Date: Thu, 6 Apr 2023 09:49:44 +0000 Message-ID: <20230406094944.821106-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230406092129.820449-1-eagostini@nvidia.com> References: <20230406092129.820449-1-eagostini@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT072:EE_|BN9PR12MB5226:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a746b4d-72f0-415e-08d9-08db36847408 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9XS2is6Xi8EXznDnIhaGpp3ehIel/eLyB48BArgvs/8UMNf4iav5pzCym5p4rImVo2GM5lamsYfVHAjjKaJGlOaPo9jL1Qy1kJDvCMl47TkAPn73BL6B5huLO4GtE8Pihn9A9Tp7zv9MefTN4A0XdpjHW3ha48GAdYSrYM5J+FQnIEjuFLLGPjXTkGsnFI+Q0bFqQfyJyhOpZz56ciboYWGubtStehKw5VWsouAKVi0MvJoaHVjo7G9V5H8+XCohQ11KZeRRwxTjUDDaEVneemGnm+rgtplgi09pEkOyOdcR7uFcN/GjGqgipnRnZvZlHggXsnZP36FYatLRxZ9HJif4wb/IfFKTltWCfhljBDHs8cuxl8hLHuCIJJak45XlaPNg7ryf9ExOvrR49fsUEP1LZ45TJVlZBVdqHlzajc5tNctItEPCLA/oACracNyXSi9aBVJI8or0oqer3uhm06NHQKeAOVLGAYJeQORWpBRC57nBW4Lp+IG3YSz1eOjsk5UZNrH9ssXemaTUdr7cVtuCcERpXSg2IfZeFlGtGGoekCV94MKnYQm2SkUPUeGgZ7tKAE3hW97y7mmyy/EZnUB7sZXDOMY4dtEXL+Zhfu7DGIx+rbCPBtKpKZpryZwW7JISrBEiJb/GSYgNgIQoaMAI4ui/KVF/X7CoijTyH32iBQu7YY6usN0KpF8eHPTh0pMqZt7oIH9adNGzGbHed68gX/sYxEElcciruxzSEny11e4lcE52V9X7jPcd9hqx X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(376002)(39860400002)(396003)(136003)(346002)(451199021)(36840700001)(46966006)(40470700004)(8936002)(6666004)(36756003)(4744005)(26005)(82310400005)(5660300002)(55016003)(41300700001)(82740400003)(54906003)(7636003)(356005)(2906002)(478600001)(6286002)(426003)(16526019)(4326008)(83380400001)(70586007)(70206006)(8676002)(6916009)(1076003)(336012)(186003)(316002)(36860700001)(2876002)(40460700003)(2616005)(47076005)(86362001)(7696005)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2023 09:51:11.1292 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2a746b4d-72f0-415e-08d9-08db36847408 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT072.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5226 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: Elena Agostini Function returns 0 or -1 but the return type is uint16_t. Fixes: d178f693bbfe ("net: add UDP/TCP checksum in mbuf segments") Cc: xiaoyun.li@intel.com Signed-off-by: Elena Agostini --- V2: added fixline and fixed cc address --- --- lib/net/rte_ip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/rte_ip.h b/lib/net/rte_ip.h index a310e9d498..e7106256aa 100644 --- a/lib/net/rte_ip.h +++ b/lib/net/rte_ip.h @@ -514,7 +514,7 @@ rte_ipv4_udptcp_cksum_verify(const struct rte_ipv4_hdr *ipv4_hdr, * Return 0 if the checksum is correct, else -1. */ __rte_experimental -static inline uint16_t +static inline int rte_ipv4_udptcp_cksum_mbuf_verify(const struct rte_mbuf *m, const struct rte_ipv4_hdr *ipv4_hdr, uint16_t l4_off) -- 2.34.1