DSCP support for KSZ switches
Subsystems (2)
Hello all,
I'm currently working on implementing DSCP support for the KSZ switch series. My efforts have led to the successful implementation of several callbacks, including:
port_get_default_prio()port_set_default_prio()port_get_dscp_prio()
However, I am facing challenges with port_add_dscp_prio() and port_del_dscp_prio() due to the KSZ switches' limitations on per-port DSCP configuration. Specifically, the KSZ hardware allows only enabling or disabling DSCP as the source of internal priority on a per-port basis. Additionally, it supports either global DSCP remapping or using a default mapping, where the internal priority is derived from bits 5:3 of the DSCP field.
Given these constraints, my question revolves around the appropriate tools or interfaces for managing DSCP settings on these devices. Should the enabling/disabling of DSCP per port be managed through dcb or ethtool? Furthermore, concerning the global DSCP mapping, would devlink be the suitable choice for this task?
Best regards,
Oleksij
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 17 lines · Oleksij Rempel
Hello all,
I'm currently working on implementing DSCP support for the KSZ switch series. My efforts have led to the successful implementation of several callbacks, including:
port_get_default_prio()port_set_default_prio()port_get_dscp_prio()However, I am facing challenges with
port_add_dscp_prio()andport_del_dscp_prio()due to the KSZ switches' limitations on per-port DSCP configuration. Specifically, the KSZ hardware allows only enabling or disabling DSCP as the source of internal priority on a per-port basis. Additionally, it supports either global DSCP remapping or using a default mapping, where the internal priority is derived from bits 5:3 of the DSCP field.
Quoted 5 lines
Given these constraints, my question revolves around the appropriate tools or interfaces for managing DSCP settings on these devices. Should the enabling/disabling of DSCP per port be managed through dcb or ethtool? Furthermore, concerning the global DSCP mapping, would devlink be the suitable choice for this task?
Hm, I assume, the asnwer to my first question is dcb apptrust. I'll need to extend DSA framework to use it.
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |