Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_seg6local.c90 int update_tlv_pad(struct __sk_buff *skb, uint32_t new_pad, in update_tlv_pad() argument
95 if (new_pad != old_pad) { in update_tlv_pad()
97 (int) new_pad - (int) old_pad); in update_tlv_pad()
102 if (new_pad > 0) { in update_tlv_pad()
108 pad_tlv->len = new_pad - 2; in update_tlv_pad()
111 (void *)pad_tlv_buf, new_pad); in update_tlv_pad()
183 uint8_t len_remaining, new_pad; in add_tlv() local
212 new_pad = 8 - len_remaining; in add_tlv()
214 if (new_pad == 1) // cannot pad for 1 byte only in add_tlv()
215 new_pad = 9; in add_tlv()
[all …]
H A Dtest_seg6_loop.c90 uint32_t new_pad, uint32_t old_pad, in update_tlv_pad() argument
95 if (new_pad != old_pad) { in update_tlv_pad()
97 (int) new_pad - (int) old_pad); in update_tlv_pad()
102 if (new_pad > 0) { in update_tlv_pad()
108 pad_tlv->len = new_pad - 2; in update_tlv_pad()
111 (void *)pad_tlv_buf, new_pad); in update_tlv_pad()
186 uint8_t len_remaining, new_pad; in add_tlv() local
215 new_pad = 8 - len_remaining; in add_tlv()
217 if (new_pad == 1) // cannot pad for 1 byte only in add_tlv()
218 new_pad = 9; in add_tlv()
[all …]