From patchwork Tue Jan 28 13:31:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kanas X-Patchwork-Id: 65230 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C878CA04B3; Tue, 28 Jan 2020 14:31:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8134B1C2A2; Tue, 28 Jan 2020 14:31:54 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 40F201C29D for ; Tue, 28 Jan 2020 14:31:53 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00SDVqPO010706; Tue, 28 Jan 2020 05:31:52 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=73e4v8UtdRch+lMSBskIVfLL05IeOrrh0AC9aGS04EY=; b=flpNx5tvIz+aDhUxewd5vQ49b2KPwcR+UgDfOSauPLRkiXUpiPNEXDkPi+oKE30A/QVX AmxZuxVpxvavBwjcarejqtlmXGInAd81MC97NWsrHzxy380PiEOjQykFaxO//dQplEAZ k6ailwwfc4v7G2KrtyZXq3+PwYyOy5eHx2sUEghY9LMURMVjVUeyoae54UJXiD4thpnC 7ZCytMSLO70QAy2t0Jb0zjj51Yjh4roMOX5VAfN+3XrdhdjidwG686EvcUtlDCbTlRGr W7M9eREwD+C6NO+W4ZUaW7YCAsOuPgH04Jp3j7Yv7bks/bvmZ82zBBauVnSDfYw/iNyx kQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2xrp2t46wx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 28 Jan 2020 05:31:52 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 28 Jan 2020 05:31:50 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 28 Jan 2020 05:31:50 -0800 Received: from kk-box-0.marvell.com (unknown [10.95.130.17]) by maili.marvell.com (Postfix) with ESMTP id 951E23F7040; Tue, 28 Jan 2020 05:31:48 -0800 (PST) From: To: , Jerin Jacob , Maciej Czekaj , John McNamara , "Marko Kovacevic" CC: Krzysztof Kanas Date: Tue, 28 Jan 2020 14:31:47 +0100 Message-ID: <20200128133147.16500-1-kkanas@marvell.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-28_03:2020-01-28, 2020-01-28 signatures=0 Subject: [dpdk-dev] [PATCH] doc: thunderx: explain which PCI is secondary VF 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" From: Krzysztof Kanas Thunderx-nic uses secondary VF's to provide more queues to DPDK. Current instructions explain the concept but don't show easy way to find which PCI id is primary and which is secondary VF's. Signed-off-by: Krzysztof Kanas Acked-by: Jerin Jacob --- doc/guides/nics/thunderx.rst | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/doc/guides/nics/thunderx.rst b/doc/guides/nics/thunderx.rst index 3b75a9a9afb5..fd66bda36ae4 100644 --- a/doc/guides/nics/thunderx.rst +++ b/doc/guides/nics/thunderx.rst @@ -313,6 +313,54 @@ We will choose four secondary queue sets from the ending of the list (0002:01:01 The nicvf thunderx driver will make use of attached secondary VFs automatically during the interface configuration stage. +driver thunder-nic VF's +~~~~~~~~~~~~~~~~~~~~~~~ + +To distinguish thunder-nic primary VFs and secondary VFs you can use sysfs + .. code-block:: console + ll /sys/bus/pci/drivers/thunder-nic/ + total 0 + drwxr-xr-x 2 root root 0 Jan 22 11:19 ./ + drwxr-xr-x 86 root root 0 Jan 22 11:07 ../ + lrwxrwxrwx 1 root root 0 Jan 22 11:19 0001:01:00.0 -> '../../../../devices/platform/soc@0/849000000000.pci/pci0001:00/0001:00:10.0/0001:01:00.0'/ + + cat /sys/bus/pci/drivers/thunder-nic/0001\:01\:00.0/sriov_sqs_assignment + 12 + 0 0001:01:00.1 vfio-pci +: 12 13 + 1 0001:01:00.2 thunder-nicvf -: + 2 0001:01:00.3 thunder-nicvf -: + 3 0001:01:00.4 thunder-nicvf -: + 4 0001:01:00.5 thunder-nicvf -: + 5 0001:01:00.6 thunder-nicvf -: + 6 0001:01:00.7 thunder-nicvf -: + 7 0001:01:01.0 thunder-nicvf -: + 8 0001:01:01.1 thunder-nicvf -: + 9 0001:01:01.2 thunder-nicvf -: + 10 0001:01:01.3 thunder-nicvf -: + 11 0001:01:01.4 thunder-nicvf -: + 12 0001:01:01.5 vfio-pci: 0 + 13 0001:01:01.6 vfio-pci: 0 + 14 0001:01:01.7 thunder-nicvf: 255 + 15 0001:01:02.0 thunder-nicvf: 255 + 16 0001:01:02.1 thunder-nicvf: 255 + 17 0001:01:02.2 thunder-nicvf: 255 + 18 0001:01:02.3 thunder-nicvf: 255 + 19 0001:01:02.4 thunder-nicvf: 255 + 20 0001:01:02.5 thunder-nicvf: 255 + 21 0001:01:02.6 thunder-nicvf: 255 + 22 0001:01:02.7 thunder-nicvf: 255 + 23 0001:01:03.0 thunder-nicvf: 255 + 24 0001:01:03.1 thunder-nicvf: 255 + 25 0001:01:03.2 thunder-nicvf: 255 + 26 0001:01:03.3 thunder-nicvf: 255 + 27 0001:01:03.4 thunder-nicvf: 255 + 28 0001:01:03.5 thunder-nicvf: 255 + 29 0001:01:03.6 thunder-nicvf: 255 + 30 0001:01:03.7 thunder-nicvf: 255 + 31 0001:01:04.0 thunder-nicvf: 255 + +Every column that ends with 'thunder-nicvf: number' can be used as secondary VF. +In printout above all entres after '14 0001:01:01.7 thunder-nicvf: 255' can be used as secondary VF. Module params --------------