From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 504CFC74A36 for ; Wed, 10 Jul 2019 23:15:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33468208C4 for ; Wed, 10 Jul 2019 23:15:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727516AbfGJXPk (ORCPT ); Wed, 10 Jul 2019 19:15:40 -0400 Received: from mga18.intel.com ([134.134.136.126]:55802 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727220AbfGJXPk (ORCPT ); Wed, 10 Jul 2019 19:15:40 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2019 16:14:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,476,1557212400"; d="scan'208";a="159900747" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by orsmga008.jf.intel.com with ESMTP; 10 Jul 2019 16:14:39 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 209D23019F7; Wed, 10 Jul 2019 16:14:39 -0700 (PDT) Date: Wed, 10 Jul 2019 16:14:39 -0700 From: Andi Kleen To: Andrii Nakryiko Cc: Paolo Pisati , Yonghong Song , Daniel Borkmann , Alexei Starovoitov , Martin Lau , Song Liu , "bpf@vger.kernel.org" , Networking Subject: Re: [RESEND] test_verifier #13 fails on arm64: "retval 65507 != -29" Message-ID: <20190710231439.GD32439@tassilo.jf.intel.com> References: <20190701115414.GA4452@harukaze> <68248069-bcf6-69dd-b0a9-f4ec11e50092@fb.com> <20190710100248.GA32281@harukaze> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org > > Reading csum_partial/csum_fold, seems like after calculation of > > checksum (so-called unfolded checksum), it is supposed to be passed > > into csum_fold() to convert it into 16-bit one and invert. Yes, you always need to fold at the end. The low level code does fold sometimes, but not always. -Andi