From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 1/2] net/virtio: support modern device id Date: Fri, 02 Sep 2016 14:57:30 +0200 Message-ID: <2323448.KHrCRZ2JeF@xps13> References: <1472798220-7121-1-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, huawei.xie@intel.com, yuanhan.liu@linux.intel.com, mst@redhat.com To: Jason Wang Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 4EFCD4CE4 for ; Fri, 2 Sep 2016 14:57:32 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id v143so10818294wmv.0 for ; Fri, 02 Sep 2016 05:57:32 -0700 (PDT) In-Reply-To: <1472798220-7121-1-git-send-email-jasowang@redhat.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" 2016-09-02 14:36, Jason Wang: > Spec said "The PCI Device ID is calculated by adding 0x1040 to the > Virtio Device ID". So this patch makes pmd can recognize modern virtio > net id. Please could you describe what is a modern virtio-net? > #define VIRTIO_PCI_DEVICEID_MIN 0x1000 > #define VIRTIO_PCI_DEVICEID_MAX 0x103F > +#define VIRTIO_PCI_MODERN_DEVICEID_NET 0x1041 It doesn't match the sentence above: 1000 + 1040 = 2040 By the way, VIRTIO_PCI_DEVICEID_MAX is not used in the code.