From patchwork Fri Nov 9 00:22:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Fomichev X-Patchwork-Id: 10675165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7C07F1057 for ; Fri, 9 Nov 2018 00:22:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6952E2E91D for ; Fri, 9 Nov 2018 00:22:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D6FA2E940; Fri, 9 Nov 2018 00:22:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEFE12E91D for ; Fri, 9 Nov 2018 00:22:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727702AbeKIKAY (ORCPT ); Fri, 9 Nov 2018 05:00:24 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42997 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727406AbeKIKAX (ORCPT ); Fri, 9 Nov 2018 05:00:23 -0500 Received: by mail-pg1-f196.google.com with SMTP id i4-v6so53264pgq.9 for ; Thu, 08 Nov 2018 16:22:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fomichev-me.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CXeDn/Okb5yBu53juKpA9Bi61hTkenwYsPdfGhG2e+A=; b=zN3BKhxPCziTMgCUoVEF9hX2ZzLBPChWJMiGfFwj0uWWWX3ymXkI6+1MM5cMap9azZ qk7ZiRGZeTabEAL0Z0H0ct4vnnPSQE+15DsAFG6mCwzi1MaY0EEs52O2nliKWD9R71pK iTZbj4hRfcds/bG9GReAFAGhOkSBoTR79l4MGh/LPJqtijvU48k3R4pgTMeqY89kpb14 +mjVlbGvVdUimc35ZA7+WlxiwBQksJs6HmRt3d4otQV95rM0K81x8oKW/19wjozXd0p9 x8m6d/xGJAogliSmM/5BSoy62BtyRbWwwySm/I3KfuRkBKkfKYEeqVQqSeOSB8GOgJmT XeLA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CXeDn/Okb5yBu53juKpA9Bi61hTkenwYsPdfGhG2e+A=; b=eSg4tOtXCGMbcyW987x74wo50cR3I9x8FPxLgKUMS0yW46YGs8ANomYmU6k/9cwMqc Ixg3+kjX++qn7FbX5Z+AKYu7UsYp+3gRHDRnqhRG1ZuO79PWyh4MP4nb0dSXP6PpMtGD Ko1SNNJ8DBfUpuP2XdFveN54ogohGd4Pc+cx+89nzG8n8w8xvvtlAIbJHyGwwgXBlSLp upjW9sK/cQXS0jI3g22DGjeiWD7hNIPreKoxgkZpc+nHh5cbEnSotSQDXS2zwNx0ZqeE zcvJ0aBzBmMk8fVybGj0xWtuLSymK8gDUVWJcnhFI1rmqMunTEsdIG+ecPvj2Usv9O66 rcCQ== X-Gm-Message-State: AGRZ1gKMnwFYdGSJYx9SD3xg30kM2ri0a2WHDoTkDKKDfJWb02xeBjFm 4sN2shbQNRVub9GipZ0PqA539g== X-Google-Smtp-Source: AJdET5er10lMiOKz+zquMS87tcxYxnhtxBefPTeEoxOEm39e7AD46/CDRj6qtVzwVOg1gFxyN2vFHw== X-Received: by 2002:a63:e40c:: with SMTP id a12mr5650603pgi.28.1541722939488; Thu, 08 Nov 2018 16:22:19 -0800 (PST) Received: from mini-arch.hsd1.ca.comcast.net (c-98-210-199-22.hsd1.ca.comcast.net. [98.210.199.22]) by smtp.gmail.com with ESMTPSA id g21-v6sm4918955pgh.82.2018.11.08.16.22.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 16:22:18 -0800 (PST) From: Stanislav Fomichev X-Google-Original-From: Stanislav Fomichev To: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, shuah@kernel.org, jakub.kicinski@netronome.com, quentin.monnet@netronome.com Cc: guro@fb.com, jiong.wang@netronome.com, sdf@google.com, bhole_prashant_q7@lab.ntt.co.jp, john.fastabend@gmail.com, jbenc@redhat.com, treeze.taeung@gmail.com, yhs@fb.com, osk@fb.com, sandipan@linux.vnet.ibm.com Subject: [PATCH v4 bpf-next 1/7] selftests/bpf: rename flow dissector section to flow_dissector Date: Thu, 8 Nov 2018 16:22:07 -0800 Message-Id: <20181109002213.5914-2-s@fomichev.me> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181109002213.5914-1-s@fomichev.me> References: <20181109002213.5914-1-s@fomichev.me> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Stanislav Fomichev Makes it compatible with the logic that derives program type from section name in libbpf_prog_type_by_name. Signed-off-by: Stanislav Fomichev --- tools/testing/selftests/bpf/bpf_flow.c | 2 +- tools/testing/selftests/bpf/test_flow_dissector.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/bpf_flow.c b/tools/testing/selftests/bpf/bpf_flow.c index 107350a7821d..b9798f558ca7 100644 --- a/tools/testing/selftests/bpf/bpf_flow.c +++ b/tools/testing/selftests/bpf/bpf_flow.c @@ -116,7 +116,7 @@ static __always_inline int parse_eth_proto(struct __sk_buff *skb, __be16 proto) return BPF_DROP; } -SEC("dissect") +SEC("flow_dissector") int _dissect(struct __sk_buff *skb) { if (!skb->vlan_present) diff --git a/tools/testing/selftests/bpf/test_flow_dissector.sh b/tools/testing/selftests/bpf/test_flow_dissector.sh index c0fb073b5eab..d23d4da66b83 100755 --- a/tools/testing/selftests/bpf/test_flow_dissector.sh +++ b/tools/testing/selftests/bpf/test_flow_dissector.sh @@ -59,7 +59,7 @@ else fi # Attach BPF program -./flow_dissector_load -p bpf_flow.o -s dissect +./flow_dissector_load -p bpf_flow.o -s flow_dissector # Setup tc qdisc add dev lo ingress