Home
last modified time | relevance | path

Searched refs:label_count (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/net/openvswitch/
Dflow.c790 u8 label_count = 1; in key_extract_l3l4() local
798 label_count * MPLS_HLEN); in key_extract_l3l4()
804 if (label_count <= MPLS_LABEL_DEPTH) in key_extract_l3l4()
805 memcpy(&key->mpls.lse[label_count - 1], &lse, in key_extract_l3l4()
809 label_count * MPLS_HLEN); in key_extract_l3l4()
813 label_count++; in key_extract_l3l4()
815 if (label_count > MPLS_LABEL_DEPTH) in key_extract_l3l4()
816 label_count = MPLS_LABEL_DEPTH; in key_extract_l3l4()
818 key->mpls.num_labels_mask = GENMASK(label_count - 1, 0); in key_extract_l3l4()
Dflow_netlink.c1658 u32 label_count, label_count_mask, i; in ovs_key_from_nlattrs() local
1662 label_count = hdr_len / sizeof(struct ovs_key_mpls); in ovs_key_from_nlattrs()
1664 if (label_count == 0 || label_count > MPLS_LABEL_DEPTH || in ovs_key_from_nlattrs()
1668 label_count_mask = GENMASK(label_count - 1, 0); in ovs_key_from_nlattrs()
1670 for (i = 0 ; i < label_count; i++) in ovs_key_from_nlattrs()
/linux-6.6.21/net/mpls/
Daf_mpls.c1893 u8 label_count; in rtm_to_route_config() local
1894 if (nla_get_labels(nla, 1, &label_count, in rtm_to_route_config()
2384 u8 label_count; in mpls_getroute() local
2386 if (nla_get_labels(tb[RTA_DST], 1, &label_count, in mpls_getroute()