[dpdk-dev] [PATCH v4 7/7] virtio: pick simple rx/tx func

2015-10-23 Thread Xie, Huawei
On 10/23/2015 12:59 AM, Stephen Hemminger wrote: > On Thu, 22 Oct 2015 20:09:51 +0800 > Huawei Xie wrote: > >> +/* Use simple rx/tx func if single segment and no offloads */ >> +if ((tx_conf->txq_flags & VIRTIO_SIMPLE_FLAGS) == VIRTIO_SIMPLE_FLAGS && >> + !vtpci_with_feature(hw, VI

[dpdk-dev] [PATCH v4 7/7] virtio: pick simple rx/tx func

2015-10-22 Thread Huawei Xie
Changes in v4: Check merge-able feature when select simple rx/tx functions. simple rx/tx func is chose when merge-able rx is disabled and user specifies single segment and no offload support. Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_rxtx.c | 15 +++ 1 file changed, 1

[dpdk-dev] [PATCH v4 7/7] virtio: pick simple rx/tx func

2015-10-22 Thread Stephen Hemminger
On Thu, 22 Oct 2015 20:09:51 +0800 Huawei Xie wrote: > + /* Use simple rx/tx func if single segment and no offloads */ > + if ((tx_conf->txq_flags & VIRTIO_SIMPLE_FLAGS) == VIRTIO_SIMPLE_FLAGS && > + !vtpci_with_feature(hw, VIRTIO_NET_F_MRG_RXBUF)) Since with QEMU/KVM the code w