Lines Matching refs:srh_state
873 struct seg6_bpf_srh_state *srh_state = in seg6_bpf_has_valid_srh() local
875 struct ipv6_sr_hdr *srh = srh_state->srh; in seg6_bpf_has_valid_srh()
880 if (unlikely(!srh_state->valid)) { in seg6_bpf_has_valid_srh()
881 if ((srh_state->hdrlen & 7) != 0) in seg6_bpf_has_valid_srh()
884 srh->hdrlen = (u8)(srh_state->hdrlen >> 3); in seg6_bpf_has_valid_srh()
888 srh_state->valid = true; in seg6_bpf_has_valid_srh()
897 struct seg6_bpf_srh_state *srh_state = in input_action_end_bpf() local
913 srh_state->srh = srh; in input_action_end_bpf()
914 srh_state->hdrlen = srh->hdrlen << 3; in input_action_end_bpf()
915 srh_state->valid = true; in input_action_end_bpf()
933 if (srh_state->srh && !seg6_bpf_has_valid_srh(skb)) in input_action_end_bpf()