Home
last modified time | relevance | path

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

/linux-6.12.1/net/ipv6/
Dseg6_local.c1389 struct seg6_bpf_srh_state *srh_state = in seg6_bpf_has_valid_srh() local
1391 struct ipv6_sr_hdr *srh = srh_state->srh; in seg6_bpf_has_valid_srh()
1393 lockdep_assert_held(&srh_state->bh_lock); in seg6_bpf_has_valid_srh()
1397 if (unlikely(!srh_state->valid)) { in seg6_bpf_has_valid_srh()
1398 if ((srh_state->hdrlen & 7) != 0) in seg6_bpf_has_valid_srh()
1401 srh->hdrlen = (u8)(srh_state->hdrlen >> 3); in seg6_bpf_has_valid_srh()
1405 srh_state->valid = true; in seg6_bpf_has_valid_srh()
1414 struct seg6_bpf_srh_state *srh_state; in input_action_end_bpf() local
1432 srh_state = this_cpu_ptr(&seg6_bpf_srh_states); in input_action_end_bpf()
1433 srh_state->srh = srh; in input_action_end_bpf()
[all …]
/linux-6.12.1/net/core/
Dfilter.c6475 struct seg6_bpf_srh_state *srh_state = in BPF_CALL_4() local
6477 struct ipv6_sr_hdr *srh = srh_state->srh; in BPF_CALL_4()
6481 lockdep_assert_held(&srh_state->bh_lock); in BPF_CALL_4()
6486 srh_end = (void *)((char *)srh + sizeof(*srh) + srh_state->hdrlen); in BPF_CALL_4()
6490 srh_state->valid = false; in BPF_CALL_4()
6499 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4()
6517 struct seg6_bpf_srh_state *srh_state = in bpf_update_srh_state() local
6522 srh_state->srh = NULL; in bpf_update_srh_state()
6524 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state()
6525 srh_state->hdrlen = srh_state->srh->hdrlen << 3; in bpf_update_srh_state()
[all …]