virtio-net: fail XDP set if guest csum is negotiated
authorJason Wang <jasowang@redhat.com>
Thu, 22 Nov 2018 06:36:31 +0000 (14:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Nov 2018 19:59:40 +0000 (11:59 -0800)
commit18ba58e1c234ea1a2d9835ac8c1735d965ce4640
treea6d6ca875bf06a4d3213108dbaddbcdee5c18f63
parente59ff2c49ae16e1d179de679aca81405829aee6c
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 <brouer@redhat.com>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>
Cc: Pavel Popa <pashinho1990@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c