|
@@ -1,6 +1,5 @@
|
|
/*
|
|
/*
|
|
- * QMP Target options - Commands handled based on a target config
|
|
|
|
- * versus a host config
|
|
|
|
|
|
+ * QMP command stubs
|
|
*
|
|
*
|
|
* Copyright (c) 2015 David Ahern <dsahern@gmail.com>
|
|
* Copyright (c) 2015 David Ahern <dsahern@gmail.com>
|
|
*
|
|
*
|
|
@@ -18,17 +17,16 @@
|
|
#include "qemu/osdep.h"
|
|
#include "qemu/osdep.h"
|
|
#include "qapi/error.h"
|
|
#include "qapi/error.h"
|
|
#include "qapi/qapi-commands-rocker.h"
|
|
#include "qapi/qapi-commands-rocker.h"
|
|
-#include "qapi/qmp/qerror.h"
|
|
|
|
|
|
|
|
RockerSwitch *qmp_query_rocker(const char *name, Error **errp)
|
|
RockerSwitch *qmp_query_rocker(const char *name, Error **errp)
|
|
{
|
|
{
|
|
- error_setg(errp, QERR_FEATURE_DISABLED, "rocker");
|
|
|
|
|
|
+ error_setg(errp, "rocker %s not found", name);
|
|
return NULL;
|
|
return NULL;
|
|
};
|
|
};
|
|
|
|
|
|
RockerPortList *qmp_query_rocker_ports(const char *name, Error **errp)
|
|
RockerPortList *qmp_query_rocker_ports(const char *name, Error **errp)
|
|
{
|
|
{
|
|
- error_setg(errp, QERR_FEATURE_DISABLED, "rocker");
|
|
|
|
|
|
+ error_setg(errp, "rocker %s not found", name);
|
|
return NULL;
|
|
return NULL;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -37,7 +35,7 @@ RockerOfDpaFlowList *qmp_query_rocker_of_dpa_flows(const char *name,
|
|
uint32_t tbl_id,
|
|
uint32_t tbl_id,
|
|
Error **errp)
|
|
Error **errp)
|
|
{
|
|
{
|
|
- error_setg(errp, QERR_FEATURE_DISABLED, "rocker");
|
|
|
|
|
|
+ error_setg(errp, "rocker %s not found", name);
|
|
return NULL;
|
|
return NULL;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -46,6 +44,6 @@ RockerOfDpaGroupList *qmp_query_rocker_of_dpa_groups(const char *name,
|
|
uint8_t type,
|
|
uint8_t type,
|
|
Error **errp)
|
|
Error **errp)
|
|
{
|
|
{
|
|
- error_setg(errp, QERR_FEATURE_DISABLED, "rocker");
|
|
|
|
|
|
+ error_setg(errp, "rocker %s not found", name);
|
|
return NULL;
|
|
return NULL;
|
|
};
|
|
};
|