[Bug 272780] genet: General question of DMA alignment requirement for tx/rx_buf
Date: Mon, 31 Jul 2023 15:34:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272780 Mark Johnston <markj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |karels@freebsd.org, | |markj@FreeBSD.org Status|New |Open --- Comment #1 from Mark Johnston <markj@FreeBSD.org> --- CC'ing Mike Karels, who imported the driver. I suspect that genet does this so that the IP header is 4-byte aligned, since that could make accesses to header fields more efficient. But indeed, it's rather strange that rx_buf_tag is defined with an alignment of 4. I'd expect that to result in extra copying. -- You are receiving this mail because: You are the assignee for the bug.