Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] Parsing DSCP out of skb->priority
@ 2025-09-07 12:40 Matt Corallo
  0 siblings, 0 replies; only message in thread
From: Matt Corallo @ 2025-09-07 12:40 UTC (permalink / raw)
  To: cake

Its (presumably) not uncommon to have multiple encapsulation tunnels running on a host which then 
wants to do (cake) shaping on the actual outbound interface. In this case, the skb->hash is 
(hopefully) preserved from the original packet to select the right flow queue, but the DSCP isn't. 
This is ideally what the priority field of the skb is for - `skbedit` can set the priority flag of 
the packet before "exiting" the tunnel interface, and cake can ultimately read that priority flag to 
select a tin. However, doing so requires manual tin mapping in skbedit, reading the DSCP field and 
mapping them to the right tin entirely be hand.

skbedit also supports `inheritdsfield` which just sets skb->priority to the DSCP field as-is. It 
would be nice if cake could read such priority fields, treating skb->priority as a DSCP when 
TC_H_MAJ(skb->priority) is zero (which it always will be in this case). Is there any interest in a 
patch to do so? Would such a patch need a new userspace option to disable it, or would wash suffice?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-07 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-07 12:40 [Cake] Parsing DSCP out of skb->priority Matt Corallo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox