[ofa-general] [PATCH] IB/sysfs: Add port_xmit_wait counter.
Vladimir Sokolovsky
vlad at mellanox.co.il
Sun Oct 26 03:02:02 PDT 2008
Signed-off-by: Vladimir Sokolovsky <vlad at mellanox.co.il>
---
drivers/infiniband/core/sysfs.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c
index 4d10421..6b4c592 100644
--- a/drivers/infiniband/core/sysfs.c
+++ b/drivers/infiniband/core/sysfs.c
@@ -374,6 +374,12 @@ static PORT_PMA_ATTR(port_xmit_data , 12, 32, 192);
static PORT_PMA_ATTR(port_rcv_data , 13, 32, 224);
static PORT_PMA_ATTR(port_xmit_packets , 14, 32, 256);
static PORT_PMA_ATTR(port_rcv_packets , 15, 32, 288);
+/*
+ * There is no bit allocated for port_xmit_wait in the CounterSelect field
+ * (IB spec). However, since this bit is ignored when reading
+ * (show_pma_counter), the _counter field of port_xmit_wait can be set to zero.
+ */
+static PORT_PMA_ATTR(port_xmit_wait , 0, 32, 320);
static struct attribute *pma_attrs[] = {
&port_pma_attr_symbol_error.attr.attr,
@@ -392,6 +398,7 @@ static struct attribute *pma_attrs[] = {
&port_pma_attr_port_rcv_data.attr.attr,
&port_pma_attr_port_xmit_packets.attr.attr,
&port_pma_attr_port_rcv_packets.attr.attr,
+ &port_pma_attr_port_xmit_wait.attr.attr,
NULL
};
--
1.6.0.2.307.gc427
More information about the general
mailing list