struct pg_brick_config *pg_brick_config_new(const char *name, uint32_t west_max, uint32_t east_max, enum pg_brick_type type) { struct pg_brick_config *config = g_new0(struct pg_brick_config, 1); return pg_brick_config_init(config, name, west_max, east_max, type); }
static struct pg_brick_config *packetsgen_config_new(const char *name, uint32_t west_max, uint32_t east_max, struct rte_mbuf **packets, uint16_t packets_nb, enum pg_side output) { struct pg_brick_config *config = g_new0(struct pg_brick_config, 1); struct pg_packetsgen_config *packetsgen_config = g_new0(struct pg_packetsgen_config, 1); packetsgen_config->output = output; packetsgen_config->packets = packets; packetsgen_config->packets_nb = packets_nb; config->brick_config = (void *) packetsgen_config; return pg_brick_config_init(config, name, west_max, east_max, PG_MULTIPOLE); }