From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3E28DA2EDB for ; Thu, 5 Sep 2019 23:33:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 67C761F0A0; Thu, 5 Sep 2019 23:33:52 +0200 (CEST) Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) by dpdk.org (Postfix) with ESMTP id 215141F0A0 for ; Thu, 5 Sep 2019 23:33:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1899; q=dns/txt; s=iport; t=1567719231; x=1568928831; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=D8GGpCbRkigrholnHL+MaZAOsh4EleovBsjs8hvFY8M=; b=IBoIp2eMjn4ernMHTu5ZlnVNKkP+h00IHwu8JygwZGUOPAvotwlJXX65 MkHvEcmn3n+fJovijl2qZh85Y8QAZ+QN/cwHzYqBrZmxYCOASvjyDqEHV YVKQqvpWT61K9QPl5P8WbgDbe6eHGTmlTvBfVu8QlAhmW1nlcAZm3IeB2 Y=; X-IronPort-AV: E=Sophos;i="5.64,471,1559520000"; d="scan'208";a="623924855" Received: from rcdn-core-5.cisco.com ([173.37.93.156]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 05 Sep 2019 21:33:47 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-core-5.cisco.com (8.15.2/8.15.2) with ESMTP id x85LXkv2011766; Thu, 5 Sep 2019 21:33:46 GMT Received: by cisco.com (Postfix, from userid 392789) id 9361720F2003; Thu, 5 Sep 2019 14:33:42 -0700 (PDT) From: John Daley To: ferruh.yigit@intel.com Cc: dev@dpdk.org, John Daley , Hyong Youb Kim Date: Thu, 5 Sep 2019 14:33:17 -0700 Message-Id: <20190905213318.31799-1-johndale@cisco.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Outbound-SMTP-Client: 10.193.184.48, savbu-usnic-a.cisco.com X-Outbound-Node: rcdn-core-5.cisco.com Subject: [dpdk-dev] [PATCH 1/2] net/enic: add PCI ID for new virtual function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Probe for the PCI ID of a new mode of VF which will be added to VIC adapter firmware. When fully implemented, the new mode will operate independent of the Cisco Virtual Machine Fabric Extender (VM-FEX) and will not need to be provisioned through libvirt. The new mode is dubbed "Standalone vNic" mode or "SN" mode. Also, minor formatting changes. Signed-off-by: John Daley Reviewed-by: Hyong Youb Kim --- drivers/net/enic/enic.h | 2 ++ drivers/net/enic/enic_ethdev.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h index 5a92508f0..ff4de8898 100644 --- a/drivers/net/enic/enic.h +++ b/drivers/net/enic/enic.h @@ -42,6 +42,8 @@ #define PCI_DEVICE_ID_CISCO_VIC_ENET 0x0043 /* ethernet vnic */ #define PCI_DEVICE_ID_CISCO_VIC_ENET_VF 0x0071 /* enet SRIOV VF */ +/* enet SRIOV Standalone vNic VF */ +#define PCI_DEVICE_ID_CISCO_VIC_ENET_SN 0x02B7 /* Special Filter id for non-specific packet flagging. Don't change value */ #define ENIC_MAGIC_FILTER_ID 0xffff diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index 06dc67122..5560af151 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -28,8 +28,9 @@ int enic_pmd_logtype; */ #define CISCO_PCI_VENDOR_ID 0x1137 static const struct rte_pci_id pci_id_enic_map[] = { - { RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET) }, - { RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET_VF) }, + {RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET)}, + {RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET_VF)}, + {RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET_SN)}, {.vendor_id = 0, /* sentinel */}, }; -- 2.22.0