net/sched: cls_flower: Support matching on SCTP ports
authorSimon Horman <simon.horman@netronome.com>
Thu, 3 Nov 2016 12:24:21 +0000 (13:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Nov 2016 20:26:39 +0000 (16:26 -0400)
commit5976c5f45c40588b90dda173ded9010917f8f45e
tree33e34646215212d22c862a3ee8005ab9c1736bfb
parent5e5f89e70b29153cb28011f0cc47984bfcc3bef4
net/sched: cls_flower: Support matching on SCTP ports

Support matching on SCTP ports in the same way that matching
on TCP and UDP ports is already supported.

Example usage:

tc qdisc add dev eth0 ingress

tc filter add dev eth0 protocol ip parent ffff: \
        flower indev eth0 ip_proto sctp dst_port 80 \
        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