mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
tc: add meta match on receive hash
Trivial extension to existing meta data match rules to allow matching on skb receive hash value. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5a46790ca4
commit
c2e3143e3c
2 changed files with 7 additions and 0 deletions
|
|
@ -223,6 +223,11 @@ META_COLLECTOR(int_maclen)
|
|||
dst->value = skb->mac_len;
|
||||
}
|
||||
|
||||
META_COLLECTOR(int_rxhash)
|
||||
{
|
||||
dst->value = skb_get_rxhash(skb);
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* Netfilter
|
||||
**************************************************************************/
|
||||
|
|
@ -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),
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue