Re: [PATCH net 1/2] virtio-net: disable guest csum during XDP set

2018-11-25 Thread Jason Wang
On 2018/11/24 上午4:01, David Miller wrote: From: Jason Wang Date: Thu, 22 Nov 2018 14:36:30 +0800 We don't disable VIRTIO_NET_F_GUEST_CSUM if XDP was set. This means we can receive partial csumed packets with metadata kept in the vnet_hdr. This may have several side effects: - It could be ove

Re: [PATCH net 1/2] virtio-net: disable guest csum during XDP set

2018-11-24 Thread David Miller
From: Jason Wang Date: Thu, 22 Nov 2018 14:36:30 +0800 > We don't disable VIRTIO_NET_F_GUEST_CSUM if XDP was set. This means we > can receive partial csumed packets with metadata kept in the > vnet_hdr. This may have several side effects: > > - It could be overridden by header adjustment, thus i

[PATCH net 1/2] virtio-net: disable guest csum during XDP set

2018-11-22 Thread Jason Wang
We don't disable VIRTIO_NET_F_GUEST_CSUM if XDP was set. This means we can receive partial csumed packets with metadata kept in the vnet_hdr. This may have several side effects: - It could be overridden by header adjustment, thus is might be not correct after XDP processing. - There's no way to