From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Subject: Re: [oss-drivers] Re: [PATCH net-next 0/7] nfp: extend match and action for flower offload Date: Mon, 9 Oct 2017 18:02:19 +0200 Message-ID: <20171009160218.GF14096@netronome.com> References: <1507278086-3102-1-git-send-email-simon.horman@netronome.com> <20171009080545.GB11130@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Miller , Jakub Kicinski , Linux Kernel Network Developers , oss-drivers@netronome.com To: Tom Herbert Return-path: Received: from mail-wm0-f52.google.com ([74.125.82.52]:54006 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754484AbdJIQCX (ORCPT ); Mon, 9 Oct 2017 12:02:23 -0400 Received: by mail-wm0-f52.google.com with SMTP id q132so24826864wmd.2 for ; Mon, 09 Oct 2017 09:02:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, Oct 09, 2017 at 08:45:41AM -0700, Tom Herbert wrote: > On Mon, Oct 9, 2017 at 1:05 AM, Simon Horman wrote: > > On Fri, Oct 06, 2017 at 08:34:59AM -0700, Tom Herbert wrote: > >> Simon, > >> > >> Maybe a bit off topic, but I had the impression netronome would > >> support BPF so that filters could be programmed for arbitrary > >> protocols and fields. Is that true? If so, what is the relationship > >> between that functionality and these patches? > > > > Hi Tom, > > > > you are correct in thinking that Netronome is supporting BPF offload > > in its nfp driver. That support continues to be enhanced and supported. > > > > This patch-set relates to a different set of functionality, offload of the > > TC flower classifier. At this point there is no relationship between the > > two sets of functionality and they cannot be used at the same time; > > different firmware images are required and the driver initiates itself > > according to the firmware loaded. > > > > In future it may be possible to use both BPF and TC flower offloads at the > > same time but that is not the case at this time. > > > > Does that answer your question? > > Yes... A couple of follow up questions. If someone uses tc-bpf would > that be offloaded to nfp? Is there anything that TC flower offloads > can do that the BPF solution can't do? I believe that the NFP driver also offloads tc-bpf. Jakub can correct me if I am wrong. I would expect that in general one can write BPF programs to offload use-cases cases covered by the TC flower offloads.