summaryrefslogtreecommitdiffstats
path: root/src/rpc-server
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-11-30 13:00:54 +0200
committerimarom <imarom@cisco.com>2016-11-30 13:35:40 +0200
commit051a334b6f57280faa9dd90eeab922fb51f3c89e (patch)
treed7b1784e99edc8b71befc7f6a84d0cedb80f7667 /src/rpc-server
parentba3a6e1edd85873be62f17881e4a95df7daf098d (diff)
reply to messages
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/rpc-server')
-rw-r--r--src/rpc-server/commands/trex_rpc_cmd_general.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_general.cpp b/src/rpc-server/commands/trex_rpc_cmd_general.cpp
index ccdcbd8c..849c9be3 100644
--- a/src/rpc-server/commands/trex_rpc_cmd_general.cpp
+++ b/src/rpc-server/commands/trex_rpc_cmd_general.cpp
@@ -310,8 +310,8 @@ TrexRpcCmdGetSysInfo::_run(const Json::Value &params, Json::Value &result) {
section["ports"][i]["driver"] = driver;
section["ports"][i]["description"] = description;
- section["ports"][i]["pci_addr"] = pci_addr;
- section["ports"][i]["numa"] = numa;
+ section["ports"][i]["pci_addr"] = pci_addr;
+ section["ports"][i]["numa"] = numa;
uint16_t caps = port->get_rx_caps();
section["ports"][i]["rx"]["caps"] = Json::arrayValue;
@@ -350,6 +350,7 @@ TrexRpcCmdSetPortAttr::parse_rx_filter_mode(const Json::Value &msg, uint8_t port
} else if (type == "all") {
filter_mode = RX_FILTER_MODE_ALL;
} else {
+ /* can't happen - parsed choice */
assert(0);
}
@@ -647,8 +648,8 @@ TrexRpcCmdGetPortStatus::_run(const Json::Value &params, Json::Value &result) {
get_stateless_obj()->get_platform_api()->getPortAttrObj(port_id)->to_json(result["result"]["attr"]);
/* RX info */
- port->get_rx_features().to_json(result["result"]["rx_info"]);
-
+ result["result"]["rx_info"] = port->rx_features_to_json();
+
return (TREX_RPC_CMD_OK);
}