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

Function l2fwd_poll_resource_setup

dpdk/examples/l2fwd-event/l2fwd_poll.c:170–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void
171l2fwd_poll_resource_setup(struct l2fwd_resources *rsrc)
172{
173 struct l2fwd_poll_resources *poll_rsrc;
174
175 poll_rsrc = rte_zmalloc("l2fwd_poll_rsrc",
176 sizeof(struct l2fwd_poll_resources), 0);
177 if (poll_rsrc == NULL)
178 rte_panic("Failed to allocate resources for l2fwd poll mode\n");
179
180 rsrc->poll_rsrc = poll_rsrc;
181 l2fwd_poll_lcore_config(rsrc);
182 l2fwd_poll_init_tx_buffers(rsrc);
183
184 poll_rsrc->poll_main_loop = l2fwd_poll_main_loop;
185}

Callers 1

mainFunction · 0.85

Calls 3

rte_zmallocFunction · 0.85
l2fwd_poll_lcore_configFunction · 0.85

Tested by

no test coverage detected