Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_seg6_loop.c119 uint32_t *tlv_off, in is_valid_tlv_boundary() argument
141 if (cur_off == *tlv_off) in is_valid_tlv_boundary()
155 if (*tlv_off == srh_off) { in is_valid_tlv_boundary()
156 *tlv_off = cur_off; in is_valid_tlv_boundary()
171 if (*tlv_off == -1) in is_valid_tlv_boundary()
172 *tlv_off = cur_off; in is_valid_tlv_boundary()
180 struct ip6_srh_t *srh, uint32_t tlv_off, in add_tlv() argument
190 if (tlv_off != -1) in add_tlv()
191 tlv_off += srh_off; in add_tlv()
196 err = is_valid_tlv_boundary(skb, srh, &tlv_off, &pad_size, &pad_off); in add_tlv()
[all …]
Dtest_lwt_seg6local.c119 uint32_t *tlv_off, uint32_t *pad_size, in is_valid_tlv_boundary() argument
138 if (cur_off == *tlv_off) in is_valid_tlv_boundary()
152 if (*tlv_off == srh_off) { in is_valid_tlv_boundary()
153 *tlv_off = cur_off; in is_valid_tlv_boundary()
168 if (*tlv_off == -1) in is_valid_tlv_boundary()
169 *tlv_off = cur_off; in is_valid_tlv_boundary()
177 int add_tlv(struct __sk_buff *skb, struct ip6_srh_t *srh, uint32_t tlv_off, in add_tlv() argument
187 if (tlv_off != -1) in add_tlv()
188 tlv_off += srh_off; in add_tlv()
193 err = is_valid_tlv_boundary(skb, srh, &tlv_off, &pad_size, &pad_off); in add_tlv()
[all …]