| 175 | } |
| 176 | |
| 177 | struct ff_dpdk_if_context * |
| 178 | ff_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 | |
| 194 | void |
| 195 | ff_dpdk_deregister_if(struct ff_dpdk_if_context *ctx) |
no test coverage detected