[dpdk-dev] [PATCH v2 09/12] virtio: add Rx checksum offload support
Yuanhan Liu
yuanhan.liu at linux.intel.com
Wed Oct 12 15:02:37 CEST 2016
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.
--yliu
More information about the dev
mailing list