[PATCH net-next v6 0/9] Enhanced DCB and DSCP Support for KSZ Switches

Oleksij Rempel posted 9 patches 1 year, 10 months ago
drivers/net/dsa/microchip/Kconfig       |   2 +
drivers/net/dsa/microchip/Makefile      |   2 +-
drivers/net/dsa/microchip/ksz8.h        |   1 +
drivers/net/dsa/microchip/ksz8795.c     | 106 ++--
drivers/net/dsa/microchip/ksz8795_reg.h |   9 +-
drivers/net/dsa/microchip/ksz9477.c     |   6 -
drivers/net/dsa/microchip/ksz_common.c  | 100 ++--
drivers/net/dsa/microchip/ksz_common.h  |  11 +-
drivers/net/dsa/microchip/ksz_dcb.c     | 764 ++++++++++++++++++++++++
drivers/net/dsa/microchip/ksz_dcb.h     |  21 +
include/net/dsa.h                       |   4 +
include/net/dscp.h                      |  76 +++
include/net/ieee8021q.h                 |  55 ++
net/Kconfig                             |   3 +
net/core/Makefile                       |   1 +
net/core/ieee8021q_helpers.c            | 208 +++++++
net/dsa/user.c                          |  28 +
17 files changed, 1311 insertions(+), 86 deletions(-)
create mode 100644 drivers/net/dsa/microchip/ksz_dcb.c
create mode 100644 drivers/net/dsa/microchip/ksz_dcb.h
create mode 100644 include/net/dscp.h
create mode 100644 include/net/ieee8021q.h
create mode 100644 net/core/ieee8021q_helpers.c
[PATCH net-next v6 0/9] Enhanced DCB and DSCP Support for KSZ Switches
Posted by Oleksij Rempel 1 year, 10 months ago
This patch series is aimed at improving support for DCB (Data Center
Bridging) and DSCP (Differentiated Services Code Point) on KSZ switches.

The main goal is to introduce global DSCP and PCP (Priority Code Point)
mapping support, addressing the limitation of KSZ switches not having
per-port DSCP priority mapping. This involves extending the DSA
framework with new callbacks for managing trust settings for global DSCP
and PCP maps. Additionally, we introduce IEEE 802.1q helpers for default
configurations, benefiting other drivers too.

Change logs are in separate patches.

Oleksij Rempel (9):
  net: dsa: add support for DCB get/set apptrust configuration
  net: dsa: microchip: add IPV information support
  net: add IEEE 802.1q specific helpers
  net: dsa: microchip: add multi queue support for KSZ88X3 variants
  net: dsa: microchip: add support for different DCB app configurations
  net: dsa: microchip: dcb: add special handling for KSZ88X3 family
  net: dsa: microchip: enable ETS support for KSZ989X variants
  net: dsa: microchip: init predictable IPV to queue mapping for all non
    KSZ8xxx variants
  net: dsa: microchip: let DCB code do PCP and DSCP policy configuration

 drivers/net/dsa/microchip/Kconfig       |   2 +
 drivers/net/dsa/microchip/Makefile      |   2 +-
 drivers/net/dsa/microchip/ksz8.h        |   1 +
 drivers/net/dsa/microchip/ksz8795.c     | 106 ++--
 drivers/net/dsa/microchip/ksz8795_reg.h |   9 +-
 drivers/net/dsa/microchip/ksz9477.c     |   6 -
 drivers/net/dsa/microchip/ksz_common.c  | 100 ++--
 drivers/net/dsa/microchip/ksz_common.h  |  11 +-
 drivers/net/dsa/microchip/ksz_dcb.c     | 764 ++++++++++++++++++++++++
 drivers/net/dsa/microchip/ksz_dcb.h     |  21 +
 include/net/dsa.h                       |   4 +
 include/net/dscp.h                      |  76 +++
 include/net/ieee8021q.h                 |  55 ++
 net/Kconfig                             |   3 +
 net/core/Makefile                       |   1 +
 net/core/ieee8021q_helpers.c            | 208 +++++++
 net/dsa/user.c                          |  28 +
 17 files changed, 1311 insertions(+), 86 deletions(-)
 create mode 100644 drivers/net/dsa/microchip/ksz_dcb.c
 create mode 100644 drivers/net/dsa/microchip/ksz_dcb.h
 create mode 100644 include/net/dscp.h
 create mode 100644 include/net/ieee8021q.h
 create mode 100644 net/core/ieee8021q_helpers.c

-- 
2.39.2
Re: [PATCH net-next v6 0/9] Enhanced DCB and DSCP Support for KSZ Switches
Posted by Vladimir Oltean 1 year, 10 months ago
On Wed, Apr 10, 2024 at 10:05:47AM +0200, Oleksij Rempel wrote:
> This patch series is aimed at improving support for DCB (Data Center
> Bridging) and DSCP (Differentiated Services Code Point) on KSZ switches.
> 
> The main goal is to introduce global DSCP and PCP (Priority Code Point)
> mapping support, addressing the limitation of KSZ switches not having
> per-port DSCP priority mapping. This involves extending the DSA
> framework with new callbacks for managing trust settings for global DSCP
> and PCP maps. Additionally, we introduce IEEE 802.1q helpers for default
> configurations, benefiting other drivers too.
> 
> Change logs are in separate patches.

In whichever way this goes, could we also see a selftest in future patch
revisions (similar to tools/testing/selftests/drivers/net/ocelot/basic_qos.sh),
which (beyond the basic task of proving that it works) sets straight the
basic user expectations of _what_ works and can be done in terms of QoS
classification on these switches?