From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next 0/9] net: Kernel side filtering for route dumps Date: Thu, 11 Oct 2018 12:43:37 -0700 (PDT) Message-ID: <20181011.124337.1483346566631333512.davem@davemloft.net> References: <199349c3-fd14-1401-86d1-814776372917@gmail.com> <20181011.122847.1015772734131510783.davem@davemloft.net> <20181011193248.GD17841@oracle.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: dsahern@gmail.com, jhs@mojatatu.com, stephen@networkplumber.org, dsahern@kernel.org, netdev@vger.kernel.org To: sowmini.varadhan@oracle.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:33352 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbeJLDMV (ORCPT ); Thu, 11 Oct 2018 23:12:21 -0400 In-Reply-To: <20181011193248.GD17841@oracle.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Sowmini Varadhan Date: Thu, 11 Oct 2018 15:32:48 -0400 > Without getting into Ahern's patchset, which he obviously feels > quite passionately about.. > > On (10/11/18 12:28), David Miller wrote: >> >> Once you've composed the message, the whole point of filtering is lost. > > it would be nice to apply the filter *before* constructing the skb, > but afaict most things in BPF today only operate on sk_buffs. How should > we use *BPF on something other than an sk_buff? Personally I'm not going to spend cycles on that. What's important to me in the short term is that David's patch set is an appropriate way to add filtering, using existing facilities and mechanisms that already exist for that purpose. If people want to explore a possible eBPF mechanism for the future, with an emphasis on "future", feel free to explore to your heart's content. But that doesn't exist in any form whatsoever, so that's not what we should be talking about here.