net/sched: cls_flower: Add support to handle first frag as match field
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Tue, 6 Mar 2018 17:11:14 +0000 (18:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2018 17:16:29 +0000 (12:16 -0500)
commit459d153d9916ea48b1550bbb6f2959dc03bff011
treebb627a7db2f8aa0f377f595bc68e8b44ae8e4149
parent08a24239cd46a50f8f5c8ce0cd12d7d6fbfe1807
net/sched: cls_flower: Add support to handle first frag as match field

Allow setting firstfrag as matching option in tc flower classifier.

 # tc filter add dev eth0 protocol ip parent ffff: \
     flower indev eth0 \
        ip_flags firstfrag
     action mirred egress redirect dev eth1

Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_cls.h
net/sched/cls_flower.c