On Wed, May 06, 2020 at 04:19:40PM +0800, Jason Wang wrote:
On 2020/5/6 äå3:53, Michael S. Tsirkin wrote:Then what's the problem?
On Wed, May 06, 2020 at 02:16:32PM +0800, Jason Wang wrote:We don't, see 436c9453a1ac0 ("virtio-net: keep vnet header zeroed after
We tried to reserve space for vnet header beforeWhat do you mean? Doesn't XDP_PASS use the header in the buffer?
xdp.data_hard_start. But this is useless since the packet could be
modified by XDP which may invalidate the information stored in the
header and there's no way for XDP to know the existence of the vnet
header currently.
processing XDP")
If there's other place, it should be a bug.
But XDP program can modify the packets without adjusting headers.So let's just not reserve space for vnet header in this case.In any case, we can find out XDP does head adjustments
if we need to.
Thanks