Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_seg6_loop.c183 struct sr6_tlv_t *itlv, uint8_t tlv_size) in add_tlv() argument
195 if (itlv->type == SR6_TLV_PADDING || itlv->type == SR6_TLV_HMAC) in add_tlv()
202 err = bpf_lwt_seg6_adjust_srh(skb, tlv_off, sizeof(*itlv) + itlv->len); in add_tlv()
206 err = bpf_lwt_seg6_store_bytes(skb, tlv_off, (void *)itlv, tlv_size); in add_tlv()
212 pad_off += sizeof(*itlv) + itlv->len; in add_tlv()
H A Dtest_lwt_seg6local.c180 struct sr6_tlv_t *itlv, uint8_t tlv_size) in add_tlv() argument
192 if (itlv->type == SR6_TLV_PADDING || itlv->type == SR6_TLV_HMAC) in add_tlv()
199 err = bpf_lwt_seg6_adjust_srh(skb, tlv_off, sizeof(*itlv) + itlv->len); in add_tlv()
203 err = bpf_lwt_seg6_store_bytes(skb, tlv_off, (void *)itlv, tlv_size); in add_tlv()
209 pad_off += sizeof(*itlv) + itlv->len; in add_tlv()