From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net-next 0/9] net: Kernel side filtering for route dumps Date: Thu, 11 Oct 2018 11:04:15 -0600 Message-ID: <7f4228a7-9a55-1ca5-f36f-62ef30393c90@gmail.com> References: <20181011150627.4010-1-dsahern@kernel.org> <20181011082637.3e7833c9@xeon-e3> <20181011154624.GD28581@oracle.com> <2de259e0-6910-bb42-82d0-2ab7f27e9838@mojatatu.com> <82e4fb1f-10b8-eda7-9643-36950e900103@gmail.com> <5d8bfaa7-b692-ae0f-43a4-293a33012502@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: David Ahern , netdev@vger.kernel.org, davem@davemloft.net To: Jamal Hadi Salim , Sowmini Varadhan , Stephen Hemminger Return-path: Received: from mail-pl1-f195.google.com ([209.85.214.195]:35282 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbeJLAcY (ORCPT ); Thu, 11 Oct 2018 20:32:24 -0400 Received: by mail-pl1-f195.google.com with SMTP id f8-v6so4538550plb.2 for ; Thu, 11 Oct 2018 10:04:18 -0700 (PDT) In-Reply-To: <5d8bfaa7-b692-ae0f-43a4-293a33012502@mojatatu.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 10/11/18 10:46 AM, Jamal Hadi Salim wrote: > On 2018-10-11 12:16 p.m., David Ahern wrote: > > Yes, you can do it with cBPF but some complexity may occur. Example: > if i was interested to netdevice events of "kind = vxlan && > admin flag is down" then that is non trivial to do with classical but > would be reasonably comfortable to do with ebpf. > Note: > That filter will work fine for dumps as well since the semantics > are the same. You can already filter link dumps by kind. How? By passing in the KIND attribute on a dump request. This type of filtering exists for link dumps, neighbor dumps, fdb dumps. Why is there a push to make route dumps different? Why can't they be consistent and use existing semantics?