for (int i = 0; i < RTE_MAX_ETHPORTS; i++) {
ec->config.port_name[i][0] = 0;
}
+ /* Enable all ports by default */
+ ec->config.enabled_port_mask = ~0;
}
static int dpdk_stats_preinit(void) {
}
static int dpdk_stats_get_size(dpdk_helper_ctx_t *phc) {
- return (dpdk_helper_data_size_get(phc) - sizeof(dpdk_stats_ctx_t));
+ return dpdk_helper_data_size_get(phc) - sizeof(dpdk_stats_ctx_t);
}
int dpdk_helper_command_handler(dpdk_helper_ctx_t *phc, enum DPDK_CMD cmd) {