Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: rename XDPUmemReg field back to Size
When the Linux-specific XDPUmemReg struct was originally added (CL 136695) the only field with a prefix was chunk_size, so cgo rewrote the field to Size. Later Linux added a tx_metadata_len field, which caused cgo to to leave the chunk_size field as Chunk_size (CL 577975). However, existing code, specifically gvisor, refers to the field as Size. So go back to Size so that existing code will continue to work. This does unfortunately mean that people who used the struct since CL 577975 in April, 2024 will have to adapt. There doesn't seem to be a perfect solution here. But we've had Size since September, 2018, so let's stick with that. Change-Id: Ib11edfbf98ce3a9e1a909194f200a39ddfe6f8e0 Reviewed-on: https://go-review.googlesource.com/c/sys/+/607876 Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
- Loading branch information