From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Fastabend Subject: Re: [RFC net-next 6/9] net/cls_flower: Introduce hardware offloading Date: Mon, 01 Feb 2016 01:31:17 -0800 Message-ID: <56AF25E5.6000105@gmail.com> References: <1454315685-32202-1-git-send-email-amir@vadai.me> <1454315685-32202-7-git-send-email-amir@vadai.me> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: Or Gerlitz , Hadar Har-Zion , Jiri Pirko , Jamal Hadi Salim To: Amir Vadai , "David S. Miller" , netdev@vger.kernel.org, John Fastabend Return-path: Received: from mail-pa0-f53.google.com ([209.85.220.53]:35514 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752838AbcBAJba (ORCPT ); Mon, 1 Feb 2016 04:31:30 -0500 Received: by mail-pa0-f53.google.com with SMTP id ho8so79070871pac.2 for ; Mon, 01 Feb 2016 01:31:29 -0800 (PST) In-Reply-To: <1454315685-32202-7-git-send-email-amir@vadai.me> Sender: netdev-owner@vger.kernel.org List-ID: On 16-02-01 12:34 AM, Amir Vadai wrote: > During initialization, tcf_exts_offload_init() is called to initialize > the list of actions description. later on, the classifier description > is prepared and sent to the switchdev using switchdev_port_flow_add(). > > When offloaded, fl_classify() is a NOP - already done in hardware. > > Signed-off-by: Amir Vadai > --- You need to account for where the classifier is being loaded by passing the handle as I did in my patch set. Otherwise you may be offloading on egress/ingress or even some qdisc multiple layers down in the hierarchy. .John