]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: flower: support matching flags
authorPaul Blakey <paulb@mellanox.com>
Thu, 29 Dec 2016 18:42:08 +0000 (10:42 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 29 Dec 2016 18:42:08 +0000 (10:42 -0800)
commit22a8f019891ca73295298384612008ff538e48fa
treee10b4414e0b8f58af20046d8ee802ddcd7f8d3fe
parentd34adf67b543d47a08ba27aa80833053268f3526
tc: flower: support matching flags

Enhance flower to support matching on flags.

The 1st flag allows to match on whether the packet is
an IP fragment.

Example:

# add a flower filter that will drop fragmented packets
# (bit 0 of control flags)
tc filter add dev ens4f0 protocol ip parent ffff: \
flower \
src_mac e4:1d:2d:fd:8b:01 \
dst_mac e4:1d:2d:fd:8b:02 \
indev ens4f0 \
matching_flags 0x1/0x1 \
action drop

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
tc/f_flower.c