PERFORCE change 134987 for review
Steve Wise
swise at FreeBSD.org
Thu Feb 7 06:30:24 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=134987
Change 134987 by swise at swise:vic10:iwarp on 2008/02/07 14:29:44
Fixed cxgbtool breakage after integration/syncing.
Affected files ...
.. //depot/projects/iwarp/usr.sbin/cxgbtool/cxgbtool.c#6 edit
Differences ...
==== //depot/projects/iwarp/usr.sbin/cxgbtool/cxgbtool.c#6 (text+ko) ====
@@ -868,17 +868,17 @@
op = malloc(sizeof(*op));
if (!op)
err(1, "get TCB");
- memset(op.buf, 0xaa, TCB_SIZE);
op->mem_id = MEM_CM;
op->addr = tcb_idx * TCB_SIZE;
op->len = TCB_SIZE;
op->buf = buf;
+ memset(op->buf, 0xaa, TCB_SIZE);
if (doit(iff_name, CHELSIO_GET_MEM, op) < 0)
err(1, "get TCB");
- for (d = (uint64_t *)op.buf, i = 0; i < TCB_SIZE / 32; i++) {
+ for (d = (uint64_t *)op->buf, i = 0; i < TCB_SIZE / 32; i++) {
printf("%2u:", i);
printf(" %08x %08x %08x %08x", (uint32_t)d[1],
(uint32_t)(d[1] >> 32), (uint32_t)d[0],
@@ -889,7 +889,7 @@
(uint32_t)(d[0] >> 32));
d += 2;
}
- free(op.buf);
+ free(op);
return 0;
}
@@ -1875,7 +1875,6 @@
#endif
else if (!strcmp(argv[2], "tcb"))
r = get_tcb(argc, argv, 3, iff_name);
-#ifdef notyet
#ifdef WRC
else if (!strcmp(argv[2], "wrc"))
r = get_wrc(argc, argv, 3, iff_name);
More information about the p4-projects
mailing list