On Fri, 27 Oct 2017 02:37:44 -0700
Amritha Nambiar <[email protected]> wrote:

> Use the classid values reserved in the range :ffe0 - :ffef
> to identify hardware traffic classes.
> 
> Example:
> Match Dst IPv4,Dst Port and route to TC1:
> # tc filter add dev eth0 protocol ip parent ffff:\
>   prio 1 flower dst_ip 192.168.1.1/32\
>   ip_proto udp dst_port 12000 skip_sw\
>   hw_tc 1
> 
> # tc filter show dev eth0 parent ffff:
> filter pref 1 flower chain 0
> filter pref 1 flower chain 0 handle 0x1 hw_tc 1
>   eth_type ipv4
>   ip_proto udp
>   dst_ip 192.168.1.1
>   dst_port 12000
>   skip_sw
>   in_hw
> 
> Signed-off-by: Amritha Nambiar <[email protected]>

Not sure. Using reserved values can lead to future problems, but this
might be only simple way to handle this.

Reply via email to