net/virtio: fix Rx handler when checksum is requested
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 7 Sep 2017 12:13:47 +0000 (14:13 +0200)
committerYuanhan Liu <yliu@fridaylinux.org>
Tue, 10 Oct 2017 13:52:27 +0000 (15:52 +0200)
commit16e48c9ed71d2160ccd7ade231b386638613fc82
tree004776a37135300ed074c17771c2317d6cd48196
parent0964936308cdbe7a22927f8aee558e746a23d730
net/virtio: fix Rx handler when checksum is requested

The simple Rx handler is selected even if Rx checksum offload is
requested by the application, but this handler does not support
offloads. This results in broken received packets (no checksum flag but
invalid checksum in the mbuf data).

Disable the simple Rx handler in that case.

Fixes: 96cb6711939e ("net/virtio: support Rx checksum offload")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
drivers/net/virtio/virtio_ethdev.c