From patchwork Wed Jun 14 10:16:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gowrishankar X-Patchwork-Id: 25309 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id CE8AF7CD2; Wed, 14 Jun 2017 12:17:07 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by dpdk.org (Postfix) with ESMTP id 1969D374F for ; Wed, 14 Jun 2017 12:17:05 +0200 (CEST) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v5EADaTv104031 for ; Wed, 14 Jun 2017 06:17:05 -0400 Received: from e23smtp05.au.ibm.com (e23smtp05.au.ibm.com [202.81.31.147]) by mx0a-001b2d01.pphosted.com with ESMTP id 2b32txh6aj-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 14 Jun 2017 06:17:04 -0400 Received: from localhost by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Jun 2017 20:17:00 +1000 Received: from d23relay07.au.ibm.com (202.81.31.226) by e23smtp05.au.ibm.com (202.81.31.211) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 14 Jun 2017 20:16:58 +1000 Received: from d23av06.au.ibm.com (d23av06.au.ibm.com [9.190.235.151]) by d23relay07.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v5EAGwRA63045820 for ; Wed, 14 Jun 2017 20:16:58 +1000 Received: from d23av06.au.ibm.com (localhost [127.0.0.1]) by d23av06.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v5EAGvd3009117 for ; Wed, 14 Jun 2017 20:16:57 +1000 Received: from chozha.in.ibm.com ([9.109.223.81]) by d23av06.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v5EAGumF009084; Wed, 14 Jun 2017 20:16:57 +1000 From: Gowrishankar To: Declan Doherty Cc: dev@dpdk.org, Chao Zhu , Gowrishankar Muthukrishnan Date: Wed, 14 Jun 2017 15:46:56 +0530 X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-TM-AS-MML: disable x-cbid: 17061410-0016-0000-0000-0000024E0493 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17061410-0017-0000-0000-000006CD2AE9 Message-Id: <57e42960f186632135099eb2d36ccd9d5cb67686.1497435045.git.gowrishankar.m@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-06-14_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706140174 Subject: [dpdk-dev] [PATCH] net/bonding: enable bonding pmd in ppc64le 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: Gowrishankar Muthukrishnan Earlier bonding pmd was disabled in default config for ppc64le. Same has been verified, with active-backup mode for an instance (to bond two VFs in each phy port): testpmd-bonding-cmd.txt: create bonded device 1 0 create bonded device 1 0 add bonding slave 0 4 add bonding slave 1 4 add bonding slave 2 5 add bonding slave 3 5 set bonding primary 0 4 set bonding primary 2 5 port start 4 port start 5 show bonding config 4 show bonding config 5 set portlist 4,5 ./ppc_64-power8-linuxapp-gcc/app/testpmd -l 0,8,16 -b 0002:01:00.0 -b 0002:01:00.1 --socket-mem 512,512 -- -i --cmdline-file=../testpmd-bonding-cmd.txt EAL: PCI device 0002:01:00.0 on NUMA socket 1 EAL:   Device is blacklisted, not initializing EAL: PCI device 0002:01:00.1 on NUMA socket 1 EAL:   Device is blacklisted, not initializing EAL: PCI device 0002:01:00.2 on NUMA socket 1 EAL:   probe driver: 15b3:1014 net_mlx5 PMD: net_mlx5: PCI information matches, using device "mlx5_2" (SR-IOV: true, MPS: false) PMD: net_mlx5: 1 port(s) detected PMD: net_mlx5: MPS is disabled PMD: net_mlx5: port 1 MAC address is 00:22:33:44:55:02 EAL: PCI device 0002:01:00.3 on NUMA socket 1 EAL:   probe driver: 15b3:1014 net_mlx5 PMD: net_mlx5: PCI information matches, using device "mlx5_3" (SR-IOV: true, MPS: false) PMD: net_mlx5: 1 port(s) detected PMD: net_mlx5: MPS is disabled PMD: net_mlx5: port 1 MAC address is 00:22:33:44:55:03 EAL: PCI device 0002:01:00.6 on NUMA socket 1 EAL:   probe driver: 15b3:1014 net_mlx5 PMD: net_mlx5: PCI information matches, using device "mlx5_4" (SR-IOV: true, MPS: false) PMD: net_mlx5: 1 port(s) detected PMD: net_mlx5: MPS is disabled PMD: net_mlx5: port 1 MAC address is 00:22:33:44:55:06 EAL: PCI device 0002:01:00.7 on NUMA socket 1 EAL:   probe driver: 15b3:1014 net_mlx5 PMD: net_mlx5: PCI information matches, using device "mlx5_5" (SR-IOV: true, MPS: false) PMD: net_mlx5: 1 port(s) detected PMD: net_mlx5: MPS is disabled PMD: net_mlx5: port 1 MAC address is 00:22:33:44:55:07 Interactive-mode selected CLI commands to be read from ../testpmd-bonding-cmd.txt USER1: create a new mbuf pool : n=163456, size=2176, socket=0 USER1: create a new mbuf pool : n=163456, size=2176, socket=1 Configuring Port 0 (socket 1) PMD: net_mlx5: 0x33518f80: TX queues number update: 0 -> 1 PMD: net_mlx5: 0x33518f80: RX queues number update: 0 -> 1 Port 0: 00:22:33:44:55:02 Configuring Port 1 (socket 1) PMD: net_mlx5: 0x3351d000: TX queues number update: 0 -> 1 PMD: net_mlx5: 0x3351d000: RX queues number update: 0 -> 1 Port 1: 00:22:33:44:55:03 Configuring Port 2 (socket 1) PMD: net_mlx5: 0x33521080: TX queues number update: 0 -> 1 PMD: net_mlx5: 0x33521080: RX queues number update: 0 -> 1 Port 2: 00:22:33:44:55:06 Configuring Port 3 (socket 1) PMD: net_mlx5: 0x33525100: TX queues number update: 0 -> 1 PMD: net_mlx5: 0x33525100: RX queues number update: 0 -> 1 Port 3: 00:22:33:44:55:07 Checking link statuses... Done EAL: Initializing pmd_bond for net_bond_testpmd_0 EAL: Create bonded device net_bond_testpmd_0 on port 4 in mode 1 on socket 0. Created new bonded device net_bond_testpmd_0 on (port 4). EAL: Initializing pmd_bond for net_bond_testpmd_1 EAL: Create bonded device net_bond_testpmd_1 on port 5 in mode 1 on socket 0. Created new bonded device net_bond_testpmd_1 on (port 5). Configuring Port 4 (socket 0) Port 4: LSC event Port 4: 00:22:33:44:55:02 Checking link statuses... Done Configuring Port 5 (socket 0) Port 5: LSC event Port 5: 00:22:33:44:55:06 Checking link statuses... Done     Bonding mode: 1     Slaves (2): [0 1]     Active Slaves (2): [0 1]     Primary: [0]     Bonding mode: 1     Slaves (2): [2 3]     Active Slaves (2): [2 3]     Primary: [2] previous number of forwarding ports 4 - changed to number of configured ports 2 Read CLI commands from ../testpmd-bonding-cmd.txt testpmd> start Signed-off-by: Gowrishankar Muthukrishnan --- config/defconfig_ppc_64-power8-linuxapp-gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/defconfig_ppc_64-power8-linuxapp-gcc b/config/defconfig_ppc_64-power8-linuxapp-gcc index 71e4c35..4fce585 100644 --- a/config/defconfig_ppc_64-power8-linuxapp-gcc +++ b/config/defconfig_ppc_64-power8-linuxapp-gcc @@ -51,7 +51,7 @@ CONFIG_RTE_LIBRTE_EAL_VMWARE_TSC_MAP_SUPPORT=n CONFIG_RTE_LIBRTE_IXGBE_PMD=n CONFIG_RTE_LIBRTE_VIRTIO_PMD=y CONFIG_RTE_LIBRTE_VMXNET3_PMD=n -CONFIG_RTE_LIBRTE_PMD_BOND=n +CONFIG_RTE_LIBRTE_PMD_BOND=y CONFIG_RTE_LIBRTE_ENIC_PMD=n CONFIG_RTE_LIBRTE_FM10K_PMD=n CONFIG_RTE_LIBRTE_SFC_EFX_PMD=n