From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: Re: [PATCH 1/2] net/virtio: support modern device id Date: Mon, 5 Sep 2016 14:36:46 +0800 Message-ID: <46db62d6-4f24-3f86-c22e-089442e182d2@redhat.com> References: <1472798220-7121-1-git-send-email-jasowang@redhat.com> <2323448.KHrCRZ2JeF@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, huawei.xie@intel.com, yuanhan.liu@linux.intel.com, mst@redhat.com To: Thomas Monjalon Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 0C2575595 for ; Mon, 5 Sep 2016 08:36:57 +0200 (CEST) In-Reply-To: <2323448.KHrCRZ2JeF@xps13> 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 2016年09月02日 20:57, Thomas Monjalon wrote: > 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? I think it means the device that only support virtio 1.0. > >> #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 According to the spec (5.1.1), Virtio Device id (not pci device id) is 1. > > By the way, VIRTIO_PCI_DEVICEID_MAX is not used in the code. > Yes, we can remove this. Thanks