From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 7C1B034F0 for ; Wed, 28 Mar 2018 14:49:14 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id b127so3875665wmf.5 for ; Wed, 28 Mar 2018 05:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=tTDN50ALgCbcozE5q1Ck8nWn/mnRSAu7HgDeXHXfIfc=; b=gK/rAgL3Z0+ma1WUshsvUCtJmlPybvhCeCX0+cK0ObWcKMlBLIBnaDv+pH8NDhkddo fXnyttcS5AxckHGbglgk2CdWQ5KNAH0ZVqGuNRqjurqyn/UBhlmxcyOg/OKcMRjwcHVv HlseSsnMJqaoook07nqhWrXzu1B2xoi/CW7mR6uwB2c1W5kGPL6GnjOW3aPmPmCkXH14 RdhkA8v0P4vyzXA1HvtU6/co93+Y+RxKfAb/twx+2/CTvSZaMyDLf1ALBw9oMVQ8EQuc ghgumFEbTEv5wRIVQIjv7gB5wALui+mHK2OOk7j5+tDdgA+HljcbBSZuIGzIpJ7r9ac3 GEqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=tTDN50ALgCbcozE5q1Ck8nWn/mnRSAu7HgDeXHXfIfc=; b=TUbJJFVnjhwESZ2oIAxkXNEIf8eZyMfkXK8+UCrJRHDislYyT2DHBEMGQRgSzKJxTL aYDMgNE0HADQmLBnkw8J/3IIHhD94ImEE978pUHvASvSJAEIxSgezqd6nG8LD6ed/Uvg 5eUIq4HrsZ5dKjE9HETI9ishAC1yrehSaNZ/4XG6K8k5LDjKSbrSM+quTSKLgiAzKi9i DMKWRE/x2xJBdeccvOJU+FfSMXt0EI+0T6xaCnvs7CoUbAMSArbK8/yISuajgf03UMyW g+zVSSLALCE30xrTb/NQBp1IaiE11CNMd/5uwniB+dNGssSGV29mbvH+4rizLYxxu96V Mb/w== X-Gm-Message-State: AElRT7HWieXq5bNWygYkQGeBnqJoENugAQvfDO6jW8gYnvCZgUGpz1Yi Xdw8Wnk1VkZuUDDVrpfZPDxQW7Fn+w== X-Google-Smtp-Source: AIpwx4+CHNxroYFfDAc2lpON+7jAkYSOpsSSP35m8TY/V4bI9xXHYzcGo6iH0d46EvpTo6FPqnr5uQ== X-Received: by 10.28.196.79 with SMTP id u76mr2522975wmf.102.1522241354069; Wed, 28 Mar 2018 05:49:14 -0700 (PDT) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id m35sm7231124wrm.59.2018.03.28.05.49.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Mar 2018 05:49:13 -0700 (PDT) Date: Wed, 28 Mar 2018 14:49:02 +0200 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro To: Sam Cc: dev@dpdk.org Message-ID: <20180328124902.jhbwpax4ufx7yslp@laranjeiro-vm.dev.6wind.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] Under Ovs-2.8.0 + DPDK-17.05-rc1, can't add port which using mlx5 driver onto bridge br0 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: Wed, 28 Mar 2018 12:49:14 -0000 On Wed, Mar 28, 2018 at 08:20:00PM +0800, Sam wrote: > Hi all, > > I'm using Ovs-2.8.0 + DPDK-17.05-rc1 with two netdev using mlx5 driver, > like this: > > $ sudo /usr/local/share/openvswitch/scripts/dpdk_nic_bind --status > > Network devices using DPDK-compatible driver > > ============================================ > > > > Network devices using kernel driver > > =================================== > > ... > > 0000:03:00.0 'MT27640 Family' if=eth4 drv=mlx5_core unused=igb_uio > > 0000:03:00.1 'MT27640 Family' if=eth5 drv=mlx5_core unused=igb_uio > > 0000:03:00.2 'MT27641 Family' if=enp3s0f2 drv=mlx5_core unused=igb_uio > > *Active* > > ... > > ===================== > > > > > When I start ovs-vswitchd, and add port onto br0, I got errors like this: > > libibverbs: Warning: no userspace device-specific driver found for > > /sys/class/infiniband_verbs/uverbs2 > > > and git errors in ovs-vswitchd.log like this: > > 2018-03-28T09:34:25.687Z|00120|dpdk|INFO|EAL: PCI device 0000:03:00.0 on > > NUMA socket 0 > > 2018-03-28T09:34:25.687Z|00121|dpdk|INFO|EAL: probe driver: 15b3:1017 > > net_mlx5 > > 2018-03-28T09:34:25.687Z|00122|dpdk|WARN|EAL: Requested device > > 0000:03:00.0 cannot be used > > 2018-03-28T09:34:25.687Z|00123|dpdk|ERR|EAL: Driver cannot attach the > > device (0000:03:00.0) > > 2018-03-28T09:34:25.687Z|00124|netdev_dpdk|WARN|Error attaching device > > '0000:03:00.0' to DPDK > > 2018-03-28T09:34:25.687Z|00125|netdev|WARN|dpdk0: could not set > > configuration (Invalid argument) > > > How to fix this bug? Is there anyone got these errors? Thank you~ Hi, I would say you don't have the correct Linux drivers, nor libraries to make it work with DPDK. Did you installed Mellanox OFED? If not take a look at section 19.5. Prerequisites of the NIC documentation [1]. Regards, [1] https://dpdk.org/doc/guides-17.05/nics/mlx5.html -- Nélio Laranjeiro 6WIND