svn commit: r211441 -
projects/ofed/head/sys/ofed/drivers/infiniband/core
Jeff Roberson
jeff at FreeBSD.org
Wed Aug 18 07:31:29 UTC 2010
Author: jeff
Date: Wed Aug 18 07:31:28 2010
New Revision: 211441
URL: http://svn.freebsd.org/changeset/base/211441
Log:
- Correct the byte order of gids in sysctl.
Sponsored by: Isilon Systems, iX Systems, and Panasas.
Modified:
projects/ofed/head/sys/ofed/drivers/infiniband/core/sysfs.c
Modified: projects/ofed/head/sys/ofed/drivers/infiniband/core/sysfs.c
==============================================================================
--- projects/ofed/head/sys/ofed/drivers/infiniband/core/sysfs.c Wed Aug 18 00:26:14 2010 (r211440)
+++ projects/ofed/head/sys/ofed/drivers/infiniband/core/sysfs.c Wed Aug 18 07:31:28 2010 (r211441)
@@ -273,7 +273,8 @@ static ssize_t show_port_gid(struct ib_p
raw = (u16 *)gid.raw;
return sprintf(buf, "%.4x:%.4x:%.4x:%.4x:%.4x:%.4x:%.4x:%.4x\n",
- raw[0], raw[1], raw[2], raw[3], raw[4], raw[5], raw[6], raw[7]);
+ htons(raw[0]), htons(raw[1]), htons(raw[2]), htons(raw[3]),
+ htons(raw[4]), htons(raw[5]), htons(raw[6]), htons(raw[7]));
}
static ssize_t show_port_pkey(struct ib_port *p, struct port_attribute *attr,
More information about the svn-src-projects
mailing list