netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: netdev@vger.kernel.org
Cc: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com,
	davem@davemloft.net, Florian Fainelli <f.fainelli@gmail.com>
Subject: [PATCH net-next 0/7] net: dsa: bcm_sf2: Add support for IPv6 CFP rules
Date: Fri, 20 Oct 2017 14:34:47 -0700	[thread overview]
Message-ID: <20171020213454.14848-1-f.fainelli@gmail.com> (raw)

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.

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(-)

-- 
2.14.1

             reply	other threads:[~2017-10-20 21:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-20 21:34 Florian Fainelli [this message]
2017-10-20 21:34 ` [PATCH net-next 1/7] net: dsa: bcm_sf2: Use existing shift/masks Florian Fainelli
2017-10-20 21:34 ` [PATCH net-next 2/7] net: dsa: bcm_sf2: Move IPv4 CFP processing to specific functions Florian Fainelli
2017-10-20 21:34 ` [PATCH net-next 3/7] net: dsa: bcm_sf2: Make UDF slices more configurable Florian Fainelli
2017-10-20 21:34 ` [PATCH net-next 4/7] net: dsa: bcm_sf2: Simplify bcm_sf2_cfp_rule_get_all() Florian Fainelli
2017-10-20 21:34 ` [PATCH net-next 5/7] net: dsa: bcm_sf2: Add support for IPv6 CFP rules Florian Fainelli
2017-10-20 21:34 ` [PATCH net-next 6/7] net: dsa: bcm_sf2: Allow matching arbitrary IPv4 mask lengths Florian Fainelli
2017-10-20 21:34 ` [PATCH net-next 7/7] net: dsa: bcm_sf2: Allow matching arbitrary IPv6 masks/lengths Florian Fainelli
2017-10-20 21:35 ` [PATCH net-next 0/7] net: dsa: bcm_sf2: Add support for IPv6 CFP rules Florian Fainelli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171020213454.14848-1-f.fainelli@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=vivien.didelot@savoirfairelinux.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).