Home
last modified time | relevance | path

Searched refs:sreg (Results 1 – 13 of 13) sorted by relevance

/net/netfilter/
Dnft_cmp.c21 u8 sreg; member
33 d = memcmp(&regs->data[priv->sreg], &priv->data, priv->len); in nft_cmp_eval()
86 err = nft_parse_register_load(tb[NFTA_CMP_SREG], &priv->sreg, desc.len); in nft_cmp_init()
99 if (nft_dump_register(skb, NFTA_CMP_SREG, priv->sreg)) in nft_cmp_dump()
142 struct nft_offload_reg *reg = &ctx->regs[priv->sreg]; in __nft_cmp_offload()
224 err = nft_parse_register_load(tb[NFTA_CMP_SREG], &priv->sreg, desc.len); in nft_cmp_fast_init()
248 .sreg = priv->sreg, in nft_cmp_fast_offload()
262 if (nft_dump_register(skb, NFTA_CMP_SREG, priv->sreg)) in nft_cmp_fast_dump()
324 err = nft_parse_register_load(tb[NFTA_CMP_SREG], &priv->sreg, desc.len); in nft_cmp16_fast_init()
342 .sreg = priv->sreg, in nft_cmp16_fast_offload()
[all …]
Dnft_bitwise.c19 u8 sreg; member
67 const u32 *src = &regs->data[priv->sreg]; in nft_bitwise_eval()
174 err = nft_parse_register_load(tb[NFTA_BITWISE_SREG], &priv->sreg, in nft_bitwise_init()
240 if (nft_dump_register(skb, NFTA_BITWISE_SREG, priv->sreg)) in nft_bitwise_dump()
275 priv->sreg != priv->dreg || priv->len != reg->len) in nft_bitwise_offload()
292 if (!track->regs[priv->sreg].selector) in nft_bitwise_reduce()
296 if (track->regs[priv->sreg].selector == track->regs[priv->dreg].selector && in nft_bitwise_reduce()
297 track->regs[priv->sreg].num_reg == 0 && in nft_bitwise_reduce()
300 priv->sreg == bitwise->sreg && in nft_bitwise_reduce()
311 if (track->regs[priv->sreg].bitwise || in nft_bitwise_reduce()
[all …]
Dnft_range.c18 u8 sreg; member
29 d1 = memcmp(&regs->data[priv->sreg], &priv->data_from, priv->len); in nft_range_eval()
30 d2 = memcmp(&regs->data[priv->sreg], &priv->data_to, priv->len); in nft_range_eval()
86 err = nft_parse_register_load(tb[NFTA_RANGE_SREG], &priv->sreg, in nft_range_init()
118 if (nft_dump_register(skb, NFTA_RANGE_SREG, priv->sreg)) in nft_range_dump()
Dnft_byteorder.c19 u8 sreg; member
31 u32 *src = &regs->data[priv->sreg]; in nft_byteorder_eval()
142 err = nft_parse_register_load(tb[NFTA_BYTEORDER_SREG], &priv->sreg, in nft_byteorder_init()
156 if (nft_dump_register(skb, NFTA_BYTEORDER_SREG, priv->sreg)) in nft_byteorder_dump()
Dnft_objref.c101 u8 sreg; member
116 found = nft_set_do_lookup(net, set, &regs->data[priv->sreg], &ext); in nft_objref_map_eval()
146 err = nft_parse_register_load(tb[NFTA_OBJREF_SET_SREG], &priv->sreg, in nft_objref_map_init()
165 if (nft_dump_register(skb, NFTA_OBJREF_SET_SREG, priv->sreg) || in nft_objref_map_dump()
Dnft_lookup.c20 u8 sreg; member
67 found = nft_set_do_lookup(net, set, &regs->data[priv->sreg], &ext) ^ in nft_lookup_eval()
114 err = nft_parse_register_load(tb[NFTA_LOOKUP_SREG], &priv->sreg, in nft_lookup_init()
188 if (nft_dump_register(skb, NFTA_LOOKUP_SREG, priv->sreg)) in nft_lookup_dump()
Dnft_hash.c17 u8 sreg; member
31 const void *data = &regs->data[priv->sreg]; in nft_jhash_eval()
94 err = nft_parse_register_load(tb[NFTA_HASH_SREG], &priv->sreg, len); in nft_jhash_init()
146 if (nft_dump_register(skb, NFTA_HASH_SREG, priv->sreg)) in nft_jhash_dump()
Dnft_meta.c424 u32 *sreg = &regs->data[meta->sreg]; in nft_meta_set_eval() local
425 u32 value = *sreg; in nft_meta_set_eval()
436 value8 = nft_reg_load8(sreg); in nft_meta_set_eval()
444 value8 = nft_reg_load8(sreg); in nft_meta_set_eval()
660 err = nft_parse_register_load(tb[NFTA_META_SREG], &priv->sreg, len); in nft_meta_set_init()
693 if (nft_dump_register(skb, NFTA_META_SREG, priv->sreg)) in nft_meta_set_dump()
Dnft_ct.c32 u8 sreg; member
241 u16 value = nft_reg_load16(&regs->data[priv->sreg]); in nft_ct_set_zone_eval()
288 u32 value = regs->data[priv->sreg]; in nft_ct_set_eval()
317 &regs->data[priv->sreg], in nft_ct_set_eval()
318 &regs->data[priv->sreg], in nft_ct_set_eval()
325 u32 ctmask = regs->data[priv->sreg]; in nft_ct_set_eval()
617 err = nft_parse_register_load(tb[NFTA_CT_SREG], &priv->sreg, len); in nft_ct_set_init()
713 if (nft_dump_register(skb, NFTA_CT_SREG, priv->sreg)) in nft_ct_set_dump()
Dnf_tables_core.c63 u32 *src = &regs->data[priv->sreg]; in nft_bitwise_fast_eval()
74 if (((regs->data[priv->sreg] & priv->mask) == priv->data) ^ priv->inv) in nft_cmp_fast_eval()
83 const u64 *reg_data = (const u64 *)&regs->data[priv->sreg]; in nft_cmp16_fast_eval()
Dnft_exthdr.c26 u8 sreg; member
275 &regs->data[priv->sreg]); in nft_exthdr_tcp_set_eval()
293 new.v32 = nft_reg_load_be32(&regs->data[priv->sreg]); in nft_exthdr_tcp_set_eval()
592 return nft_parse_register_load(tb[NFTA_EXTHDR_SREG], &priv->sreg, in nft_exthdr_tcp_set_init()
688 if (nft_dump_register(skb, NFTA_EXTHDR_SREG, priv->sreg)) in nft_exthdr_dump_set()
Dnft_payload.c674 const u32 *src = &regs->data[priv->sreg]; in nft_payload_set_eval()
786 return nft_parse_register_load(tb[NFTA_PAYLOAD_SREG], &priv->sreg, in nft_payload_set_init()
794 if (nft_dump_register(skb, NFTA_PAYLOAD_SREG, priv->sreg) || in nft_payload_set_dump()
Dnf_tables_api.c10371 int nft_parse_register_load(const struct nlattr *attr, u8 *sreg, u32 len) in nft_parse_register_load() argument
10384 *sreg = reg; in nft_parse_register_load()