From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bgl-iport-1.cisco.com (bgl-iport-1.cisco.com [72.163.197.25]) by dpdk.org (Postfix) with ESMTP id 3428412A8 for ; Wed, 6 May 2015 11:13:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2352; q=dns/txt; s=iport; t=1430903601; x=1432113201; h=from:to:cc:subject:date:message-id; bh=kv+A4M4YycROklAgF5tG2+DufLB3UIwpQlDQmdCWp0c=; b=ftpiOEk8K999VMtfabDlbYH5ymrFU+tpnTnBFq15kX9hyWwgPaE+Rm2/ AHjhVxG3bqBubuLspLSDT1KeHyI/sBS432Zcvrs7zUQ8etn1OcSXuSkrV RFeFdm8clpxbA5OC1aypZwjC6mqeFY5jZOaXa6T9aV6Hj2xts8HsCs6qR U=; X-IronPort-AV: E=Sophos;i="5.13,378,1427760000"; d="scan'208";a="51791149" Received: from vla196-nat.cisco.com (HELO bgl-core-2.cisco.com) ([72.163.197.24]) by bgl-iport-1.cisco.com with ESMTP; 06 May 2015 09:13:19 +0000 Received: from localhost ([10.106.186.168]) (authenticated bits=0) by bgl-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id t469DFPh007944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 6 May 2015 09:13:18 GMT From: Sujith Sankar To: dev@dpdk.org Date: Wed, 6 May 2015 14:41:00 +0530 Message-Id: <1430903460-5480-1-git-send-email-ssujith@cisco.com> X-Mailer: git-send-email 1.9.1 X-Authenticated-User: ssujith@cisco.com Subject: [dpdk-dev] [PATCH] enicpmd: build changes 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: Wed, 06 May 2015 09:13:20 -0000 This patch adds the changes required to build enic for FreeBSD Signed-off-by: Sujith Sankar --- 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