diff options
author | Jason Wang <jasowang@redhat.com> | 2018-11-22 09:36:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-23 22:59:40 +0300 |
commit | e59ff2c49ae16e1d179de679aca81405829aee6c (patch) | |
tree | d0da9016181e1806fc2efcca0c0a3b89c2fa9c1e /drivers/net/ethernet/alteon | |
parent | 484afd1bd3fc6f9f5347289fc8b285aa65f67054 (diff) | |
download | linux-e59ff2c49ae16e1d179de679aca81405829aee6c.tar.xz |
virtio-net: disable guest csum during XDP set
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 pass such metadata information through
XDP_REDIRECT to another driver.
- XDP does not support checksum offload right now.
So simply disable guest csum if possible in this the case of XDP.
Fixes: 3f93522ffab2d ("virtio-net: switch off offloads on demand if possible on XDP set")
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>
Diffstat (limited to 'drivers/net/ethernet/alteon')
0 files changed, 0 insertions, 0 deletions