Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp291719imu; Fri, 7 Dec 2018 00:51:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/VmEWZ2OYl2G+Hx6GgtouJmShLIveXpeK2YyTJtF0rnFQrazDF75266DoKSpcR8MzOY0iHw X-Received: by 2002:a62:7796:: with SMTP id s144mr1406596pfc.26.1544172712549; Fri, 07 Dec 2018 00:51:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544172712; cv=none; d=google.com; s=arc-20160816; b=XzIurqsutiVzh8e0OfCkyoff+aycQfbPOsIZr0i4qtLCxbtrQHWCT0Lq5lmsB6Q0ew JONYfh0zs4LmjZRbdnW4wDujylgsiMkDvh1bm7WnSp9APRlHDlZvq5sh7Dw2X56ATd/8 FY8zABvIPjT/bFZ2B/Z3W+5He3bPV6sFZ1KDRozol+NC4YEHORv1MTtfekkuHY63zHZp 1kOHKh4Lwt7u4i3KT7aKrcoI+D6yMda8NraRpAdI1cv2g3KJHlldGOmjkUdjd79XSwxu aZKCbFnBYZwE9/aK55YmOoniymL88SYJWWfOevTK76+8za15ZyiCLeSwsccVBIpSoeYQ ETFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=xiAETeANHzq+QTJd5AyYqOrz3RRT5M0V3HQnM3vNFas=; b=MBqK2L5FFBrpX//XS+XFTSKLJXiw1OMHMRZI5uCSxBC50P4lB0dclJuEmR9WnJf/Hk ksH0+4uL/6nHX0peCydF+pCdKoP1MH61oG7S/CEd8tWQ067XVLd0Jejs9BfOV7cGQ7iV NvtIIRLwjs/GTNDoSUSOKqWJYusxlknVrBx6qIdm70dgN/1Jg0SAeIQM6Js4+U6mIci1 rMb/E+fzPHKxAUCHEHz06Q/XJcPj0SKe55g25e2N5Mt2H20HBDD2zzHWgYde3+qdvdIa vpCeWcsZ6tNAQlluwoyhET77HuSM/dxhePdid3Vp+y84UPhe+xsUFysAyNJpSEGtVr+T P0Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h20si2402120pgm.366.2018.12.07.00.51.37; Fri, 07 Dec 2018 00:51:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726027AbeLGIvA (ORCPT + 99 others); Fri, 7 Dec 2018 03:51:00 -0500 Received: from mga18.intel.com ([134.134.136.126]:1705 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbeLGIvA (ORCPT ); Fri, 7 Dec 2018 03:51:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Dec 2018 00:50:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,324,1539673200"; d="scan'208";a="96888321" Received: from btwcube1.sh.intel.com ([10.67.104.173]) by orsmga007.jf.intel.com with ESMTP; 07 Dec 2018 00:50:57 -0800 From: Tiwei Bie To: mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, virtio-dev@lists.oasis-open.org Cc: wexu@redhat.com, jfreimann@redhat.com, maxime.coquelin@redhat.com, tiwei.bie@intel.com Subject: [RFC 0/3] virtio_ring: define flags as shifts consistently Date: Fri, 7 Dec 2018 16:48:39 +0800 Message-Id: <20181207084842.13133-1-tiwei.bie@intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a follow up of the discussion in this thread: https://patchwork.ozlabs.org/patch/1001015/#2042353 Tiwei Bie (3): virtio_ring: define flags as shifts consistently virtio_ring: add VIRTIO_RING_NO_LEGACY virtio_ring: use new vring flags drivers/virtio/virtio_ring.c | 100 ++++++++++++++++++------------- include/uapi/linux/virtio_ring.h | 61 +++++++++++++------ 2 files changed, 103 insertions(+), 58 deletions(-) -- 2.17.1