net/sched: cls_flower: Support matching on ARP
authorSimon Horman <simon.horman@netronome.com>
Wed, 11 Jan 2017 13:05:43 +0000 (14:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2017 16:02:47 +0000 (11:02 -0500)
commit99d31326cbe6951872af5c8a6bc2679388a4d9ef
treea1b1e05fb4a57726e344dac3c0e6da9cf68258cc
parent55733350e5e8b70c5e54a30dbf98148c695f21f5
net/sched: cls_flower: Support matching on ARP

Support matching on ARP operation, and hardware and protocol addresses
for Ethernet hardware and IPv4 protocol addresses.

Example usage:

tc qdisc add dev eth0 ingress

tc filter add dev eth0 protocol arp parent ffff: flower indev eth0 \
arp_op request arp_sip 10.0.0.1 action drop
tc filter add dev eth0 protocol rarp parent ffff: flower indev eth0 \
arp_op reply arp_tha 52:54:3f:00:00:00/24 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