net/sched: cls_flower: Support matching on ICMP type and code
authorSimon Horman <simon.horman@netronome.com>
Wed, 7 Dec 2016 12:48:28 +0000 (13:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 16:47:08 +0000 (11:47 -0500)
commit7b684884fbfab33251115fa5054fb821c34b93be
treeb831a8c75cc51ff2e43f966e08e30959267ed75b
parent972d3876faa8a9195122b2d2bcd3155f904fff37
net/sched: cls_flower: Support matching on ICMP type and code

Support matching on ICMP type and code.

Example usage:

tc qdisc add dev eth0 ingress

tc filter add dev eth0 protocol ip parent ffff: flower \
indev eth0 ip_proto icmp type 8 code 0 action drop

tc filter add dev eth0 protocol ipv6 parent ffff: flower \
indev eth0 ip_proto icmpv6 type 128 code 0 action drop

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_cls.h
net/sched/cls_flower.c