Re: [PATCH iproute2 net-next] tc: flower: support matching flags
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2016-12-29 18:43:55
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2016-12-29 18:43:55
On Wed, 28 Dec 2016 15:06:49 +0200 Paul Blakey [off-list ref] wrote:
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 <redacted> Signed-off-by: Or Gerlitz <redacted> Reviewed-by: Roi Dayan <redacted>
Applied. Had to manually fixup merge conflicts with other flower changes.