示例#1
0
文件: snctl.c 项目: 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;
}
示例#2
0
文件: snctl.c 项目: Grace-Liu/bess
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;
}