From: Florian Fainelli Subject: Re: [PATCH net-next 0/7] net: dsa: bcm_sf2: Add support for IPv6 CFP rules Date: Fri, 20 Oct 2017 14:35:56 -0700 Message-ID: <3f9a11b8-e72d-0835-4706-ba32c9c46562@gmail.com> References: <20171020213454.14848-1-f.fainelli@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, davem@davemloft.net To: netdev@vger.kernel.org Return-path: Received: from mail-qk0-f193.google.com ([209.85.220.193]:44049 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752993AbdJTVgA (ORCPT ); Fri, 20 Oct 2017 17:36:00 -0400 Received: by mail-qk0-f193.google.com with SMTP id r64so15992537qkc.1 for ; Fri, 20 Oct 2017 14:36:00 -0700 (PDT) In-Reply-To: <20171020213454.14848-1-f.fainelli@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 10/20/2017 02:34 PM, Florian Fainelli wrote: > Hi all, > > This patch series adds support for matching IPv6 addresses to the existing CFP > support code. Because IPv6 addresses are four times bigger than IPv4, we can > fit them anymore in a single slice, so we need to chain two in order to have > a complete match. This makes us require a second bitmap tracking unique rules > so we don't over populate the TCAM. > > Finally, because the code had to be re-organized, it became a lot easier to > support arbitrary prefix/mask lengths, so the last two patches do just that. Grr, of course I forgot to sanitize the patches for upstream inclusion, I will resend that in a short while, sorry about that. > > Florian Fainelli (7): > net: dsa: bcm_sf2: Use existing shift/masks > net: dsa: bcm_sf2: Move IPv4 CFP processing to specific functions > net: dsa: bcm_sf2: Make UDF slices more configurable > net: dsa: bcm_sf2: Simplify bcm_sf2_cfp_rule_get_all() > net: dsa: bcm_sf2: Add support for IPv6 CFP rules > net: dsa: bcm_sf2: Allow matching arbitrary IPv4 mask lengths > net: dsa: bcm_sf2: Allow matching arbitrary IPv6 masks/lengths > > drivers/net/dsa/bcm_sf2.c | 1 + > drivers/net/dsa/bcm_sf2.h | 1 + > drivers/net/dsa/bcm_sf2_cfp.c | 1196 ++++++++++++++++++++++++++++++---------- > drivers/net/dsa/bcm_sf2_regs.h | 15 +- > 4 files changed, 935 insertions(+), 278 deletions(-) > -- Florian