Skip to content
Commit 3ef2a16a authored by Heng Qi's avatar Heng Qi Committed by Greg Kroah-Hartman
Browse files

virtio_net: fixing XDP for fully checksummed packets handling



[ Upstream commit 703eec1b ]

The XDP program can't correctly handle partially checksummed
packets, but works fine with fully checksummed packets. If the
device has already validated fully checksummed packets, then
the driver doesn't need to re-validate them, saving CPU resources.

Additionally, the driver does not drop all partially checksummed
packets when VIRTIO_NET_F_GUEST_CSUM is not negotiated. This is
not a bug, as the driver has always done this.

Fixes: 436c9453 ("virtio-net: keep vnet header zeroed after processing XDP")
Signed-off-by: default avatarHeng Qi <hengqi@linux.alibaba.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ef609fd7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment