Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp771174ybt; Fri, 10 Jul 2020 11:58:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWqLbLlp5Nn3XGPgFP8tRaUBUaBs+3lKbb99A9JQSYWh7CKvFVC+wiVA0UvfcOi2ZWVQ3A X-Received: by 2002:aa7:c4d1:: with SMTP id p17mr50350567edr.268.1594407484620; Fri, 10 Jul 2020 11:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594407484; cv=none; d=google.com; s=arc-20160816; b=RN49k6rFIh46va++SplvHAnEtWnefqC1iQH9aFsashCIoHwrwq3b967wcbycxYLXmK L2XgSrD82/Gb+dI3KrvaI0qRZezQXkypH7Px85vdcr9sM2fLP21uC4GNKe8PvkkY2B+A qI1Ry9YuXKtSO65kdEGG4rqFMBkBh8sg63QtYv97bRgPNWER18wqbVmvmUhofe5ubYRL KsoXB32+Am9yCxoN+LIznjcCGWPp4d6OkRPUmLhsfh/QdIYnmX87JvPpLJ4V0G8rjik7 bPuB9pYxFpDwS8VCE3o41pt02gHTbOfEGWl1ClWDWLNQwDorDgbYQqhfO3rASZVSvhk0 MD7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=g3vr4p3HOtOZH3FqPih/GiIpdmOKnnPMCPNV6jgpCAc=; b=JXDdZQJweV2qab2UzPxE35LobInqA2rzC6xu2/x29tuO3QZXPWdhehhVf8S3AfPZgv KYej0vkQWI/QcGt4mtq2OtR4grArh3QFNhrHfWshbGcTFmWTM6613XIpgk3JzOlz7RpF rBXWDrcXhOi8E0Fwalk31oWJYn510smUJT41HD2ZzBSmD9PRzOcMQaZMg1/LRIAOYtqS kMy1O71dCbFDOS+YOs3ASbrq00M2rz9QdQlsbdTIfQQHUGPrGYT6iRZNi7YfoKysSGam d5XOhrmfQf0K7Nuvj3RciQZuKVJx1HQUm9CHmbceVxdvweoZJJA/6uE7Ou7LX5laLCQm jCnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iXwkuipp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg19si4565243ejb.138.2020.07.10.11.57.40; Fri, 10 Jul 2020 11:58:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iXwkuipp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728175AbgGJS53 (ORCPT + 99 others); Fri, 10 Jul 2020 14:57:29 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:46592 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726872AbgGJS52 (ORCPT ); Fri, 10 Jul 2020 14:57:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594407447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g3vr4p3HOtOZH3FqPih/GiIpdmOKnnPMCPNV6jgpCAc=; b=iXwkuippkShqaB3qGR83m1zOiJGwrUNv8E3/VrrioEGK7B/WXw3U5GPLc7fiE89WLcSNZ2 Q1RfzBSt61Afs+jc3vbhyAB/rDR6LGnY4GFAsqmqVQKZV3bv6Emk1Kf9zFtoosz0HCKrMC +YcvqpoqPElQaQgDaAI8+F9ozCJJV88= Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-456-I-m6CWLHNZKm9-SDKbQUPQ-1; Fri, 10 Jul 2020 14:57:25 -0400 X-MC-Unique: I-m6CWLHNZKm9-SDKbQUPQ-1 Received: by mail-pj1-f71.google.com with SMTP id bf1so4582210pjb.6 for ; Fri, 10 Jul 2020 11:57:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=g3vr4p3HOtOZH3FqPih/GiIpdmOKnnPMCPNV6jgpCAc=; b=p1KlPi7QO6uX2zVAdomJzucWPqLMN30g9wbL5IQkv0Gzys1VBrT7niyP5aNbgln2Y8 UXBZafLEWWnOLYXEkwE603mE/t++FQX5beUwr+li3XWAh93Da5nUX9UDVTolkBmTH7sk +LZdC3WWi94GQG5FHzUoDqw8WdUxO4IkbJCn6d+xGpfziGD0idZO5GAQegxs55qEyD0L o8XX1C7+634lj4+i7Ya/W/9x2rhV5Eu/zogEvdXrml7SEGgbBjA+/p+EypsEMcjSfO4S 3CM4MCyTcmu8VAcbi4aXJ49NineIcQFuMMW8ZJwii/vAurmcqthA2GoecHGUjYfV3W4l 9yOQ== X-Gm-Message-State: AOAM532bBhbUeajB0z9rmLtee8zYjJ/h4LvgFPcugJK0VcDGM4Z2kKqd Z/xhcRudAZwAOGAJMFBxcWknMgkGQWKWsvvAQTj0PYFBZoSOOqafMwtwTGYD4svNyQpvYQqY1Dy 3sGHrhG3n3sal5BfexUefX/rt X-Received: by 2002:a17:902:9f96:: with SMTP id g22mr15845522plq.306.1594407444710; Fri, 10 Jul 2020 11:57:24 -0700 (PDT) X-Received: by 2002:a17:902:9f96:: with SMTP id g22mr15845508plq.306.1594407444386; Fri, 10 Jul 2020 11:57:24 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id y7sm6084764pgk.93.2020.07.10.11.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 11:57:23 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id BA49D1808CD; Fri, 10 Jul 2020 20:57:17 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Joe Perches , "Alexander A. Klimov" , Daniel Borkmann , ast@kernel.org, davem@davemloft.net, kuba@kernel.org, hawk@kernel.org, john.fastabend@gmail.com, mchehab+huawei@kernel.org, robh@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH] MAINTAINERS: XDP: restrict N: and K: In-Reply-To: References: <20200709194257.26904-1-grandmaster@al2klimov.de> <19a4a48b-3b83-47b9-ac48-e0a95a50fc5e@al2klimov.de> <7d4427cc-a57c-ca99-1119-1674d509ba9d@iogearbox.net> <875zavjqnj.fsf@toke.dk> <458f6e74-b547-299a-4255-4c1e20cdba1b@al2klimov.de> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 10 Jul 2020 20:57:17 +0200 Message-ID: <87tuyfi4fm.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joe Perches writes: > On Fri, 2020-07-10 at 20:18 +0200, Alexander A. Klimov wrote: >>=20 >> Am 10.07.20 um 18:12 schrieb Toke H=C3=B8iland-J=C3=B8rgensen: >> > Joe Perches writes: >> >=20 >> > > On Fri, 2020-07-10 at 17:14 +0200, Daniel Borkmann wrote: >> > > > On 7/10/20 8:17 AM, Alexander A. Klimov wrote: >> > > > > Am 09.07.20 um 22:37 schrieb Daniel Borkmann: >> > > > > > On 7/9/20 9:42 PM, Alexander A. Klimov wrote: >> > > > > > > Rationale: >> > > > > > > Documentation/arm/ixp4xx.rst contains "xdp" as part of "ixdp= 465" >> > > > > > > which has nothing to do with XDP. >> > > [] >> > > > > > > diff --git a/MAINTAINERS b/MAINTAINERS >> > > [] >> > > > > > > @@ -18708,8 +18708,8 @@ F: include/trace/events/xdp.h >> > > > > > > F: kernel/bpf/cpumap.c >> > > > > > > F: kernel/bpf/devmap.c >> > > > > > > F: net/core/xdp.c >> > > > > > > -N: xdp >> > > > > > > -K: xdp >> > > > > > > +N: (?:\b|_)xdp(?:\b|_) >> > > > > > > +K: (?:\b|_)xdp(?:\b|_) >> > > > > >=20 >> > > > > > Please also include \W to generally match on non-alphanumeric = char given you >> > > > > > explicitly want to avoid [a-z0-9] around the term xdp. >> > > > > Aren't \W, ^ and $ already covered by \b? >> > > >=20 >> > > > Ah, true; it says '\b really means (?:(?<=3D\w)(?!\w)|(?> > > > In case this goes via net or net-next tree: >> > >=20 >> > > This N: pattern does not match files like: >> > >=20 >> > > samples/bpf/xdp1_kern.c >> > >=20 >> > > and does match files like: >> > >=20 >> > > drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c >> > >=20 >> > > Should it? >> >=20 >> > I think the idea is that it should match both? >> In *your* opinion: Which of these shall it (not) match? > > Dunno, but it doesn't match these files. > The first 5 are good, the rest probably should. Yup, I agree, all but the first 5 should be matched... -Toke > $ git ls-files | grep xdp | grep -v -P '(?:\b|_)xdp(?:\b|_)' > Documentation/hwmon/xdpe12284.rst > arch/arm/mach-ixp4xx/ixdp425-pci.c > arch/arm/mach-ixp4xx/ixdp425-setup.c > arch/arm/mach-ixp4xx/ixdpg425-pci.c > drivers/hwmon/pmbus/xdpe12284.c > samples/bpf/xdp1_kern.c > samples/bpf/xdp1_user.c > samples/bpf/xdp2_kern.c > samples/bpf/xdp2skb_meta.sh > samples/bpf/xdp2skb_meta_kern.c > samples/bpf/xdpsock.h > samples/bpf/xdpsock_kern.c > samples/bpf/xdpsock_user.c > tools/testing/selftests/bpf/progs/xdping_kern.c > tools/testing/selftests/bpf/test_xdping.sh > tools/testing/selftests/bpf/xdping.c > tools/testing/selftests/bpf/xdping.h