Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxsk.c66 struct ifobject *ifobj_tx, *ifobj_rx; in test_xsk() local
70 ifobj_tx = ifobject_create(); in test_xsk()
71 if (!ASSERT_OK_PTR(ifobj_tx, "create ifobj_tx")) in test_xsk()
78 if (!ASSERT_OK(configure_ifobj(ifobj_tx, ifobj_rx), "conigure ifobj")) in test_xsk()
81 ret = get_hw_ring_size(ifobj_tx->ifname, &ifobj_tx->ring); in test_xsk()
83 ifobj_tx->hw_ring_size_supp = true; in test_xsk()
84 ifobj_tx->set_ring.default_tx = ifobj_tx->ring.tx_pending; in test_xsk()
85 ifobj_tx->set_ring.default_rx = ifobj_tx->ring.rx_pending; in test_xsk()
96 ifobj_tx->max_skb_frags = max_frags; in test_xsk()
103 ifobj_tx->umem_tailroom = umem_tailroom; in test_xsk()
[all …]
H A Dtest_xsk.c209 static void __test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in __test_spec_init() argument
215 struct ifobject *ifobj = i ? ifobj_rx : ifobj_tx; in __test_spec_init()
252 if (ifobj_tx->hw_ring_size_supp) in __test_spec_init()
253 hw_ring_size_reset(ifobj_tx); in __test_spec_init()
255 test->ifobj_tx = ifobj_tx; in __test_spec_init()
267 test->xdp_prog_tx = ifobj_tx->xdp_progs->progs.xsk_def_prog; in __test_spec_init()
268 test->xskmap_tx = ifobj_tx->xdp_progs->maps.xsk; in __test_spec_init()
271 void test_init(struct test_spec *test, struct ifobject *ifobj_tx, 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()
[all …]
H A Dtest_xsk.h192 struct ifobject *ifobj_tx; member
213 #define busy_poll_string(test) (test)->ifobj_tx->busy_poll ? "BUSY-POLL " : ""
228 void test_init(struct test_spec *test, struct ifobject *ifobj_tx,
/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
215 ifobj = ifobj_tx; in parse_command_line()
234 ifobj_tx->busy_poll = true; in parse_command_line()
340 struct ifobject *ifobj_tx, *ifobj_rx; in main() local
350 ifobj_tx = ifobject_create(); in main()
351 if (!ifobj_tx) in main()
370 ifobj_tx->max_skb_frags = max_frags; in main()
377 ifobj_tx->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 …]