MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_rawdev_info_get

Function test_rawdev_info_get

dpdk/drivers/raw/skeleton/skeleton_rawdev_test.c:110–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static int
111test_rawdev_info_get(void)
112{
113 int ret;
114 struct rte_rawdev_info rdev_info = {0};
115 struct skeleton_rawdev_conf skel_conf = {0};
116
117 ret = rte_rawdev_info_get(test_dev_id, NULL, 0);
118 RTE_TEST_ASSERT(ret == -EINVAL, "Expected -EINVAL, %d", ret);
119
120 rdev_info.dev_private = &skel_conf;
121
122 ret = rte_rawdev_info_get(test_dev_id, &rdev_info, sizeof(skel_conf));
123 RTE_TEST_ASSERT_SUCCESS(ret, "Failed to get raw dev info");
124
125 return TEST_SUCCESS;
126}
127
128static int
129test_rawdev_configure(void)

Callers

nothing calls this directly

Calls 1

rte_rawdev_info_getFunction · 0.85

Tested by

no test coverage detected