Lines Matching full:invalid
77 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook = NULL")) in test_tc_bpf_api()
82 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook ifindex == 0")) in test_tc_bpf_api()
86 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook ifindex == 0")) in test_tc_bpf_api()
90 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook ifindex == 0")) in test_tc_bpf_api()
95 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook ifindex == 0")) in test_tc_bpf_api()
99 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook ifindex == 0")) in test_tc_bpf_api()
106 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook ifindex < 0")) in test_tc_bpf_api()
110 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook ifindex < 0")) in test_tc_bpf_api()
114 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook ifindex < 0")) in test_tc_bpf_api()
119 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook ifindex < 0")) in test_tc_bpf_api()
123 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook ifindex < 0")) in test_tc_bpf_api()
128 /* hook.attach_point invalid */ in test_tc_bpf_api()
131 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook.attach_point")) in test_tc_bpf_api()
135 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook.attach_point")) in test_tc_bpf_api()
139 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook.attach_point")) in test_tc_bpf_api()
143 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook.attach_point")) in test_tc_bpf_api()
147 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook.attach_point")) in test_tc_bpf_api()
152 /* hook.attach_point valid, but parent invalid */ in test_tc_bpf_api()
155 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook parent")) in test_tc_bpf_api()
159 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook parent")) in test_tc_bpf_api()
163 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook parent")) in test_tc_bpf_api()
167 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook parent")) in test_tc_bpf_api()
171 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook parent")) in test_tc_bpf_api()
180 if (!ASSERT_EQ(ret, -EOPNOTSUPP, "bpf_tc_hook_create invalid hook parent")) in test_tc_bpf_api()
184 if (!ASSERT_EQ(ret, -EOPNOTSUPP, "bpf_tc_hook_destroy invalid hook parent")) in test_tc_bpf_api()
188 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook parent")) in test_tc_bpf_api()
192 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook parent")) in test_tc_bpf_api()
196 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook parent")) in test_tc_bpf_api()
206 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook = NULL")) in test_tc_bpf_api()
210 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid opts = NULL")) in test_tc_bpf_api()
214 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid flags set")) in test_tc_bpf_api()
218 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid prog_fd set")) in test_tc_bpf_api()
222 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid prog_id set")) in test_tc_bpf_api()
226 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid handle unset")) in test_tc_bpf_api()
230 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid priority unset")) in test_tc_bpf_api()
234 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid priority > UINT16_MAX")) in test_tc_bpf_api()
243 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook = NULL")) in test_tc_bpf_api()
247 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid opts = NULL")) in test_tc_bpf_api()
251 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid flags set")) in test_tc_bpf_api()
255 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid prog_fd set")) in test_tc_bpf_api()
259 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid prog_id set")) in test_tc_bpf_api()
263 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid handle unset")) in test_tc_bpf_api()
267 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid priority unset")) in test_tc_bpf_api()
271 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid priority > UINT16_MAX")) in test_tc_bpf_api()
285 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook = NULL")) in test_tc_bpf_api()
289 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid opts = NULL")) in test_tc_bpf_api()
294 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid flags")) in test_tc_bpf_api()
298 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid prog_fd unset")) in test_tc_bpf_api()
302 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid prog_id set")) in test_tc_bpf_api()
318 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid priority > UINT16_MAX")) in test_tc_bpf_api()
356 if (!ASSERT_EQ(ret, -EOPNOTSUPP, "bpf_tc_hook_create invalid hook.attach_point")) in tc_bpf_root()
364 if (!ASSERT_EQ(ret, -EOPNOTSUPP, "bpf_tc_hook_destroy invalid hook.attach_point")) in tc_bpf_root()