From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f182.google.com ([209.85.220.182]:37384 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932722AbeCNBuH (ORCPT ); Tue, 13 Mar 2018 21:50:07 -0400 Received: by mail-qk0-f182.google.com with SMTP id y137so1872476qka.4 for ; Tue, 13 Mar 2018 18:50:07 -0700 (PDT) Date: Tue, 13 Mar 2018 18:50:02 -0700 From: Jakub Kicinski To: Or Gerlitz Cc: Jiri Pirko , Rabie Loulou , John Hurley , Simon Horman , Linux Netdev List , mlxsw , Yevgeny Kliteynik , Paul Blakey Subject: Re: [RFC net-next 2/6] driver: net: bonding: allow registration of tc offload callbacks in bond Message-ID: <20180313185002.45264fb1@cakuba.netronome.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 13 Mar 2018 17:53:39 +0200, Or Gerlitz wrote: > > Starting with type 2, in our current NIC HW APIs we have to duplicate > > these rules > > into two rules set to HW: > > > > 2.1 VF rep --> uplink 0 > > 2.2 VF rep --> uplink 1 > > > > and we do that in the driver (add/del two HW rules, combine the stat > > results, etc) Ack, I think our HW API also will require us to duplicate the rules today, but IMHO we should implement some common helper module in the core that would work for any block sharing rather than bond specific solution. > > 3. ingress rule on VF rep port with shared tunnel device being the > > egress (encap) > > and where the routing of the underlay (tunnel) goes through LAG. > > > > in our case, this is like 2.1/2.2 above, offload two rules, combine stats > > > > 4. ingress rule shared tunnel device being the ingress and VF rep port > > being the egress (decap) > > > > this uses the egdev facility to be offloaded into the our driver, and > > then in the driver > > we will treat it like type 1, two rules need to be installed into HW, > > but now, we can't delegate them > > from the vxlan device b/c it has no direct connection with the bond. Let's get rid of the egdev crutch first then :]