On Thu, Nov 14, 2024 at 11:41:06AM +0200, Roger Quadros wrote: > On 14/11/2024 02:16, Guillaume Nault wrote: > > So what about following the IETF mapping found in section 4.3? > > https://datatracker.ietf.org/doc/html/rfc8325#section-4.3 > > Thanks for this tip. > I will update this patch to have the default DSCP to UP mapping as per > above link and map all unused DSCP to UP 0. > > Is there any mechanism/API for network administrator to change this > default mapping in the network drivers? I'm not aware of any (appart from manual update with tc), but I could have missed something. It'd probably make sense to have such a mechanism though. > >> static void am65_cpsw_sl_ctl_reset(struct am65_cpsw_port *port) > >> { > >> cpsw_sl_reset(port->slave.mac_sl, 100); > >> @@ -921,6 +974,7 @@ static int am65_cpsw_nuss_ndo_slave_open(struct net_device *ndev) > >> common->usage_count++; > >> > >> am65_cpsw_port_set_sl_mac(port, ndev->dev_addr); > >> + am65_cpsw_port_enable_dscp_map(port); > >> > >> if (common->is_emac_mode) > >> am65_cpsw_init_port_emac_ale(port); > >> > >> -- > >> 2.34.1 > >> > >> > > > > -- > cheers, > -roger >