mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
netfilter: nft_meta: Add cpu attribute support
Add cpu support to meta expresion. This allows you to match packets with cpu number. Signed-off-by: Ana Rey <anarey@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
committed by
Pablo Neira Ayuso
parent
e2a093ff0d
commit
afc5be3079
@@ -572,6 +572,7 @@ enum nft_exthdr_attributes {
|
||||
* @NFT_META_BRI_IIFNAME: packet input bridge interface name
|
||||
* @NFT_META_BRI_OIFNAME: packet output bridge interface name
|
||||
* @NFT_META_PKTTYPE: packet type (skb->pkt_type), special handling for loopback
|
||||
* @NFT_META_CPU: cpu id through smp_processor_id()
|
||||
*/
|
||||
enum nft_meta_keys {
|
||||
NFT_META_LEN,
|
||||
@@ -594,6 +595,7 @@ enum nft_meta_keys {
|
||||
NFT_META_BRI_IIFNAME,
|
||||
NFT_META_BRI_OIFNAME,
|
||||
NFT_META_PKTTYPE,
|
||||
NFT_META_CPU,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user