Richard Cochran <richardcoch...@gmail.com> writes: > On Tue, Aug 30, 2022 at 09:30:33AM +0200, Kurt Kanzenbach wrote: >> ptp4l supports setting of socket priority. This is useful for traffic shaping >> e.g., utilizing Tx steering using TAPRIO or mqprio Qdisc or VLAN egress >> mappings. > > Why can't Qdisc use the dialed dscp_event and dscp_general settings? >
That might be possible, one issue is that there are many different interpretations/maps of the dscp field. Taking a look at the code I see that sch_cake does something like that for a few interpretations. Perhaps it's a good idea to move that to a more central place. So other qdiscs can re-use that. In the meantime, something like this should already work (not tested): $ tc qdisc add dev $IFACE clsact $ tc filter add dev $IFACE egress prio 1 u32 match ip dsfield $DSCP_FIELD 0xff action skbedit priority $PRIORITY > Thanks, > Richard > > > > > _______________________________________________ > Linuxptp-devel mailing list > Linuxptp-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linuxptp-devel -- Vinicius _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel