MCPcopy Index your code
hub / github.com/F-Stack/f-stack / ff_dpdk_register_if

Function ff_dpdk_register_if

lib/ff_dpdk_if.c:177–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177struct ff_dpdk_if_context *
178ff_dpdk_register_if(void *sc, void *ifp, struct ff_port_cfg *cfg)
179{
180 struct ff_dpdk_if_context *ctx;
181
182 ctx = calloc(1, sizeof(struct ff_dpdk_if_context));
183 if (ctx == NULL)
184 return NULL;
185
186 ctx->sc = sc;
187 ctx->ifp = ifp;
188 ctx->port_id = cfg->port_id;
189 ctx->hw_features = cfg->hw_features;
190
191 return ctx;
192}
193
194void
195ff_dpdk_deregister_if(struct ff_dpdk_if_context *ctx)

Callers 1

ff_veth_setup_interfaceFunction · 0.85

Calls 1

callocFunction · 0.85

Tested by

no test coverage detected