xref: /openbmc/qemu/hw/net/rocker/qmp-norocker.c (revision b45c03f5)
1 /*
2  * QMP Target options - Commands handled based on a target config
3  *                      versus a host config
4  *
5  * Copyright (c) 2015 David Ahern <dsahern@gmail.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  */
17 
18 #include "qemu-common.h"
19 #include "qmp-commands.h"
20 #include "qapi/qmp/qerror.h"
21 
22 RockerSwitch *qmp_query_rocker(const char *name, Error **errp)
23 {
24     error_setg(errp, QERR_FEATURE_DISABLED, "rocker");
25     return NULL;
26 };
27 
28 RockerPortList *qmp_query_rocker_ports(const char *name, Error **errp)
29 {
30     error_setg(errp, QERR_FEATURE_DISABLED, "rocker");
31     return NULL;
32 };
33 
34 RockerOfDpaFlowList *qmp_query_rocker_of_dpa_flows(const char *name,
35                                                    bool has_tbl_id,
36                                                    uint32_t tbl_id,
37                                                    Error **errp)
38 {
39     error_setg(errp, QERR_FEATURE_DISABLED, "rocker");
40     return NULL;
41 };
42 
43 RockerOfDpaGroupList *qmp_query_rocker_of_dpa_groups(const char *name,
44                                                      bool has_type,
45                                                      uint8_t type,
46                                                      Error **errp)
47 {
48     error_setg(errp, QERR_FEATURE_DISABLED, "rocker");
49     return NULL;
50 };
51