[dpdk-dev] [PATCH v2 09/12] virtio: add Rx checksum offload support
Olivier MATZ
olivier.matz at 6wind.com
Wed Oct 12 17:55:13 CEST 2016
On 10/12/2016 03:02 PM, Yuanhan Liu wrote:
> On Wed, Oct 05, 2016 at 03:27:47PM +0200, Maxime Coquelin wrote:
>>> /* Update offload features */
>>> - if (virtio_rx_offload(rxm, hdr) < 0) {
>>> + if ((features & VIRTIO_NET_F_GUEST_CSUM) &&
>> s/VIRTIO_NET_F_GUEST_CSUM/(1u << VIRTIO_NET_F_GUEST_CSUM)/
>
> There is a helper function for that: vtpci_with_feature.
Ok, will use it.
Thanks,
Olivier
More information about the dev
mailing list