Olivier Matz c1e55ed3f7 net/virtio: fix advertised Rx offload capabilities
When the virtio PMD is used on top of a vhost that does not support
offloads, Rx offload capabilities are still advertised by
virtio_dev_info_get(). But if an application tries to start the PMD with
Rx offloads enabled (rxmode.hw_ip_checksum = 1), the initialization of
the device will fail with -ENOTSUP and the following log:

  rx ip checksum not available on this host

This patch fixes the Rx offload capabilities returned by
virtio_dev_info_get() to be consistent with features advertised by the
host.

Fixes: 96cb6711939e ("net/virtio: support Rx checksum offload")
Fixes: 86d59b21468a ("net/virtio: support LRO")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2017-01-17 12:06:24 +01:00
..
2016-12-25 23:30:19 +01:00
2016-12-25 23:30:19 +01:00
2017-01-04 20:40:26 +01:00
2016-12-25 23:30:19 +01:00
2017-01-15 19:16:37 +01:00
2017-01-04 21:17:32 +01:00
2017-01-04 21:17:32 +01:00
2016-12-25 23:30:19 +01:00
2016-12-25 23:30:19 +01:00
2016-06-20 17:21:54 +02:00