From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: Re: [disscussion] A problem about dpdk backup-mode bond switching with mlx4 VF devices Date: Tue, 17 Apr 2018 12:07:31 +0200 Message-ID: <20180417100731.GF4957@6wind.com> References: <859E1CB9FBF08C4B839DCF451B09C5032E01348F@dggeml509-mbx.china.huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" , "nelio.laranjeiro@6wind.com" , "Zhoujingbin (Robin, Cloud Networking)" , "Zhoulei (G)" , yangleyuan To: chenchanghu Return-path: Received: from mail-wr0-f181.google.com (mail-wr0-f181.google.com [209.85.128.181]) by dpdk.org (Postfix) with ESMTP id EA63E8E6D for ; Tue, 17 Apr 2018 12:07:45 +0200 (CEST) Received: by mail-wr0-f181.google.com with SMTP id q13so30413181wre.3 for ; Tue, 17 Apr 2018 03:07:45 -0700 (PDT) Content-Disposition: inline In-Reply-To: <859E1CB9FBF08C4B839DCF451B09C5032E01348F@dggeml509-mbx.china.huawei.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Apr 17, 2018 at 06:40:20AM +0000, chenchanghu wrote: > > Hi, > When I used the mlx4 pmd, I meet a problem about mlx4 VF bond switching 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 device. > 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 maintenance interface one time in all 20 test times. > > 3.Question: > Is the VF up or down State of kernel interface has some relations to user-space state? For example, when ifconfig eth7 down, and the user-space will change to down state too. Yes, this is expected. Netdevices and the mlx4 DPDK PMD share a common link status. Bringing a netdevice down causes link status to be down for all its users. This behavior is documented [1]. [1] http://dpdk.org/doc/guides/nics/mlx4.html#run-time-configuration -- Adrien Mazarguil 6WIND