Date: Sun, 08 Mar 2026 19:35:44 +0000 From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 164bddf01b57 - main - cxgbe: Shrink the size of csum_types Message-ID: <69adcf90.24cb6.4cad65dc@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=164bddf01b5718c6aec73be112b4dada78934c68 commit 164bddf01b5718c6aec73be112b4dada78934c68 Author: Navdeep Parhar <np@FreeBSD.org> AuthorDate: 2026-03-08 19:34:32 +0000 Commit: Navdeep Parhar <np@FreeBSD.org> CommitDate: 2026-03-08 19:34:47 +0000 cxgbe: Shrink the size of csum_types The checksum types fit in 4b and don't need a full 32b int. MFC after: 1 week Sponsored by: Chelsio Communications --- sys/dev/cxgbe/t4_sge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c index af18b3019760..a9243ff121a6 100644 --- a/sys/dev/cxgbe/t4_sge.c +++ b/sys/dev/cxgbe/t4_sge.c @@ -5469,7 +5469,7 @@ csum_to_ctrl(struct adapter *sc, struct mbuf *m) uint64_t ctrl; int csum_type, l2hlen, l3hlen; int x, y; - static const int csum_types[3][2] = { + static const uint8_t csum_types[3][2] = { {TX_CSUM_TCPIP, TX_CSUM_TCPIP6}, {TX_CSUM_UDPIP, TX_CSUM_UDPIP6}, {TX_CSUM_IP, 0}home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69adcf90.24cb6.4cad65dc>
