15–Traffic Control Offload
TC Drop Action Support (Ingress Drop)
273
BC0154501-00 P
TC Drop Action Support (Ingress Drop)
Currently, ingress flows can be dropped based on the destination IP address, but
the flows can support drop action based on other packet attributes. For example:
tc qdisc add dev p5p1 ingress
tc filter add dev p5p1 protocol ip parent ffff: pref 0x2 flower skip_sw dst_ip
192.168.50.100 action drop
TC MQPRIO Offload
You can provide a priority to a traffic control map to enable packets with
corresponding priorities to use those traffic classes on which to transmit packets.
Cavium supports a maximum of four different traffic classes. For example:
ethtool -K ethx hw-tc-offload on
tc qdisc delete root dev ethx
tc qdisc replace dev $ethx root handle 1: mqprio num_tc 4 map 0 0 1 0 2 0 3 0 0
0 0 0 0 0 0 0