Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc9db417 authored by David S. Miller's avatar David S. Miller
Browse files

Merge branch 'bcm_sf2-Add-support-for-IPv6-CFP-rules'



Florian Fainelli says:

====================
net: dsa: bcm_sf2: Add support for IPv6 CFP rules

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.
====================

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 33ad61d0 dd8eff68
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1067,6 +1067,7 @@ static int bcm_sf2_sw_probe(struct platform_device *pdev)
	 * permanently used
	 */
	set_bit(0, priv->cfp.used);
	set_bit(0, priv->cfp.unique);

	bcm_sf2_identify_ports(priv, dn->child);

+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ struct bcm_sf2_cfp_priv {
	/* Mutex protecting concurrent accesses to the CFP registers */
	struct mutex lock;
	DECLARE_BITMAP(used, CFP_NUM_RULES);
	DECLARE_BITMAP(unique, CFP_NUM_RULES);
	unsigned int rules_cnt;
};