From patchwork Wed Nov 7 19:35:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Fomichev X-Patchwork-Id: 10672941 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 A674E14E2 for ; Wed, 7 Nov 2018 19:36:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 991B12B870 for ; Wed, 7 Nov 2018 19:36:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C4BE2CE38; Wed, 7 Nov 2018 19:36:06 +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=-15.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL 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 106842CE95 for ; Wed, 7 Nov 2018 19:36:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726806AbeKHFHq (ORCPT ); Thu, 8 Nov 2018 00:07:46 -0500 Received: from mail-io1-f74.google.com ([209.85.166.74]:42921 "EHLO mail-io1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbeKHFHp (ORCPT ); Thu, 8 Nov 2018 00:07:45 -0500 Received: by mail-io1-f74.google.com with SMTP id q22-v6so20954526iog.9 for ; Wed, 07 Nov 2018 11:35:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=ORL5j8b/m1OmB7Hasq8yWBseIa8g/+0VcfbWrTQqk8U=; b=PoL6uAVJ0pe6wnPkwZqNRDSSYNkhVTjbWI08Tyl6YTeXHOlWuJoyfeGgjd7SbmWEva wWDtNZ0Q7vimqmZp0KUSUE3vFMveXCiVds8V6r+IfYkogULNxxrHY4vPztB/WmcwYqtZ gIQPgLPsN4f1SrgJrc12Fd79lHZuhxZOxdAljUDbENfdOrFiNo7iz+FqE53TlgYtWgMh aWJeCCEr36qVRZjnV/HzK927wgc+u0jJ0LVP5pbj8G1a+HgevZjD4eGca9IQH8ewTUhw Vno8TdAD3O+MRwoV8hkZc7dy9vcjjlGE8iyHYabRlEnIARMDUpEKGPrQaFmPgayGAY6t +PdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ORL5j8b/m1OmB7Hasq8yWBseIa8g/+0VcfbWrTQqk8U=; b=YCq9EAXQr2qiqppL61p4GEBh/BV6khDM2dY1s5UIlBHYN3L79lwM/7byztUr1pHKlS nIFTkMjW6/t7tBMwMkk/TvszvUagwXHGEpATgy7x/M8IIRFkc1ifohihW0/tRIf7QZvA DuLkdUToLfUPNEcVdmimhV0urRrW4kMjvEOhIhZzC3Mziw4MDNYSjJ55ib+/kX+jo8bj grQoMi8gUcrKUjTDdyvOIBufS14aePP2U3lsczHrbylFa8273jvAo5sV39rY0PIcshNF zPnNlU/+PGpIZoGAPc7hh1/MhwfNaJgK7QE/iY4rCLjrRNk5xg11zNaNEzb9DeC/hwje hW+A== X-Gm-Message-State: AGRZ1gKubO4YlRFjSlddttARsHj3axk4pi3Tpr6pNiBV4rlIUGH0kgbQ S6gJqTbSAr2cjTDxZ/8oPTJMim8= X-Google-Smtp-Source: AJdET5c4ZAdo+7yYvIW80PMQoXmjwCBYMHUcx5/z5WZHckdDKkv7KQ+FCHEynNZPEel3uZ3jFLVQMHo= X-Received: by 2002:a24:59d1:: with SMTP id p200-v6mr1175106itb.10.1541619359297; Wed, 07 Nov 2018 11:35:59 -0800 (PST) Date: Wed, 7 Nov 2018 11:35:51 -0800 In-Reply-To: <20181107193552.77894-1-sdf@google.com> Message-Id: <20181107193552.77894-2-sdf@google.com> Mime-Version: 1.0 References: <20181107193552.77894-1-sdf@google.com> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog Subject: [PATCH bpf-next 1/2] selftests/bpf: rename flow dissector section to flow_dissector From: Stanislav Fomichev To: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, shuah@kernel.org Cc: jakub.kicinski@netronome.com, quentin.monnet@netronome.com, 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 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 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