diff options
author | Jamal Hadi Salim <jhs@mojatatu.com> | 2016-09-18 13:31:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-20 03:55:28 +0200 |
commit | 408fbc22ef1efb00dd896acd00e9f7d9b641e047 (patch) | |
tree | 66fdcc1ead156e7b2404fbccdd8d1077765841f8 /net/sched/Kconfig | |
parent | net sched ife action: add 16 bit helpers (diff) | |
download | linux-408fbc22ef1efb00dd896acd00e9f7d9b641e047.tar.xz linux-408fbc22ef1efb00dd896acd00e9f7d9b641e047.zip |
net sched ife action: Introduce skb tcindex metadata encap decap
Sample use case of how this is encoded:
user space via tuntap (or a connected VM/Machine/container)
encodes the tcindex TLV.
Sample use case of decoding:
IFE action decodes it and the skb->tc_index is then used to classify.
So something like this for encoded ICMP packets:
.. first decode then reclassify... skb->tcindex will be set
sudo $TC filter add dev $ETH parent ffff: prio 2 protocol 0xbeef \
u32 match u32 0 0 flowid 1:1 \
action ife decode reclassify
...next match the decode icmp packet...
sudo $TC filter add dev $ETH parent ffff: prio 4 protocol ip \
u32 match ip protocol 1 0xff flowid 1:1 \
action continue
... last classify it using the tcindex classifier and do someaction..
sudo $TC filter add dev $ETH parent ffff: prio 5 protocol ip \
handle 0x11 tcindex classid 1:1 \
action blah..
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/Kconfig')
-rw-r--r-- | net/sched/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sched/Kconfig b/net/sched/Kconfig index 7795d5a3f79a..87956a768d1b 100644 --- a/net/sched/Kconfig +++ b/net/sched/Kconfig @@ -793,6 +793,11 @@ config NET_IFE_SKBPRIO depends on NET_ACT_IFE ---help--- +config NET_IFE_SKBTCINDEX + tristate "Support to encoding decoding skb tcindex on IFE action" + depends on NET_ACT_IFE + ---help--- + config NET_CLS_IND bool "Incoming device classification" depends on NET_CLS_U32 || NET_CLS_FW |