From: Vladimir Oltean <olte...@gmail.com> Date: Sep/15/2019, 03:00:01 (UTC+00:00)
> Instead of looking directly at skb->priority during xmit, let's get the > netdev queue and the queue-to-traffic-class mapping, and put the > resulting traffic class into the dsa_8021q PCP field. The switch is > configured with a 1-to-1 PCP-to-ingress-queue-to-egress-queue mapping > (see vlan_pmap in sja1105_main.c), so the effect is that we can inject > into a front-panel's egress traffic class through VLAN tagging from > Linux, completely transparently. Wouldn't it be better to just rely on skb queue mapping as per userspace settings ? I mean this way you cant create some complex scenarios without having the VLAN ID need. I generally use u32 filter and skbedit queue_mapping action to achieve this. --- Thanks, Jose Miguel Abreu