802.1p on linux

From NuclearCat's homepage

Jump to: navigation, search

Before it was possible to set 802.1p priority by SO_PRIORITY + vconfig set_egress_map, it was used by many VoIP applications. But such way is very limited, and works only till first L3 router.

They key of it - skb->priority must be set to some priority.

1 month ago Intel guys supplied patch, with new skbedit action Here is trick:

vconfig set_egress_map eth2.10 3 3
tc qdisc del dev eth2.10 root
tc qdisc add dev eth2.10 root handle 1: prio
tc filter add dev eth2.10 parent 1:0 protocol all u32 match u32 0 0 action skbedit priority 3

Voila! We can set now also L2 CoS field.

Personal tools