Searched refs:change_tail_ret (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_change_tail.c | 10 long change_tail_ret = 1; variable 87 change_tail_ret = bpf_skb_change_tail(skb, len - 1, 0); in change_tail() 88 if (!change_tail_ret) in change_tail() 92 change_tail_ret = bpf_skb_change_tail(skb, len + 1, 0); in change_tail() 93 if (!change_tail_ret) in change_tail() 97 change_tail_ret = bpf_skb_change_tail(skb, 65535, 0); in change_tail() 100 change_tail_ret = bpf_skb_change_tail(skb, 0, 0); in change_tail()
|
H A D | test_sockmap_change_tail.c | 13 long change_tail_ret = 1; variable 28 change_tail_ret = bpf_skb_change_tail(skb, skb->len - 1, 0); in prog_skb_verdict() 31 change_tail_ret = bpf_skb_change_tail(skb, skb->len + 1, 0); in prog_skb_verdict() 34 change_tail_ret = bpf_skb_change_tail(skb, 65535, 0); in prog_skb_verdict()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_change_tail.c | 38 ASSERT_EQ(skel->data->change_tail_ret, 0, "change_tail_ret"); in test_tc_change_tail() 44 ASSERT_EQ(skel->data->change_tail_ret, 0, "change_tail_ret"); in test_tc_change_tail() 50 ASSERT_EQ(skel->data->change_tail_ret, -EINVAL, "change_tail_ret"); in test_tc_change_tail() 56 ASSERT_EQ(skel->data->change_tail_ret, -EINVAL, "change_tail_ret"); in test_tc_change_tail()
|
H A D | sockmap_basic.c | 674 ASSERT_EQ(skel->data->change_tail_ret, 0, "change_tail_ret"); in test_sockmap_skb_verdict_change_tail() 680 ASSERT_EQ(skel->data->change_tail_ret, 0, "change_tail_ret"); in test_sockmap_skb_verdict_change_tail() 686 ASSERT_EQ(skel->data->change_tail_ret, -EINVAL, "change_tail_ret"); in test_sockmap_skb_verdict_change_tail()
|