summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1b89799)
Extend debugs on power instruction and cmd police destroy
requests.
Signed-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com>
static int
process_request(struct channel_packet *pkt, struct channel_info *chan_info)
{
static int
process_request(struct channel_packet *pkt, struct channel_info *chan_info)
{
if (chan_info == NULL)
return -1;
if (chan_info == NULL)
return -1;
else
core_num = pkt->resource_id;
else
core_num = pkt->resource_id;
+ RTE_LOG(DEBUG, CHANNEL_MONITOR, "Processing requested cmd for cpu:%d\n",
+ core_num);
+
switch (pkt->unit) {
case(CPU_POWER_SCALE_MIN):
power_manager_scale_core_min(core_num);
switch (pkt->unit) {
case(CPU_POWER_SCALE_MIN):
power_manager_scale_core_min(core_num);
}
if (pkt->command == PKT_POLICY_REMOVE) {
}
if (pkt->command == PKT_POLICY_REMOVE) {
- RTE_LOG(INFO, CHANNEL_MONITOR,
- "Removing policy %s\n", pkt->vm_name);
- remove_policy(pkt);
+ ret = remove_policy(pkt);
+ if (ret == 0)
+ RTE_LOG(INFO, CHANNEL_MONITOR,
+ "Removed policy %s\n", pkt->vm_name);
+ else
+ RTE_LOG(INFO, CHANNEL_MONITOR,
+ "Policy %s does not exist\n", pkt->vm_name);