From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3C6F1A0613 for ; Tue, 24 Sep 2019 17:11:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E46492BCE; Tue, 24 Sep 2019 17:11:17 +0200 (CEST) Received: from GCC01-CY1-obe.outbound.protection.outlook.com (mail-eopbgr830090.outbound.protection.outlook.com [40.107.83.90]) by dpdk.org (Postfix) with ESMTP id 1BCB72BC8 for ; Tue, 24 Sep 2019 17:11:16 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q2I8q6WJO9wNrJKHHNmTm6YWw+en6sme/znYTBURj9OlNotuP5h3XAT+awzT2nUKBoRuICgmvpe+YplkSS39eP7cA+dTBeU1aKfqd+EdRoof3VqAD4lr3DXC1ldT4uO2ev+tJXypuXHDzoBKK81nfnpmAX5artDPWKD+GjQTxLDB/TsG5GJ53G9MDxgt1JPXwOpq96JusvPZYhudgIEhVYVvuiVKER9f/e24Yo0IUiFFG10Ag4o15yHxRk4t4l1yfzBiGMaL+e68DP9P9hMXnsufrhNFjMrlzZNeN29lhdPpjufi9E9cMxcEXAV4yD+dVV44LTvXiq04W/ZrqtI08g== 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-SenderADCheck; bh=I/JRwTNXoEGsS3DmbNEq7QbGOlKlIGPPlsXf123h+Os=; b=VSUn0KOF38+GSdf+AhMl617GmSDn3yTyRe+/wKTgNIYOPgt2P8QWIsWIKjx/lauJZmj36MOuW3r38ReLyqHKAjzhh4jwshnrQNoe4cBf1s4cU/XG6TYIN+v44KtcE/gNVxaMB1qOIuydvUwkCcYBObPy9Rxa32UwLjcE1YlCAJYqezBbJSjBsJzzB86PFLAcw3RhNCW+vRPVP1JUGgxoCMDj5+m7d2Q4Xscx6bM7RhxHbb+wzc8JZDFBffdyurlFnnc8GDGV81B06dRNVo+iYwGZKU5izOzD6AZwgFeZY4IXF9bt5vg/RcVSqMtGLZR17GDqugdY/m+nuZVQPstM4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nist.gov; dmarc=pass action=none header.from=nist.gov; dkim=pass header.d=nist.gov; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nist.gov; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I/JRwTNXoEGsS3DmbNEq7QbGOlKlIGPPlsXf123h+Os=; b=SuINcoQLDCw+gsDokjvJdEtYN7pZDrAHbpqk9uNRQTDUJZkd1P2tasjhyamhzHZl3Pc8GYwcG5+9EHl1DqT6/eJ/otMJAr7Cu9lml0jjYJ9kzQQDj5UnxRusEbuRpz8YCY/h4nQJ4rxgtzk+nhVwGo5MqDfqV9ogzQ2R283KBgk= Received: from DM6PR09MB2954.namprd09.prod.outlook.com (20.177.221.157) by DM6PR09MB3179.namprd09.prod.outlook.com (20.178.3.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.26; Tue, 24 Sep 2019 15:11:14 +0000 Received: from DM6PR09MB2954.namprd09.prod.outlook.com ([fe80::e82c:b170:1f4f:765d]) by DM6PR09MB2954.namprd09.prod.outlook.com ([fe80::e82c:b170:1f4f:765d%6]) with mapi id 15.20.2284.023; Tue, 24 Sep 2019 15:11:14 +0000 From: "Khoussi, Siham (IntlAssoc)" To: "dev@dpdk.org" Thread-Topic: udp checksum Thread-Index: AdVy6kjxtyDE+jLrQ1S0jyM7tKUVDw== Date: Tue, 24 Sep 2019 15:11:12 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=siham.khoussi@nist.gov; x-originating-ip: [129.6.140.164] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9d0139e1-f807-4a41-3f52-08d741017103 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:DM6PR09MB3179; x-ms-traffictypediagnostic: DM6PR09MB3179: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0170DAF08C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(39860400002)(366004)(136003)(346002)(396003)(199004)(189003)(6116002)(14454004)(6916009)(3846002)(790700001)(413944005)(221733001)(478600001)(102836004)(74316002)(25786009)(33656002)(476003)(256004)(99286004)(2501003)(6506007)(186003)(3480700005)(7736002)(7116003)(4744005)(14444005)(64756008)(9686003)(55016002)(5640700003)(66946007)(6436002)(5660300002)(66066001)(2906002)(86362001)(2351001)(71190400001)(71200400001)(66476007)(8676002)(1730700003)(54896002)(66446008)(66556008)(7696005)(26005)(6306002)(76116006)(8936002)(316002)(81166006)(486006)(81156014)(52536014); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6PR09MB3179; H:DM6PR09MB2954.namprd09.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: nJHUgwxSg1PbVH2+NQT1ogi5wtyDDPRBkoIPImVS8tDxeVlNkV97H6c7kBumxS2b4BHBeW2Yal1O5lsi182/lj11NFY0ZHNl+6ty/MuZqzKKBAC6r1MbkbAFK0LJePcmwcgRGtNjMOwCUOD219hTwpKJw6RSzyAIq/+pjChJOSLMVR2gZAv7qy97FFxxAxbrI7VoUWCQ1sKV52chGR0XIg4dpSn0Y+AFD4Hzaf1I55WVkVXuXF0Gb1I8PekMF13bxd2XqFk3a3pM0qp+qOdbZbZDLsnOKA9CHwY3nzuIf5nJHhwovonMY9YI/dZG1FYP1ecaPeb4+BAiY8xQCz4zLbmxtyDOkpJwjiICJdt2T8yRnDkyxJreTmPwlqowxPNs3tArXzoi5FX2WymQtKioOxfaqlM0Q5OLE0PhIs70M5o= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: nist.gov X-MS-Exchange-CrossTenant-Network-Message-Id: 9d0139e1-f807-4a41-3f52-08d741017103 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2019 15:11:14.0806 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: N79MvJGWedwwTrHLexnK7vMfAFa6zo0FAH4Pt5oiXOIPggejyPFei3F45Bmbz/ax X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR09MB3179 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] udp checksum X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Dear all, I have a question related to layer 4 checksum. I am creating a UDP packet b= y appending the layers in order (udp, ipv4, Eth). However, when I run Wire= shark on the receiving end I get: [UDPchecksum =3D missing (nor present]. W= hereas, the checksum for ipv4 works fine. Here is what I do: .... Filling udp header ..... Struct udp_hdr *udp=3D(struct udp_hdr*)rte_pktmbuf_prepend(mbuf, sizeof(*ud= p)); Udp->dgram_cksum=3D0; Ipv4->hdr->hdr_cksum=3D0; Udp->dgram_cksum=3D rte_ipv4_udptcp_cksum((const struct ipv4_hdr *)ipv4_hdr= , (const void *)udp); Ipv4_hdr->hdr_cksum=3D rte_ipv4_cksum((const struct ipv4_hdr *)ipv4_hdr); --- continue filling ipv4 fields ... Does anyone have an idea why rte_ipv4_udptcp_cksum() not working? Thank you, Siham