virtio-net: fail XDP set if guest csum is negotiated

We don't support partial csumed packet since its metadata will be lost
or incorrect during XDP processing. So fail the XDP set if guest_csum
feature is negotiated.

Fixes: f600b6905015 ("virtio_net: Add XDP support")
Reported-by: Jesper Dangaard Brouer <>
Cc: Jesper Dangaard Brouer <>
Cc: Pavel Popa <>
Cc: David Ahern <>
Signed-off-by: Jason Wang <>
Signed-off-by: David S. Miller <>
1 file changed