Home
last modified time | relevance | path

Searched refs:srh_state (Results 1 – 2 of 2) sorted by relevance

/net/ipv6/
Dseg6_local.c472 struct seg6_bpf_srh_state *srh_state = in seg6_bpf_has_valid_srh() local
474 struct ipv6_sr_hdr *srh = srh_state->srh; in seg6_bpf_has_valid_srh()
479 if (unlikely(!srh_state->valid)) { in seg6_bpf_has_valid_srh()
480 if ((srh_state->hdrlen & 7) != 0) in seg6_bpf_has_valid_srh()
483 srh->hdrlen = (u8)(srh_state->hdrlen >> 3); in seg6_bpf_has_valid_srh()
487 srh_state->valid = true; in seg6_bpf_has_valid_srh()
496 struct seg6_bpf_srh_state *srh_state = in input_action_end_bpf() local
512 srh_state->srh = srh; in input_action_end_bpf()
513 srh_state->hdrlen = srh->hdrlen << 3; in input_action_end_bpf()
514 srh_state->valid = true; in input_action_end_bpf()
[all …]
/net/core/
Dfilter.c5019 struct seg6_bpf_srh_state *srh_state = in BPF_CALL_4() local
5021 struct ipv6_sr_hdr *srh = srh_state->srh; in BPF_CALL_4()
5029 srh_end = (void *)((char *)srh + sizeof(*srh) + srh_state->hdrlen); in BPF_CALL_4()
5033 srh_state->valid = false; in BPF_CALL_4()
5042 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4()
5060 struct seg6_bpf_srh_state *srh_state = in bpf_update_srh_state() local
5065 srh_state->srh = NULL; in bpf_update_srh_state()
5067 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state()
5068 srh_state->hdrlen = srh_state->srh->hdrlen << 3; in bpf_update_srh_state()
5069 srh_state->valid = true; in bpf_update_srh_state()
[all …]