Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_seg6_loop.c125 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
129 srh_off = (char *)srh - (char *)(long)skb->data; in is_valid_tlv_boundary()
131 cur_off = srh_off + sizeof(*srh) + in is_valid_tlv_boundary()
146 if (cur_off >= srh_off + ((srh->hdrlen + 1) << 3)) in is_valid_tlv_boundary()
157 if (*tlv_off == srh_off) { in is_valid_tlv_boundary()
185 uint32_t srh_off = (char *)srh - (char *)(long)skb->data; in add_tlv() local
193 tlv_off += srh_off; in add_tlv()
213 partial_srh_len = pad_off - srh_off; in add_tlv()
H A Dtest_lwt_seg6local.c124 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
128 srh_off = (char *)srh - (char *)(long)skb->data; in is_valid_tlv_boundary()
130 cur_off = srh_off + sizeof(*srh) + in is_valid_tlv_boundary()
143 if (cur_off >= srh_off + ((srh->hdrlen + 1) << 3)) in is_valid_tlv_boundary()
154 if (*tlv_off == srh_off) { in is_valid_tlv_boundary()
182 uint32_t srh_off = (char *)srh - (char *)(long)skb->data; in add_tlv() local
190 tlv_off += srh_off; in add_tlv()
210 partial_srh_len = pad_off - srh_off; in add_tlv()
226 uint32_t srh_off = (char *)srh - (char *)(long)skb->data; in delete_tlv() local
234 tlv_off += srh_off; in delete_tlv()
[all …]