Hi Sasha,
I think this patch was somehow lost in the pile of patches
that you recently got. Anyhow, reposting it:
Adding log messages for matched criteria of the QoS policy rule.
Signed-off-by: Yevgeny Kliteynik <kliteyn@dev.mellanox.co.il>
---
opensm/opensm/osm_qos_policy.c | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/opensm/opensm/osm_qos_policy.c b/opensm/opensm/osm_qos_policy.c
index 6c81872..ebe3a7f 100644
--- a/opensm/opensm/osm_qos_policy.c
+++ b/opensm/opensm/osm_qos_policy.c
@@ -598,10 +598,13 @@ static osm_qos_match_rule_t *__qos_policy_get_match_rule_by_params(
{
osm_qos_match_rule_t *p_qos_match_rule = NULL;
cl_list_iterator_t list_iterator;
+ osm_log_t * p_log = &p_qos_policy->p_subn->p_osm->log;
if (!cl_list_count(&p_qos_policy->qos_match_rules))
return NULL;
+ OSM_LOG_ENTER(p_log);
+
/* Go over all QoS match rules and find the one that matches the request */
list_iterator = cl_list_head(&p_qos_policy->qos_match_rules);
@@ -624,6 +627,8 @@ static osm_qos_match_rule_t *__qos_policy_get_match_rule_by_params(
list_iterator = cl_list_next(list_iterator);
continue;
}
+ OSM_LOG(&p_qos_policy->p_subn->p_osm->log, OSM_LOG_DEBUG,
+ "Source port matched.\n");
}
/* If a match rule has Destination groups, PR request dest. has to be in this list */
@@ -637,6 +642,8 @@ static osm_qos_match_rule_t *__qos_policy_get_match_rule_by_params(
list_iterator = cl_list_next(list_iterator);
continue;
}
+ OSM_LOG(&p_qos_policy->p_subn->p_osm->log, OSM_LOG_DEBUG,
+ "Destination port matched.\n");
}
/* If a match rule has QoS classes, PR request HAS
@@ -655,7 +662,8 @@ static osm_qos_match_rule_t *__qos_policy_get_match_rule_by_params(
list_iterator = cl_list_next(list_iterator);
continue;
}
-
+ OSM_LOG(&p_qos_policy->p_subn->p_osm->log, OSM_LOG_DEBUG,
+ "QoS Class matched.\n");
}
/* If a match rule has Service IDs, PR request HAS
@@ -675,7 +683,8 @@ static osm_qos_match_rule_t *__qos_policy_get_match_rule_by_params(
list_iterator = cl_list_next(list_iterator);
continue;
}
-
+ OSM_LOG(&p_qos_policy->p_subn->p_osm->log, OSM_LOG_DEBUG,
+ "Service ID matched.\n");
}
/* If a match rule has PKeys, PR request HAS
@@ -694,13 +703,16 @@ static osm_qos_match_rule_t *__qos_policy_get_match_rule_by_params(
list_iterator = cl_list_next(list_iterator);
continue;
}
-
+ OSM_LOG(&p_qos_policy->p_subn->p_osm->log, OSM_LOG_DEBUG,
+ "PKey matched.\n");
}
/* if we got here, then this match-rule matched this PR request */
break;
}
+ OSM_LOG_EXIT(p_log);
+
if (list_iterator == cl_list_end(&p_qos_policy->qos_match_rules))
return NULL;
--
1.5.1.4
_______________________________________________
general mailing list
general@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
| David Miller | [GIT]: Networking |
| Thomas Gleixner | Re: Regression in 2.6.27 caused by commit bfc0f59 |
| Rafael J. Wysocki | [Bug #11342] Linux 2.6.27-rc3: kernel BUG at mm/vmalloc.c - bisected |
| jmerkey | [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released |
git: | |
| Mike | I don't want the .git directory next to my code. |
| Kevin Ballard | Re: git on MacOSX and files with decomposed utf-8 file names |
| Karl | Re: git-svn should default to --repack |
| Ken Pratt | pack operation is thrashing my server |
| carlopmart | About Xen: maybe a reiterative question but .. |
| NetOne - Doichin Dokov | OpenBSD as Xen domU |
| Nick Guenther | Re: Real men don't attack straw men |
| Paul Barbeau | RAID/Intel Installation Problem |
| Wang Chen | [V#2 PATCH 0/18] netdevice: Fix directly reference of netdev->priv |
| Indan Zupancic | Re: Realtek 8111C transmit timed out |
| Alexey Kuznetsov | Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets |
| Alexey Dobriyan | Re: [GIT]: Networking |
| Personal opinions about Video Poker | 5 minutes ago | Applications and Utilities |
| trouble with my Asus Mainboard | 42 minutes ago | Linux kernel |
| Which games would you prefer in online casinos? | 42 minutes ago | Linux kernel |
| help in UDP catching module.. | 18 hours ago | Linux kernel |
| Is there anything like Real-time drivers? | 2 days ago | Linux general |
| ns16550 serail console in Linux 2.6.19 | 2 days ago | Linux general |
| what class should i use to register my devices | 2 days ago | Linux kernel |
| reset bios pasword toshiba | 3 days ago | Hardware |
| Analysis of Process Scheduling | 4 days ago | Linux kernel |
| RT Kernel and SSH Server Panics | 4 days ago | Linux kernel |
