History

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..

Jamal Hadi Salim committed 10 years ago

Commit 408fbc21 parent 6a5d58b4 files · +87 −1Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/tc_act/tc_ife.h+2−1
@@ -32,8 +32,9 @@ enum { · 31 unmodified lines
3232 #define IFE_META_HASHID 2
3333 #define IFE_META_PRIO 3
3434 #define IFE_META_QMAP 4
35+#define IFE_META_TCINDEX 5
3536 /*Can be overridden at runtime by module option*/
36−#define __IFE_META_MAX 5
37+#define __IFE_META_MAX 6
3738 #define IFE_META_MAX (__IFE_META_MAX - 1)
3839
3940 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t