Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213901
b: refs/heads/master
c: 739a91e
h: refs/heads/master
i:
  213899: 6dd56ab
v: v3
  • Loading branch information
Changli Gao authored and David S. Miller committed Aug 22, 2010
1 parent 6a1d734 commit 22c7e96
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81ce790bd75d49a0d119f5d7b27405e1d9b1bd57
refs/heads/master: 739a91ef0625e0e4a40b835f4f891313c47915df
1 change: 1 addition & 0 deletions trunk/include/linux/pkt_cls.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ enum {
FLOW_KEY_SKUID,
FLOW_KEY_SKGID,
FLOW_KEY_VLAN_TAG,
FLOW_KEY_RXHASH,
__FLOW_KEY_MAX,
};

Expand Down
7 changes: 7 additions & 0 deletions trunk/net/sched/cls_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ static u32 flow_get_vlan_tag(const struct sk_buff *skb)
return tag & VLAN_VID_MASK;
}

static u32 flow_get_rxhash(struct sk_buff *skb)
{
return skb_get_rxhash(skb);
}

static u32 flow_key_get(struct sk_buff *skb, int key)
{
switch (key) {
Expand Down Expand Up @@ -343,6 +348,8 @@ static u32 flow_key_get(struct sk_buff *skb, int key)
return flow_get_skgid(skb);
case FLOW_KEY_VLAN_TAG:
return flow_get_vlan_tag(skb);
case FLOW_KEY_RXHASH:
return flow_get_rxhash(skb);
default:
WARN_ON(1);
return 0;
Expand Down

0 comments on commit 22c7e96

Please sign in to comment.