From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from huawei.com (szxga02-in.huawei.com [45.249.212.188]) by dpdk.org (Postfix) with ESMTP id 0487DAAC0 for ; Tue, 17 Apr 2018 08:40:50 +0200 (CEST) Received: from DGGEML401-HUB.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id 332ADCDFBE0E5; Tue, 17 Apr 2018 14:40:46 +0800 (CST) Received: from DGGEML509-MBX.china.huawei.com ([169.254.1.158]) by DGGEML401-HUB.china.huawei.com ([fe80::89ed:853e:30a9:2a79%31]) with mapi id 14.03.0361.001; Tue, 17 Apr 2018 14:40:19 +0800 From: chenchanghu To: "dev@dpdk.org" , "adrien.mazarguil@6wind.com" , "nelio.laranjeiro@6wind.com" CC: "Zhoujingbin (Robin, Cloud Networking)" , "Zhoulei (G)" , yangleyuan Thread-Topic: [disscussion] A problem about dpdk backup-mode bond switching with mlx4 VF devices Thread-Index: AdPWFtnFHPu6MfdFRoCqMELMZvzyXA== Date: Tue, 17 Apr 2018 06:40:20 +0000 Message-ID: <859E1CB9FBF08C4B839DCF451B09C5032E01348F@dggeml509-mbx.china.huawei.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.244.234] MIME-Version: 1.0 X-CFilter-Loop: Reflected Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [disscussion] A problem about dpdk backup-mode bond switching with mlx4 VF devices 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: , X-List-Received-Date: Tue, 17 Apr 2018 06:40:51 -0000 Hi, When I used the mlx4 pmd, I meet a problem about mlx4 VF bond swit= ching which bond mod is backup-mode . The detail test is descripted below. 1.Test environmemt infomation: a. Linux distribution: CentOS b. dpdk version: dpdk-16.04 c. Ethernet device : mlx4 VF d. pmd info: mlx4 poll-mode-driver 2.Test step: a. we bond the mlx4 VF Ethernet device eth7,eth8 into backup-mode by dpdk= application. Eth7 and eth8 are both active, and eth7 is the primary devic= e. b. As we know, the device eth7 , eth8 are also visible by kernel driver= mlx4_en. c. Then we config the Ethernet device eth7 down by the command ' ifconfig= eth7 down', the expect result is the bond primary device will not switch. d. However we find the dpdk bond primary device switch to eth8 by dpdk ma= intenance interface one time in all 20 test times. 3.Question: Is the VF up or down State of kernel interface has some relations to use= r-space state? For example, when ifconfig eth7 down, and the user-space wil= l change to down state too. Please send your reply to chenchanghu@huawei.com, any suggestion is to be greatefully appreciated.