On Wed, 2026-11-25 at 14:02 -0800, Alexander Duyck wrote: > The thing is once you start making modifications to the frame all that > metadata should probably be thrown out anyway since none of it is > really valid.
I see what you mean now. Today the kernel does the opposite in both cases: - When XDP changes the frame and returns XDP_PASS, the driver still reports the RX hints of the old frame. - When XDP redirects a frame that it did not change, the RX hints are lost. The right time to drop them should be when the frame is modified, not whether it is redirected. I will look in this direction. Thank you, this really hits the nail on the head. > If anything, the path you are taking now with disabling > CHECKSUM_COMPLETE is the opposite direction of how I would probably go > about this. Agreed. Once XDP has the infrastructure to pass an adjusted CHECKSUM_COMPLETE to the driver, or to simply invalidate it once the frame is modified, we should bring it back. > That is why back in the day we had strongly encouraged > people to use non-zero UDP checksum on their tunnels and had added the > ability to convert the CHECKSUM_UNNECESSARY to CHECKSUM_COMPLETE when > decapsulating generic UDP tunnels. Yes, I fully agree, and thanks for the history behind it. I am glad that UDP over IPv6 requires a non-zero checksum in most cases, and that ice reports CHECKSUM_NONE for a zero checksum. Thanks, Tianyi
