: Add flow classifier support
Subsystems (2)
RFC 1/1 : Add flow classifier support
The iproute patch for the flow classifier.
[IPROUTE]: Add flow classifier support
---
commit f338e298616e6680dc1ea3b1c61cf59a72bf0801
tree 857fc47789b2bf45e354c8c63f1ef78526b38ca5
parent b16621cafd599499fdbaa79236266d72a53106bb
author Patrick McHardy <[email protected]> Tue, 29 May 2007 05:17:28 +0200 committer Patrick McHardy <[email protected]> Tue, 29 May 2007 05:17:28 +0200
include/linux/pkt_cls.h | 37 ++++++++ tc/Makefile | 1 tc/f_flow.c | 205 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 243 insertions(+), 0 deletions(-)
include/linux/pkt_cls.h +37 -0
@@ -328,6 +328,43 @@ enum#define TCA_TCINDEX_MAX (__TCA_TCINDEX_MAX - 1) +/* Flow filter */ + +enum +{ +FLOW_KEY_SRC , +FLOW_KEY_DST , +FLOW_KEY_PROTO_SRC , +FLOW_KEY_PROTO_DST , +FLOW_KEY_PRIORITY , +FLOW_KEY_MARK , +FLOW_KEY_NFCT , +FLOW_KEY_NFCT_SRC , +FLOW_KEY_NFCT_DST , +FLOW_KEY_NFCT_PROTO_SRC , +FLOW_KEY_NFCT_PROTO_DST , +FLOW_KEY_RTIIF , +FLOW_KEY_RTCLASSID , +FLOW_KEY_SKUID , +FLOW_KEY_SKGID , + __FLOW_KEY_MAX, +}; + +#define FLOW_KEY_MAX (__FLOW_KEY_MAX - 1) + +enum +{ +TCA_FLOW_UNSPEC , +TCA_FLOW_KEYS , +TCA_FLOW_BASECLASS , +TCA_FLOW_CLASSES , +TCA_FLOW_ACT , +TCA_FLOW_POLICE , + __TCA_FLOW_MAX +}; + +#define TCA_FLOW_MAX (__TCA_FLOW_MAX - 1) +/* Basic filter */ enum
tc/Makefile +1 -0
@@ -16,6 +16,7 @@ TCMODULES += f_u32.o TCMODULES += f_route.o TCMODULES += f_fw.o TCMODULES += f_basic.o +TCMODULES += f_flow.o TCMODULES += q_dsmark.o TCMODULES += q_gred.o TCMODULES += f_tcindex.o
tc/f_flow.c new file +205 -0
205 lines not on this page · raw message
Quoted 3 lines · On Wed, 30 May 2007 11:42:01 +0200 Patrick McHardy <[email protected]> wrote:
The iproute patch for the flow classifier.
This patch is on hold since the netlink changes haven't made it upstream yet.
Signature · 1 line
Stephen Hemminger <[email protected]>
David Miller
maintainerFrom: Stephen Hemminger <[email protected]>
Date: Wed, 22 Aug 2007 10:46:15 -0700
Quoted 8 lines
Quoted 3 lines · On Wed, 30 May 2007 11:42:01 +0200 Patrick McHardy <[email protected]> wrote:
The iproute patch for the flow classifier.
This patch is on hold since the netlink changes haven't made it upstream yet.
I don't have the kernel side in my queue either, perhaps I lost it or I didn't see it when it was sent out.
Patrick?
Quoted 11 lines · David Miller
From: Stephen Hemminger <[email protected]>
Date: Wed, 22 Aug 2007 10:46:15 -0700Quoted 1 line
This patch is on hold since the netlink changes haven't made it upstream yet.
I don't have the kernel side in my queue either, perhaps I lost it or I didn't see it when it was sent out.
Patrick?
I didn't send it since I wasn't completely happy with it. Not sure if I ever finished it, I'll look into it :)