Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_seg6_loop.c121 uint32_t *tlv_off, in is_valid_tlv_boundary() argument
143 if (cur_off == *tlv_off) in is_valid_tlv_boundary()
157 if (*tlv_off == srh_off) { in is_valid_tlv_boundary()
158 *tlv_off = cur_off; in is_valid_tlv_boundary()
173 if (*tlv_off == -1) in is_valid_tlv_boundary()
174 *tlv_off = cur_off; in is_valid_tlv_boundary()
182 struct ip6_srh_t *srh, uint32_t tlv_off, in add_tlv() argument
192 if (tlv_off != -1) in add_tlv()
193 tlv_off += srh_off; in add_tlv()
198 err = is_valid_tlv_boundary(skb, srh, &tlv_off, &pad_size, &pad_off); in add_tlv()
[all …]
H A Dtest_lwt_seg6local.c121 uint32_t *tlv_off, uint32_t *pad_size, in is_valid_tlv_boundary() argument
140 if (cur_off == *tlv_off) in is_valid_tlv_boundary()
154 if (*tlv_off == srh_off) { in is_valid_tlv_boundary()
155 *tlv_off = cur_off; in is_valid_tlv_boundary()
170 if (*tlv_off == -1) in is_valid_tlv_boundary()
171 *tlv_off = cur_off; in is_valid_tlv_boundary()
179 int add_tlv(struct __sk_buff *skb, struct ip6_srh_t *srh, uint32_t tlv_off, in add_tlv() argument
189 if (tlv_off != -1) in add_tlv()
190 tlv_off += srh_off; in add_tlv()
195 err = is_valid_tlv_boundary(skb, srh, &tlv_off, &pad_size, &pad_off); in add_tlv()
[all …]