Home
last modified time | relevance | path

Searched refs:labels (Results 1 – 14 of 14) sorted by relevance

/net/netfilter/
A Dnf_conntrack_labels.c32 struct nf_conn_labels *labels; in nf_connlabels_replace() local
37 labels = nf_ct_labels_find(ct); in nf_connlabels_replace()
38 if (!labels) in nf_connlabels_replace()
41 size = sizeof(labels->bits); in nf_connlabels_replace()
45 dst = (u32 *) labels->bits; in nf_connlabels_replace()
A Dxt_connlabel.c24 struct nf_conn_labels *labels; in connlabel_mt() local
32 labels = nf_ct_labels_find(ct); in connlabel_mt()
33 if (!labels) in connlabel_mt()
36 if (test_bit(info->bit, labels->bits)) in connlabel_mt()
40 if (!test_and_set_bit(info->bit, labels->bits)) in connlabel_mt()
A Dnf_conntrack_netlink.c405 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_label_size() local
407 if (!labels) in ctnetlink_label_size()
409 return nla_total_size(sizeof(labels->bits)); in ctnetlink_label_size()
416 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_dump_labels() local
419 if (!labels) in ctnetlink_dump_labels()
424 if (labels->bits[i] != 0) in ctnetlink_dump_labels()
425 return nla_put(skb, CTA_LABELS, sizeof(labels->bits), in ctnetlink_dump_labels()
426 labels->bits); in ctnetlink_dump_labels()
428 } while (i < ARRAY_SIZE(labels->bits)); in ctnetlink_dump_labels()
A Dnft_ct.c115 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in nft_ct_get_eval() local
117 if (labels) in nft_ct_get_eval()
118 memcpy(dest, labels->bits, NF_CT_LABELS_MAX_SIZE); in nft_ct_get_eval()
A DKconfig189 bool "Connection tracking labels"
1238 This match allows you to test and assign userspace-defined labels names
/net/mpls/
A Dmpls_iptunnel.c33 return en->labels * sizeof(struct mpls_shim_hdr); in mpls_encap_size()
125 for (i = tun_encap_info->labels - 1; i >= 0; i--) { in mpls_xmit()
196 &tun_encap_info->labels, tun_encap_info->label, in mpls_build_state()
233 if (nla_put_labels(skb, MPLS_IPTUNNEL_DST, tun_encap_info->labels, in mpls_fill_encap_info()
254 nlsize = nla_total_size(tun_encap_info->labels * 4); in mpls_encap_nlsize()
268 if (a_hdr->labels != b_hdr->labels || in mpls_encap_cmp()
273 for (l = 0; l < a_hdr->labels; l++) in mpls_encap_cmp()
A Daf_mpls.c1687 u8 labels, const u32 label[]) in nla_put_labels() argument
1693 nla = nla_reserve(skb, attrtype, labels*4); in nla_put_labels()
1699 for (i = labels - 1; i >= 0; i--) { in nla_put_labels()
1784 *labels = nla_labels; in nla_get_labels()
2348 u32 labels[MAX_NEW_LABELS]; in mpls_getroute() local
2407 labels, extack) != 0) { in mpls_getroute()
2440 hdr[i] = mpls_entry_encode(labels[i], in mpls_getroute()
2514 labels = kvzalloc(size, GFP_KERNEL); in resize_platform_label_table()
2515 if (!labels) in resize_platform_label_table()
2563 memcpy(labels, old, cp_size); in resize_platform_label_table()
[all …]
A Dinternal.h192 int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels,
194 int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels,
/net/openvswitch/
A Dconntrack.c72 struct md_labels labels; member
169 struct ovs_key_ct_labels *labels) in ovs_ct_get_labels() argument
181 memset(labels, 0, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
205 ovs_ct_get_labels(ct, &key->ct.labels); in __ovs_ct_update_key()
306 &output->ct.labels)) in ovs_ct_put_key()
408 (labels->ct_labels_32[i] in ovs_ct_init_labels()
865 if (labels->ct_labels_32[i]) in labels_nonzero()
1013 &info->labels.mask); in ovs_ct_commit()
1021 &info->labels.mask); in ovs_ct_commit()
1297 info->labels = *labels; in parse_ct()
[all …]
A Dconntrack.h84 memset(&key->ct.labels, 0, sizeof(key->ct.labels)); in ovs_ct_fill_key()
A Dflow.h164 struct ovs_key_ct_labels labels; member
A Dflow_netlink.c1258 SW_FLOW_KEY_MEMCPY(match, ct.labels, cl->ct_labels, in metadata_from_nlattrs()
/net/sched/
A Dact_ct.c194 act_ct_labels = entry->ct_metadata.labels; in tcf_ct_flow_table_add_action_meta()
916 u32 *labels, in tcf_ct_act_set_labels() argument
920 size_t labels_sz = sizeof_field(struct tcf_ct_params, labels); in tcf_ct_act_set_labels()
925 nf_connlabels_replace(ct, labels, labels_m, 4); in tcf_ct_act_set_labels()
1073 tcf_ct_act_set_labels(ct, p->labels, p->labels_mask); in tcf_ct_act()
1269 unsigned int n_bits = sizeof_field(struct tcf_ct_params, labels) * 8; in tcf_ct_fill_params()
1284 p->labels, TCA_CT_LABELS, in tcf_ct_fill_params()
1286 sizeof(p->labels)); in tcf_ct_fill_params()
1557 p->labels, TCA_CT_LABELS, in tcf_ct_dump()
1559 sizeof(p->labels))) in tcf_ct_dump()
/net/core/
A Dpktgen.c365 __be32 labels[MAX_MPLS_LABELS]; member
641 seq_printf(seq, "%08x%s", ntohl(pkt_dev->labels[i]), in pktgen_if_show()
937 pkt_dev->labels[n] = htonl(tmp); in get_labels()
938 if (pkt_dev->labels[n] & MPLS_STACK_BOTTOM) in get_labels()
1693 "%08x%s", ntohl(pkt_dev->labels[n]), in pktgen_if_write()
2527 if (pkt_dev->labels[i] & MPLS_STACK_BOTTOM) in mod_cur_headers()
2528 pkt_dev->labels[i] = MPLS_STACK_BOTTOM | in mod_cur_headers()
2806 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM; in mpls_push()

Completed in 51 milliseconds