From mboxrd@z Thu Jan 1 00:00:00 1970 From: "ira.weiny" Subject: Re: [PATCH 2/3] IB core: Support 64 bit values in the port counters Date: Fri, 11 Dec 2015 18:33:50 -0500 Message-ID: <20151211233350.GF7855@phlsvsds.ph.intel.com> References: <20151211182532.332343651@linux.com> <20151211182543.229518282@linux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20151211182543.229518282-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Christoph Lameter Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jason Gunthorpe List-Id: linux-rdma@vger.kernel.org On Fri, Dec 11, 2015 at 12:25:34PM -0600, Christoph Lameter wrote: > Add a branch to display 64 bit values > > Signed-off-by: Christoph Lameter Reviewed-by: Ira Weiny > --- > drivers/infiniband/core/sysfs.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c > index 1c8716f..0083a4f 100644 > --- a/drivers/infiniband/core/sysfs.c > +++ b/drivers/infiniband/core/sysfs.c > @@ -378,6 +378,11 @@ static ssize_t show_pma_counter(struct ib_port *p, struct port_attribute *attr, > ret = sprintf(buf, "%u\n", > be32_to_cpup((__be32 *)(out_mad->data + 40 + offset / 8))); > break; > + case 64: > + ret = sprintf(buf, "%llu\n", > + be64_to_cpup((__be64 *)(out_mad->data + 40 + offset / 8))); > + break; > + > default: > ret = 0; > } > -- > 2.5.0 > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html