Searched refs:srh_state (Results 1 – 2 of 2) sorted by relevance
1387 struct seg6_bpf_srh_state *srh_state = in seg6_bpf_has_valid_srh() local1389 struct ipv6_sr_hdr *srh = srh_state->srh; in seg6_bpf_has_valid_srh()1394 if (unlikely(!srh_state->valid)) { in seg6_bpf_has_valid_srh()1395 if ((srh_state->hdrlen & 7) != 0) in seg6_bpf_has_valid_srh()1398 srh->hdrlen = (u8)(srh_state->hdrlen >> 3); in seg6_bpf_has_valid_srh()1402 srh_state->valid = true; in seg6_bpf_has_valid_srh()1411 struct seg6_bpf_srh_state *srh_state = in input_action_end_bpf() local1427 srh_state->srh = srh; in input_action_end_bpf()1428 srh_state->hdrlen = srh->hdrlen << 3; in input_action_end_bpf()1429 srh_state->valid = true; in input_action_end_bpf()[all …]
6389 struct seg6_bpf_srh_state *srh_state = in BPF_CALL_4() local6391 struct ipv6_sr_hdr *srh = srh_state->srh; in BPF_CALL_4()6399 srh_end = (void *)((char *)srh + sizeof(*srh) + srh_state->hdrlen); in BPF_CALL_4()6403 srh_state->valid = false; in BPF_CALL_4()6412 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4()6430 struct seg6_bpf_srh_state *srh_state = in bpf_update_srh_state() local6435 srh_state->srh = NULL; in bpf_update_srh_state()6437 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state()6438 srh_state->hdrlen = srh_state->srh->hdrlen << 3; in bpf_update_srh_state()6439 srh_state->valid = true; in bpf_update_srh_state()[all …]