Home
last modified time | relevance | path

Searched refs:lse (Results 1 – 8 of 8) sorted by relevance

/net/sched/
Dact_mpls.c23 static __be32 tcf_mpls_get_lse(struct mpls_shim_hdr *lse, in tcf_mpls_get_lse() argument
28 if (lse) in tcf_mpls_get_lse()
29 new_lse = be32_to_cpu(lse->label_stack_entry); in tcf_mpls_get_lse()
Dcls_flower.c2839 struct nlattr *lse; in fl_dump_key_mpls_opts() local
2851 lse = nla_nest_start(skb, TCA_FLOWER_KEY_MPLS_OPTS_LSE); in fl_dump_key_mpls_opts()
2852 if (!lse) { in fl_dump_key_mpls_opts()
2861 nla_nest_end(skb, lse); in fl_dump_key_mpls_opts()
2868 nla_nest_cancel(skb, lse); in fl_dump_key_mpls_opts()
/net/openvswitch/
Dflow.c796 __be32 lse; in key_extract_l3l4() local
803 memcpy(&lse, skb_inner_network_header(skb), MPLS_HLEN); in key_extract_l3l4()
806 memcpy(&key->mpls.lse[label_count - 1], &lse, in key_extract_l3l4()
811 if (lse & htonl(MPLS_LS_S_MASK)) in key_extract_l3l4()
Dactions.c202 __be32 lse; in set_mpls() local
209 lse = OVS_MASKED(stack->label_stack_entry, *mpls_lse, *mask); in set_mpls()
210 err = skb_mpls_update_lse(skb, lse); in set_mpls()
214 flow_key->mpls.lse[0] = lse; in set_mpls()
Dflow.h152 __be32 lse[MPLS_LABEL_DEPTH]; /* label stack entry */ member
Dflow_netlink.c1671 SW_FLOW_KEY_PUT(match, mpls.lse[i], in ovs_key_from_nlattrs()
2177 mpls_key[i].mpls_lse = output->mpls.lse[i]; in __ovs_nla_put_key()
/net/core/
Dflow_dissector.c518 struct flow_dissector_mpls_lse *lse; in __skb_flow_dissect_mpls() local
523 lse = &key_mpls->ls[lse_index]; in __skb_flow_dissect_mpls()
525 lse->mpls_ttl = (entry & MPLS_LS_TTL_MASK) >> MPLS_LS_TTL_SHIFT; in __skb_flow_dissect_mpls()
526 lse->mpls_bos = bos; in __skb_flow_dissect_mpls()
527 lse->mpls_tc = (entry & MPLS_LS_TC_MASK) >> MPLS_LS_TC_SHIFT; in __skb_flow_dissect_mpls()
528 lse->mpls_label = label; in __skb_flow_dissect_mpls()
Dskbuff.c6159 struct mpls_shim_hdr *lse; in skb_mpls_push() local
6185 lse = mpls_hdr(skb); in skb_mpls_push()
6186 lse->label_stack_entry = mpls_lse; in skb_mpls_push()
6187 skb_postpush_rcsum(skb, lse, MPLS_HLEN); in skb_mpls_push()
6286 u32 lse; in skb_mpls_dec_ttl() local
6295 lse = be32_to_cpu(mpls_hdr(skb)->label_stack_entry); in skb_mpls_dec_ttl()
6296 ttl = (lse & MPLS_LS_TTL_MASK) >> MPLS_LS_TTL_SHIFT; in skb_mpls_dec_ttl()
6300 lse &= ~MPLS_LS_TTL_MASK; in skb_mpls_dec_ttl()
6301 lse |= ttl << MPLS_LS_TTL_SHIFT; in skb_mpls_dec_ttl()
6303 return skb_mpls_update_lse(skb, cpu_to_be32(lse)); in skb_mpls_dec_ttl()