From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v7 3/8] vhost: vring queue setup for multiple queue support Date: Tue, 20 Oct 2015 21:45:12 -0700 Message-ID: <20151020214512.09e3cebe@xeon-e3> References: <1445399294-18826-1-git-send-email-yuanhan.liu@linux.intel.com> <1445399294-18826-4-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, marcel@redhat.com, "Michael S. Tsirkin" To: Yuanhan Liu Return-path: Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by dpdk.org (Postfix) with ESMTP id 6A7568E78 for ; Wed, 21 Oct 2015 06:45:02 +0200 (CEST) Received: by pacfv9 with SMTP id fv9so44302770pac.3 for ; Tue, 20 Oct 2015 21:45:01 -0700 (PDT) In-Reply-To: <1445399294-18826-4-git-send-email-yuanhan.liu@linux.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 21 Oct 2015 11:48:09 +0800 Yuanhan Liu wrote: > struct virtio_net { > - struct vhost_virtqueue *virtqueue[VIRTIO_QNUM]; /**< Contains all virtqueue information. */ > + struct vhost_virtqueue *virtqueue[VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX]; /**< Contains all virtqueue information. */ > struct virtio_memory *mem; /**< QEMU memory and memory region information. */ Since vhost_virtqueue takes up space, why not put it at end of array, that way offsets are smaller and all the early fields will be in adjacent cache lines.