Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/
H A Dxskxceiver.c198 static void parse_command_line(struct ifobject *ifobj_tx, struct ifobject *ifobj_rx, int argc, in parse_command_line() argument
217 ifobj = ifobj_rx; in parse_command_line()
235 ifobj_rx->busy_poll = true; in parse_command_line()
340 struct ifobject *ifobj_tx, *ifobj_rx; in main() local
353 ifobj_rx = ifobject_create(); in main()
354 if (!ifobj_rx) in main()
371 ifobj_rx->max_skb_frags = max_frags; in main()
378 ifobj_rx->umem_tailroom = umem_tailroom; in main()
380 parse_command_line(ifobj_tx, ifobj_rx, argc, argv); in main()
391 shared_netdev = (ifobj_tx->ifindex == ifobj_rx->ifindex); in main()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxsk.c66 struct ifobject *ifobj_tx, *ifobj_rx; in test_xsk() local
74 ifobj_rx = ifobject_create(); in test_xsk()
75 if (!ASSERT_OK_PTR(ifobj_rx, "create ifobj_rx")) in test_xsk()
78 if (!ASSERT_OK(configure_ifobj(ifobj_tx, ifobj_rx), "conigure ifobj")) in test_xsk()
97 ifobj_rx->max_skb_frags = max_frags; in test_xsk()
104 ifobj_rx->umem_tailroom = umem_tailroom; in test_xsk()
106 if (!ASSERT_OK(init_iface(ifobj_rx, worker_testapp_validate_rx), "init RX")) in test_xsk()
111 test_init(&test, ifobj_tx, ifobj_rx, 0, &tests[0]); in test_xsk()
121 test_init(&test, ifobj_tx, ifobj_rx, mode, test_to_run); in test_xsk()
133 xsk_xdp_progs__destroy(ifobj_rx->xdp_progs); in test_xsk()
[all …]
H A Dtest_xsk.c210 struct ifobject *ifobj_rx) in __test_spec_init() argument
215 struct ifobject *ifobj = i ? ifobj_rx : ifobj_tx; in __test_spec_init()
256 test->ifobj_rx = ifobj_rx; in __test_spec_init()
265 test->xdp_prog_rx = ifobj_rx->xdp_progs->progs.xsk_def_prog; in __test_spec_init()
266 test->xskmap_rx = ifobj_rx->xdp_progs->maps.xsk; in __test_spec_init()
272 struct ifobject *ifobj_rx, enum test_mode mode, in test_init() argument
286 struct ifobject *ifobj = i ? ifobj_rx : ifobj_tx; in test_init()
298 __test_spec_init(test, ifobj_tx, ifobj_rx); in test_init()
303 __test_spec_init(test, test->ifobj_tx, test->ifobj_rx); in test_spec_reset()
320 if (test->ifobj_rx->mtu != mtu) { in test_spec_set_mtu()
[all …]
H A Dtest_xsk.h193 struct ifobject *ifobj_rx; member
229 struct ifobject *ifobj_rx, enum test_mode mode,