From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id B6A51FFA for ; Thu, 7 May 2015 11:23:34 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 07 May 2015 02:23:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,384,1427785200"; d="scan'208";a="567662942" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.85]) by orsmga003.jf.intel.com with SMTP; 07 May 2015 02:23:32 -0700 Received: by (sSMTP sendmail emulation); Thu, 07 May 2015 10:23:30 +0025 Date: Thu, 7 May 2015 10:23:30 +0100 From: Bruce Richardson To: Sujith Sankar Message-ID: <20150507092330.GA5992@bricha3-MOBL3> References: <1430970549-14965-1-git-send-email-ssujith@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1430970549-14965-1-git-send-email-ssujith@cisco.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] enic: add support for enic in nic_uio driver for FreeBSD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2015 09:23:36 -0000 On Thu, May 07, 2015 at 09:19:09AM +0530, Sujith Sankar wrote: > This patch adds support for enic in the nic_uio driver so that enic could be used on FreeBSD. > > Signed-off-by: Sujith Sankar Acked-by: Bruce Richardson > --- > lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 1 + > lib/librte_eal/common/include/rte_pci_dev_ids.h | 17 +++++++++++++++++ > 2 files changed, 18 insertions(+) > > diff --git a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c > index 5ae8560..e649e32 100644 > --- a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c > +++ b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c > @@ -113,6 +113,7 @@ struct pci_bdf { > #define RTE_PCI_DEV_ID_DECL_I40EVF(vend, dev) {vend, dev}, > #define RTE_PCI_DEV_ID_DECL_VIRTIO(vend, dev) {vend, dev}, > #define RTE_PCI_DEV_ID_DECL_VMXNET3(vend, dev) {vend, dev}, > +#define RTE_PCI_DEV_ID_DECL_ENIC(vend, dev) {vend, dev}, > > const struct device devices[] = { > #include > diff --git a/lib/librte_eal/common/include/rte_pci_dev_ids.h b/lib/librte_eal/common/include/rte_pci_dev_ids.h > index 21d2eed..5d1b285 100644 > --- a/lib/librte_eal/common/include/rte_pci_dev_ids.h > +++ b/lib/librte_eal/common/include/rte_pci_dev_ids.h > @@ -140,6 +140,10 @@ > #define RTE_PCI_DEV_ID_DECL_FM10KVF(vend, dev) > #endif > > +#ifndef RTE_PCI_DEV_ID_DECL_ENIC > +#define RTE_PCI_DEV_ID_DECL_ENIC(vend, dev) > +#endif > + > #ifndef PCI_VENDOR_ID_INTEL > /** Vendor ID used by Intel devices */ > #define PCI_VENDOR_ID_INTEL 0x8086 > @@ -155,6 +159,11 @@ > #define PCI_VENDOR_ID_VMWARE 0x15AD > #endif > > +#ifndef PCI_VENDOR_ID_CISCO > +/** Vendor ID used by Cisco VIC devices */ > +#define PCI_VENDOR_ID_CISCO 0x1137 > +#endif > + > /******************** Physical EM devices from e1000_hw.h ********************/ > > #define E1000_DEV_ID_82542 0x1000 > @@ -548,6 +557,14 @@ RTE_PCI_DEV_ID_DECL_VMXNET3(PCI_VENDOR_ID_VMWARE, VMWARE_DEV_ID_VMXNET3) > > RTE_PCI_DEV_ID_DECL_FM10KVF(PCI_VENDOR_ID_INTEL, FM10K_DEV_ID_VF) > > +/****************** Cisco VIC devices ******************/ > + > +#define PCI_DEVICE_ID_CISCO_VIC_ENET 0x0043 /* ethernet vnic */ > +#define PCI_DEVICE_ID_CISCO_VIC_ENET_VF 0x0071 /* enet SRIOV VF */ > + > +RTE_PCI_DEV_ID_DECL_ENIC(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET) > +RTE_PCI_DEV_ID_DECL_ENIC(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_VF) > + > /* > * Undef all RTE_PCI_DEV_ID_DECL_* here. > */ > -- > 1.9.1 >