diff options
author | Simon Horman <simon.horman@netronome.com> | 2016-11-03 13:24:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-03 16:26:39 -0400 |
commit | 5976c5f45c40588b90dda173ded9010917f8f45e (patch) | |
tree | 33e34646215212d22c862a3ee8005ab9c1736bfb /include/uapi | |
parent | 5e5f89e70b29153cb28011f0cc47984bfcc3bef4 (diff) | |
download | linux-stable-5976c5f45c40588b90dda173ded9010917f8f45e.tar.gz linux-stable-5976c5f45c40588b90dda173ded9010917f8f45e.tar.bz2 linux-stable-5976c5f45c40588b90dda173ded9010917f8f45e.zip |
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>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/pkt_cls.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h index 8fd715f806a2..eb94781757ee 100644 --- a/include/uapi/linux/pkt_cls.h +++ b/include/uapi/linux/pkt_cls.h @@ -447,6 +447,11 @@ enum { TCA_FLOWER_KEY_TCP_DST_MASK, /* be16 */ TCA_FLOWER_KEY_UDP_SRC_MASK, /* be16 */ TCA_FLOWER_KEY_UDP_DST_MASK, /* be16 */ + TCA_FLOWER_KEY_SCTP_SRC_MASK, /* be16 */ + TCA_FLOWER_KEY_SCTP_DST_MASK, /* be16 */ + + TCA_FLOWER_KEY_SCTP_SRC, /* be16 */ + TCA_FLOWER_KEY_SCTP_DST, /* be16 */ __TCA_FLOWER_MAX, }; |