Home
last modified time | relevance | path

Searched refs:change_tail_ret (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_change_tail.c10 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 Dtest_sockmap_change_tail.c13 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 Dtc_change_tail.c38 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 Dsockmap_basic.c674 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()