On Tue, Mar 01, 2016 at 11:40:41AM +0530, Santosh Shukla wrote: > On Tue, Mar 1, 2016 at 11:25 AM, Yuanhan Liu > <yuanhan.liu at linux.intel.com> wrote: > > On Mon, Feb 29, 2016 at 06:01:38PM +0530, Santosh Shukla wrote: > >> On Mon, Feb 29, 2016 at 9:57 AM, Yuanhan Liu > >> <yuanhan.liu at linux.intel.com> wrote: > >> > On Fri, Feb 26, 2016 at 02:21:02PM +0530, Santosh Shukla wrote: > >> >> Check cpuflag macro before using vectored api. > >> >> -virtio_recv_pkts_vec() uses _sse3__ simd instruction for now so added > >> >> cpuflag. > >> >> - Also wrap other vectored freind api ie.. > >> >> 1) virtqueue_enqueue_recv_refill_simple > >> >> 2) virtio_rxq_vec_setup > >> >> > >> > ... > >> >> diff --git a/drivers/net/virtio/virtio_rxtx_simple.c > >> >> b/drivers/net/virtio/virtio_rxtx_simple.c > >> >> index 3a1de9d..be51d7c 100644 > >> >> --- a/drivers/net/virtio/virtio_rxtx_simple.c > >> >> +++ b/drivers/net/virtio/virtio_rxtx_simple.c > >> > > >> > Hmm, why not wrapping the whole file, instead of just few functions? > >> > > >> > >> Better to refactor code and make arch specific. Current implementation > >> is temporary. > > > > I'm okay to refactor, if it's a clean one. But moving virtio __driver__ > > stuff to EAL, sorry, it still doesn't make too much sense to me. > > > > You misunderstood my comment, my arch specific meaning > driver/net/virtio/virtio_vec_<arch>.h
Oh, sorry. Then, yes, that's the way to go, if refactor is really needed. --yliu