Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213935
b: refs/heads/master
c: c2e3143
h: refs/heads/master
i:
  213933: 0f462a0
  213931: a087e23
  213927: d247ae1
  213919: 58600c2
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Aug 24, 2010
1 parent 4d72f1d commit 38611b9
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 5a46790ca4c40fdb6ed5336d7d6b593c96326b31
refs/heads/master: c2e3143e3c46ede22336316b3ff4746727c0d93a
1 change: 1 addition & 0 deletions trunk/include/linux/tc_ematch/tc_em_meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ enum {
TCF_META_ID_SK_SENDMSG_OFF,
TCF_META_ID_SK_WRITE_PENDING,
TCF_META_ID_VLAN_TAG,
TCF_META_ID_RXHASH,
__TCF_META_ID_MAX
};
#define TCF_META_ID_MAX (__TCF_META_ID_MAX - 1)
Expand Down
6 changes: 6 additions & 0 deletions trunk/net/sched/em_meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ META_COLLECTOR(int_maclen)
dst->value = skb->mac_len;
}

META_COLLECTOR(int_rxhash)
{
dst->value = skb_get_rxhash(skb);
}

/**************************************************************************
* Netfilter
**************************************************************************/
Expand Down Expand Up @@ -541,6 +546,7 @@ static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = {
[META_ID(SK_SENDMSG_OFF)] = META_FUNC(int_sk_sendmsg_off),
[META_ID(SK_WRITE_PENDING)] = META_FUNC(int_sk_write_pend),
[META_ID(VLAN_TAG)] = META_FUNC(int_vlan_tag),
[META_ID(RXHASH)] = META_FUNC(int_rxhash),
}
};

Expand Down

0 comments on commit 38611b9

Please sign in to comment.