Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_seg6_loop.c123 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
127 srh_off = (char *)srh - (char *)(long)skb->data; in is_valid_tlv_boundary()
129 cur_off = srh_off + sizeof(*srh) + in is_valid_tlv_boundary()
144 if (cur_off >= srh_off + ((srh->hdrlen + 1) << 3)) in is_valid_tlv_boundary()
155 if (*tlv_off == srh_off) { in is_valid_tlv_boundary()
183 uint32_t srh_off = (char *)srh - (char *)(long)skb->data; in add_tlv() local
191 tlv_off += srh_off; in add_tlv()
211 partial_srh_len = pad_off - srh_off; in add_tlv()
Dtest_lwt_seg6local.c122 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
126 srh_off = (char *)srh - (char *)(long)skb->data; in is_valid_tlv_boundary()
128 cur_off = srh_off + sizeof(*srh) + in is_valid_tlv_boundary()
141 if (cur_off >= srh_off + ((srh->hdrlen + 1) << 3)) in is_valid_tlv_boundary()
152 if (*tlv_off == srh_off) { in is_valid_tlv_boundary()
180 uint32_t srh_off = (char *)srh - (char *)(long)skb->data; in add_tlv() local
188 tlv_off += srh_off; in add_tlv()
208 partial_srh_len = pad_off - srh_off; in add_tlv()
224 uint32_t srh_off = (char *)srh - (char *)(long)skb->data; in delete_tlv() local
232 tlv_off += srh_off; in delete_tlv()
[all …]