Example #1
0
File: snctl.c Project: apanda/bess
static struct snobj *handle_reset_all(struct snobj *q)
{
	struct snobj *r;

	printf("*** reset_all requested ***\n");

	r = handle_reset_modules(NULL);
	assert(r == NULL);

	r = handle_reset_ports(NULL);
	assert(r == NULL);

	return NULL;
}
Example #2
0
static struct snobj *handle_reset_all(struct snobj *q)
{
	struct snobj *r;

	printf("*** reset_all requested ***\n");

	r = handle_reset_modules(NULL);
	if (r)
		return r;

	r = handle_reset_ports(NULL);
	if (r)
		return r;

	r = handle_reset_tcs(NULL);
	if (r)
		return r;

	r = handle_reset_workers(NULL);
	if (r)
		return r;

	return NULL;
}