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 A152D428D7; Thu, 6 Apr 2023 11:22:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79A8040F18; Thu, 6 Apr 2023 11:22:58 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2079.outbound.protection.outlook.com [40.107.223.79]) by mails.dpdk.org (Postfix) with ESMTP id F2CEF40DF6 for ; Thu, 6 Apr 2023 11:22:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GLwVLydeSTc6dk6CaY9lHr9Yi3hsMJFwtf47T5xmhJUaDqT/bzKPoLLufOrHYgXK+bDp8dt4biFQdkEuOv9NNM0NK3NJ4Zq49SBRUodHDQetbK1OyU7ZFt9hPEYIN+Hs8Z8YIkmkFSX+wRlEQMFbRVbCwt0WbBLyKwxKiUyUPryvit1+AR+zoV7hTaL48gQ7v8nONcKa71VGyjHmGqdkEB5EQJ2utaYSJs7gn+azHHhgPQrtp0++YUiwogve4XfjqoSbnEI6Prh5KZ1OUJ9cfMCcj9fRymFH2iexBFME60RYEA1jHZXG22rKuv7iOTuzI1TvMxnKIWefyUswq0UeeQ== 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=9X3dJ3gvM1G2Jr949x1nA7NOnsJb5HdwY4mgdc1r2Fk=; b=fGzMxfqpngRWSDX5dgZze5ngxy90wbjVg6ZewJnMiDXY72cxMViOHOwrBycK4iJwh4O+deO9AxZJg/VscpHtoKueZfZ3S2UuJto6rj6r3pUBy6K3dDSB58d+fp0qjhnrNrxkpCDHQAZOKWLhmrICDER/hLye+Pd/tclOGvcLp+MHBkxFaIs35zC8EBDwXh2DbLXq31vDOJ8IyT4Hnvgu+uL/ZvQMlYxo3v1TmydPl2e8xayh7HVxMGBCdbE+dHHVj7DVPIff2DcWomR/ycGqwArjp4iSKh8Cwwq4ZqKepcogpC5iE34Vyr48oOAP6PILctZ0Mdi7t2eiQfg6NV10IQ== 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=9X3dJ3gvM1G2Jr949x1nA7NOnsJb5HdwY4mgdc1r2Fk=; b=e1DWPU+uTU5f/ApwHxookeBSpPKlFVb6q1TAilQaZe301wRT3Z8IIPrWJ3XrN85krlZn49ywrsaFyEudU0Z0jY4F6nZZa0hwTArZgHoFcuNJeLGonAsQdcDBqTqGft81lv9OnUvw+SFlqHa2H0380O8hCEPP2JsCqvMGeDUmYs7AqSrfKCa1UKRfSf974tLv54ED9/vx/+mLvr/hyVrYDJp2ycP2skcPvIlSyP8vcWXL8uetHf1SQ1p/U4IGWyMuI2OJZZOjGCGA/BHk6W2fWexqm7EAutKehl2PjcKEbujml7r6tp5AjcYY1Hiwlk8I4Aaht4/aPeUMVspt07gvHQ== Received: from DS7PR03CA0190.namprd03.prod.outlook.com (2603:10b6:5:3b6::15) by MW6PR12MB8868.namprd12.prod.outlook.com (2603:10b6:303:242::20) 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:22:55 +0000 Received: from DM6NAM11FT105.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b6:cafe::68) by DS7PR03CA0190.outlook.office365.com (2603:10b6:5:3b6::15) 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:22:55 +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 DM6NAM11FT105.mail.protection.outlook.com (10.13.173.164) 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:22:54 +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:22:42 -0700 Received: from nvidia.com (10.126.231.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:22:42 -0700 From: To: CC: , Elena Agostini Subject: [PATCH] net: fix return type of IPv6 L4 packet checksum Date: Thu, 6 Apr 2023 09:21:29 +0000 Message-ID: <20230406092129.820449-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.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: DM6NAM11FT105:EE_|MW6PR12MB8868:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c8b2b38-da2a-46b6-be66-08db368080b7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WkCVRZ+wzIXpUQ7kA41n3v5xcKXm1zSToGMP8zsSQR5i5Vj5Qgoz08XlVZfEHg1FASxgmb3cClynjX4OzVCsxd1XkH7f4xFcxnQI9PR1TyYtOZhpCpyn0d3suf6t1Ds9EyTcMuKswTx/eKWLousgPRAtpeCkqkt28Zm38G1w4uEsdC6QcGEMQ6Y6zan2PHzENuBjSW0uXevSPlMDOlTSprgJCZcBOlR6jZ3hwa7LM57GnV0b/o6LOwVDVxl1lMfThrGsBRa61vTHyuzYabHd8+iCusMSWMrdx9MuO+8DTcA+Tv88msL9oot5vuQSseB28JKY+xHhyRGwXLwxRyy5jYx1ZJjyqzALdWk3FUtsSAUAZJ2jXQyykSCQoUFj78L6AdIB00Jk3hdzeb8kFdytsVO4SoB0vIT3wpQVd6dGiweG42PPeBYTIG5nXkLacnoVzrcm6pojGMNCc+H6gnuwkV0of5FJ2jFq14ltxgWklGTaLIbLit1H29J1HvCRE8ezbeTBc2jouwghOfjtbci5Bz1KmwZKf6SkKh4sYag6OQMmS0Iit8ZhRO6nv5c1OdlJO0kodB7llAYyVZWTh0ISuleHzyYm6lF9CQxC55SFOn8MKiNMUV4qz+Dfkc/6pPZFIxgiY/PK1PSLni0XK2dwqpRmihd82EQCQ3AchjyhyHToh8rZYuw14IUhOrFh7OhspdxEdNWn82QqoD3IzeAn2kSOxuIPm4LdahJww9jl4vBROVlrCTLJwofQEk/uQ8Oi 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)(346002)(136003)(396003)(451199021)(46966006)(36840700001)(40470700004)(40460700003)(36756003)(5660300002)(2906002)(4744005)(4326008)(82310400005)(40480700001)(8936002)(55016003)(70206006)(70586007)(7636003)(6916009)(356005)(41300700001)(86362001)(82740400003)(8676002)(450100002)(47076005)(83380400001)(336012)(2616005)(426003)(36860700001)(107886003)(6666004)(186003)(1076003)(54906003)(26005)(2876002)(6286002)(16526019)(316002)(7696005)(478600001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2023 09:22:54.4734 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c8b2b38-da2a-46b6-be66-08db368080b7 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: DM6NAM11FT105.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8868 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. Signed-off-by: Elena Agostini --- 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