mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
process_rx writes the packet header back into the descriptor chain it is currently processing, so the write must go through that chain's memory snapshot. Rederefing self.mem.memory() resolves to the same snapshot today, but couples the write on the chain to the device's atomic handle and obscures intent. Match the pattern used by the rest of the device by writing through desc_chain.memory(). Suggested-by: Rob Bradford <rbradford@meta.com> Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>