iproute2: tc: f_flow: add key rxhash
Subsystems (2)
PATCH 1/1 iproute2: tc: f_flow: add key rxhash
We can use rxhash to classify the traffic into flows. As rxhash maybe supplied by NIC or RPS, it is cheaper.
Signed-off-by Changli Gao <[email protected]>
--- include/linux/pkt_cls.h | 1 + tc/f_flow.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)
include/linux/pkt_cls.h +1 -0
@@ -332,6 +332,7 @@ enum {FLOW_KEY_SKUID ,FLOW_KEY_SKGID ,FLOW_KEY_VLAN_TAG , +FLOW_KEY_RXHASH , __FLOW_KEY_MAX, };
tc/f_flow.c +2 -1
@@ -33,7 +33,7 @@ static void explain(void)"KEY := [ src | dst | proto | proto-src | proto-dst | iif | priority | \n" " mark | nfct | nfct-src | nfct-dst | nfct-proto-src | \n" " nfct-proto-dst | rt-classid | sk-uid | sk-gid |\n" -" vlan-tag ]\n" +" vlan-tag | rxhash ]\n" "OPS := [ or NUM | and NUM | xor NUM | rshift NUM | addend NUM ]\n" "ID := X:Y\n" );
@@ -57,6 +57,7 @@ static const char *flow_keys[FLOW_KEY_MAX+1] = { [FLOW_KEY_SKUID] = "sk-uid", [FLOW_KEY_SKGID] = "sk-gid", [FLOW_KEY_VLAN_TAG] = "vlan-tag", + [FLOW_KEY_RXHASH] = "rxhash", };static int flow_parse_keys (__u32 *keys,__u32 *nkeys,char *argv)
Quoted 4 lines · Changli Gao
We can use rxhash to classify the traffic into flows. As rxhash maybe supplied by NIC or RPS, it is cheaper.
Signed-off-by Changli Gao <[email protected]>
Acked-by Jamal Hadi Salim <[email protected]>
cheers,
jamal
Stephen Hemminger
AppliedQuoted 4 lines · On Sat, 21 Aug 2010 17:42:17 -0400 jamal <[email protected]> wrote:
Quoted 3 lines · Changli Gao
We can use rxhash to classify the traffic into flows. As rxhash maybe supplied by NIC or RPS, it is cheaper.
Quoted 8 lines
Quoted 1 line
Signed-off-by Changli Gao <[email protected]>Acked-by Jamal Hadi Salim <[email protected]>cheers,
jamal
Applied