From patchwork Wed Jul 21 10:40:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Almbladh X-Patchwork-Id: 483735 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=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 B0905C12002 for ; Wed, 21 Jul 2021 11:29:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F24D60FED for ; Wed, 21 Jul 2021 11:29:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237883AbhGUKrh (ORCPT ); Wed, 21 Jul 2021 06:47:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238640AbhGUKAd (ORCPT ); Wed, 21 Jul 2021 06:00:33 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BFD1C061574 for ; Wed, 21 Jul 2021 03:41:09 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id qa36so2500094ejc.10 for ; Wed, 21 Jul 2021 03:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anyfinetworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=of1aHiumD0d746c1BNBCXDD6a5ghwP+21JON2EtY/nc=; b=O+AIL5WfDv+LnDd77LpVwq/3jOaXiZ4fnmed7KimdnkYKH5ZxjEY147HnmxRk/6ftk E3ax0dLhv6/V2+2d51q7QQKDAckTi3LTo1UfnVmjov3rqVaH6+VL9yKLt9PJaMhnq0Kx wDerR0hZps1mIqoHjDAwimB2WkowcDl8A0qMJSjCXAoIYOhStZd9jaeSH3gIUwpTD85n 4gRHwZj2IOxA2hLqo9lWVeC2L0r5WGR/5ORO11JsbbEI6/YojiaS5fT+eNDl8ZyaSCvw 4ENfhWBxadeITB/TuDlh7IBVmcvqHpdQGvq8gbWzJwECZe2KkWjDzieHecWR/bHoxSFc FL/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=of1aHiumD0d746c1BNBCXDD6a5ghwP+21JON2EtY/nc=; b=omCGS174YDl5MUTVKluLi5zaJ2T2MJQX0pu07BnylMbIBVAg77/MjfLBjo3kGwPHfS Oy8Nrsc6uD6fIVSMvkPKQo2U0FkqG25zrwR/MBkNuMXwyX/xPKvzfG/pfDaTdrxKpbV1 Rp4oJPqwUd6hDzmRvZNI9Xm0JJUhnhewB58m0Ui6i6ebx6guTVyeojSaBtyULNT/DuPJ 7mp/f9/PP4dC2B3F/xQdvlhrZ6PMP1/gDpfNpb/cqKul+20gsxg4WPGS7g6PtF+herfL F4N9qEy4yry27ZSDxuqfNLq+P/n0h8egIjjSpR84z59NXsIkW+K/2M0OanN1Ujq/QP2p JPkQ== X-Gm-Message-State: AOAM530rVKOMZ2tEgNWC2lnIWDeHHFIXW5jsTRJjJB2jqOXjhqJDfDq8 XnjRfScY5NceT2COo1G2s+O1iw== X-Google-Smtp-Source: ABdhPJxYeCaVjdROd2OYfevnzDCpbLcnbMjaYnylZ4Sf0IQ8//ncTW8EcevuSwO2MTUcFAXZdHfJ2Q== X-Received: by 2002:a17:906:4b46:: with SMTP id j6mr38006668ejv.247.1626864068041; Wed, 21 Jul 2021 03:41:08 -0700 (PDT) Received: from anpc2.lan (static-213-115-136-2.sme.telenor.se. [213.115.136.2]) by smtp.gmail.com with ESMTPSA id hb7sm8174054ejb.18.2021.07.21.03.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 03:41:07 -0700 (PDT) From: Johan Almbladh To: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org Cc: kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, Tony.Ambardar@gmail.com, netdev@vger.kernel.org, bpf@vger.kernel.org, Johan Almbladh Subject: [PATCH] bpf/tests: fix copy-and-paste error in double word test Date: Wed, 21 Jul 2021 12:40:58 +0200 Message-Id: <20210721104058.3755254-1-johan.almbladh@anyfinetworks.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This test now operates on DW as stated instead of W, which was already covered by another test. Signed-off-by: Johan Almbladh --- lib/test_bpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/test_bpf.c b/lib/test_bpf.c index baff847a02da..f6d5d30d01bf 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -4286,8 +4286,8 @@ static struct bpf_test tests[] = { .u.insns_int = { BPF_LD_IMM64(R0, 0), BPF_LD_IMM64(R1, 0xffffffffffffffffLL), - BPF_STX_MEM(BPF_W, R10, R1, -40), - BPF_LDX_MEM(BPF_W, R0, R10, -40), + BPF_STX_MEM(BPF_DW, R10, R1, -40), + BPF_LDX_MEM(BPF_DW, R0, R10, -40), BPF_EXIT_INSN(), }, INTERNAL,