git: 44e7472d0ede - main - cxgbe tom: Use be64toh instead of htobe64 to convert to host order.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Mar 2022 22:31:10 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=44e7472d0ededdcee787bb08f301af234c732ff3
commit 44e7472d0ededdcee787bb08f301af234c732ff3
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-03-08 18:26:45 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-03-08 22:30:05 +0000
cxgbe tom: Use be64toh instead of htobe64 to convert to host order.
This is a no-op but more accurately conveys intent.
Sponsored by: Chelsio Communications
---
sys/dev/cxgbe/tom/t4_ddp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/dev/cxgbe/tom/t4_ddp.c b/sys/dev/cxgbe/tom/t4_ddp.c
index bd5739e20821..428e942a29cd 100644
--- a/sys/dev/cxgbe/tom/t4_ddp.c
+++ b/sys/dev/cxgbe/tom/t4_ddp.c
@@ -1156,7 +1156,7 @@ t4_write_page_pods_for_ps(struct adapter *sc, struct sge_wrq *wrq, int tid,
CTR5(KTR_CXGBE,
"%s: tid %d ppod[%d]->addr[%d] = %p",
__func__, toep->tid, i, k,
- htobe64(ppod->addr[k]));
+ be64toh(ppod->addr[k]));
#endif
}
@@ -1258,7 +1258,7 @@ t4_write_page_pods_for_buf(struct adapter *sc, struct toepcb *toep,
CTR5(KTR_CXGBE,
"%s: tid %d ppod[%d]->addr[%d] = %p",
__func__, toep->tid, i, k,
- htobe64(ppod->addr[k]));
+ be64toh(ppod->addr[k]));
#endif
}
@@ -1348,7 +1348,7 @@ t4_write_page_pods_for_sgl(struct adapter *sc, struct toepcb *toep,
CTR5(KTR_CXGBE,
"%s: tid %d ppod[%d]->addr[%d] = %p",
__func__, toep->tid, i, k,
- htobe64(ppod->addr[k]));
+ be64toh(ppod->addr[k]));
#endif
/*