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 8D415A04C0; Fri, 25 Sep 2020 13:55:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1B9A41E90C; Fri, 25 Sep 2020 13:55:39 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id C45A61E882 for ; Fri, 25 Sep 2020 13:55:37 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08PBntwR022588; Fri, 25 Sep 2020 04:55:36 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding; s=pfpt0220; bh=KwBYt4ITAw0C/L4Sx2jFz00kGouPQrDA3nVHbtNii58=; b=Xf9rEzge599rJb8/oAekR4VIrO43ku+ldotEd69STaj0Earu71gixmZwIgne1Sc90wnJ 1EVsvdNEf0qcISof8bVSxQq6EghNRG76i96Lo/TjiH25vO6cBS1XrcCmkGZUGTYKi5zw McQjZeqaNrTGiPog9O2GjwmJ656PwP0L/XPMHQ4jROtrpYBBxQP5RV1VZo213rHwqmCm oLRBMHqUnpdZRYf5efJwroRuQL+kd64oEamAS9lve1z6nswXqttrS4ypqg+yxYkQCTal l42YgtG1Fz8b+YlC/OrpE2nd9txXtuLuJXZYIRapeCP0YHk6aHpQ8l/rFU3zfHQVjqxZ gg== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 33nfbqb0dk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 25 Sep 2020 04:55:36 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 25 Sep 2020 04:55:35 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 25 Sep 2020 04:55:35 -0700 Received: from dut1171.mv.qlogic.com (unknown [10.112.88.18]) by maili.marvell.com (Postfix) with ESMTP id B08353F7040; Fri, 25 Sep 2020 04:55:35 -0700 (PDT) Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id 08PBtZPV004224; Fri, 25 Sep 2020 04:55:35 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id 08PBtYSp004215; Fri, 25 Sep 2020 04:55:34 -0700 From: Manish Chopra To: , , , CC: , , , , , , , , Date: Fri, 25 Sep 2020 04:55:02 -0700 Message-ID: <20200925115508.4179-1-manishc@marvell.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-25_08:2020-09-24, 2020-09-25 signatures=0 Subject: [dpdk-dev] [PATCH v6 0/6] qede: SR-IOV PF driver support 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" Hi, This series adds SR-IOV PF pmd driver support to have VF pmd driver work over PF pmd driver instances in order to run the adapter completely under DPDK environment for one of the use cases like ovs-dpdk. This is very initial bring-up with following testing covered - * Enable/Disable SR-IOV VFs through igb_uio sysfs hook. * Load VFs, run fastpath, teardown VFs in hypervisor and guest VM. * VF FLR flow (in case of VF PCI passthrough to the guest VM) * Bulletin mechanism tested to communicate link changes to the VFs. Note that this series is intended for upcoming DPDK release (20.11) Please consider applying this series to dpdk-next-net-mrvl.git V5->V6: ======= * Re-based it on latest dpdk-next-net-mrvl.git (driver/net/qede/Makefile change removed from patch #3, file no longer exist) * Added Reviewed-by tag and renamed rte_pci_find_next_ext_capability to rte_pci_find_ext_capability as per comment from Nithin Kumar Dabilpuram V4->V5: ======= * drivers/raw/ifpga was escaped to compile, test-robot reported below build failure which is fixed within patch #1 in this series. 'drivers/drivers@@tmp_rte_rawdev_ifpga@sta/raw_ifpga_ifpga_rawdev.c.o' -c ../drivers/raw/ifpga/ifpga_rawdev.c ../drivers/raw/ifpga/ifpga_rawdev.c: In function ‘ifpga_pci_find_next_ext_capability’: ../drivers/raw/ifpga/ifpga_rawdev.c:166:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (RTE_PCI_EXT_CAP_ID(header) == cap && pos != start) ^~ cc1: all warnings being treated as errors V3->V4: ======= * Fixed meson/ninja build failure for AMD arch. * Incorporated cosmetic changes pointed by Gaetan. V2->V3: ======= * Instead of adding complete pci_regs.h file from linux, define handful PCI symbols (prefixed with RTE_) in dpdk which are required to implement generic rte_pci_find_next_ext_capability() API (patch #1) and to enable various other qede driver's OSAL_* defines (patch #2) (essentially, removed the patch #1 in v2) * Fixed meson/ninja compilation issues reported * Incorporated comments by Gaetan for rte_pci_find_next_ext_capability() V1->V2: (Incorporated comments from Jerin Jacob) ================================================ * Added rte_pci_regs.h file (copy of linux/pci_regs.h) under lib/librte_pci to remove the dependency of dpdk on user headers * Added generic API to find PCI extended capability and use that in the drivers, removed individual functions implemented by the drivers Thanks, Manish Manish Chopra (6): drivers: add generic API to find PCI extended cap net/qede: define PCI config space specific osals net/qede: configure VFs on hardware net/qede: add infrastructure support for VF load net/qede: initialize VF MAC and link net/qede: add VF FLR support doc/guides/nics/features/qede.ini | 1 + doc/guides/nics/qede.rst | 7 +- drivers/bus/pci/pci_common.c | 43 ++++ drivers/bus/pci/rte_bus_pci.h | 19 ++ drivers/bus/pci/rte_bus_pci_version.map | 6 + drivers/net/ice/ice_ethdev.c | 51 +---- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 48 +---- drivers/net/qede/base/bcm_osal.c | 31 +++ drivers/net/qede/base/bcm_osal.h | 29 ++- drivers/net/qede/base/ecore.h | 7 + drivers/net/qede/base/ecore_dev.c | 6 +- drivers/net/qede/base/ecore_iov_api.h | 3 + drivers/net/qede/base/ecore_sriov.c | 28 +-- drivers/net/qede/base/meson.build | 2 +- drivers/net/qede/meson.build | 1 + drivers/net/qede/qede_ethdev.c | 37 +++- drivers/net/qede/qede_ethdev.h | 1 + drivers/net/qede/qede_if.h | 1 + drivers/net/qede/qede_main.c | 12 +- drivers/net/qede/qede_sriov.c | 219 +++++++++++++++++++++ drivers/net/qede/qede_sriov.h | 22 +++ drivers/raw/ifpga/ifpga_rawdev.c | 17 +- lib/librte_pci/rte_pci.h | 35 ++++ 23 files changed, 485 insertions(+), 141 deletions(-) create mode 100644 drivers/net/qede/qede_sriov.c create mode 100644 drivers/net/qede/qede_sriov.h -- 2.17.1