linux/drivers/net/dsa
Florian Fainelli 5d80bcbb63 net: dsa: bcm_sf2: Make UDF slices more configurable
In preparation for introducing IPv6 rules support, make the
cfp_udf_layout more flexible and match more accurately how the HW is
designed: we have 3 + 1 slices per protocol, but we may not be using all
of them and we are relative to a particular base offset (slice A for
IPv4 for instance). Also populate the slice number that should be used
(slice 1 for IPv4) based on the lookup function.

Finally, we introduce two helper functions: udf_upper_bits() and
udf_lower_bits() to help setting the UDF_n_* valid bits based on the
number of UDFs valid within a slice. Update the IPv4 rule setting to
make use of it to be more robust wrt. change in number of User Defined
Fields being programmed.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-23 03:06:47 +01:00
..
b53 net: dsa: add dsa_to_port helper 2017-10-18 12:24:33 +01:00
microchip net: dsa: Move FDB dump implementation inside DSA 2017-08-07 14:48:48 -07:00
mv88e6xxx net: dsa: add dsa_to_port helper 2017-10-18 12:24:33 +01:00
bcm_sf2_cfp.c net: dsa: bcm_sf2: Make UDF slices more configurable 2017-10-23 03:06:47 +01:00
bcm_sf2_regs.h net: dsa: bcm_sf2: Make UDF slices more configurable 2017-10-23 03:06:47 +01:00
bcm_sf2.c net: dsa: split dsa_port's netdev member 2017-10-18 12:24:33 +01:00
bcm_sf2.h net: dsa: b53: Move EEE functions to b53 2017-09-19 16:08:53 -07:00
dsa_loop_bdinfo.c net: dsa: Mock-up driver 2017-04-01 12:39:32 -07:00
dsa_loop.c net: dsa: dsa_loop: remove .set_addr 2017-10-14 18:30:06 -07:00
dsa_loop.h net: dsa: Mock-up driver 2017-04-01 12:39:32 -07:00
Kconfig dsa: add DSA switch driver for Microchip KSZ9477 2017-05-31 20:56:31 -04:00
lan9303_i2c.c net: dsa: lan9303: MDIO access phy registers directly 2017-07-30 19:23:29 -07:00
lan9303_mdio.c net: dsa: lan9303: make functions lan9303_mdio_phy_{read|write} static 2017-10-03 10:20:12 -07:00
lan9303-core.c net: dsa: lan9303: Add fdb/mdb manipulation 2017-10-22 02:41:30 +01:00
lan9303.h net: dsa: lan9303: Add fdb/mdb manipulation 2017-10-22 02:41:30 +01:00
Makefile dsa: add DSA switch driver for Microchip KSZ9477 2017-05-31 20:56:31 -04:00
mt7530.c net: dsa: add dsa_to_port helper 2017-10-18 12:24:33 +01:00
mt7530.h net: dsa: mediatek: add adjust link support for user ports 2017-08-08 18:01:25 -07:00
mv88e6060.c net: dsa: add dsa_to_port helper 2017-10-18 12:24:33 +01:00
mv88e6060.h net: dsa: Keep the mii bus and address in the private structure 2016-04-13 18:15:23 -04:00
qca8k.c net: dsa: add dsa_to_port helper 2017-10-18 12:24:33 +01:00
qca8k.h net: dsa: call phy_init_eee in DSA layer 2017-08-01 20:09:10 -07:00