From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 41B649FE for ; Wed, 20 Sep 2017 19:33:49 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4C4147EA9B; Wed, 20 Sep 2017 17:33:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4C4147EA9B Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=ktraynor@redhat.com Received: from ktraynor.remote.csb (ovpn-117-131.ams2.redhat.com [10.36.117.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id F02A760241; Wed, 20 Sep 2017 17:33:44 +0000 (UTC) To: "Loftus, Ciara" , devendra rawat , "ovs-dev@openvswitch.org" , Adrien Mazarguil , nelio.laranjeiro@6wind.com References: <74F120C019F4A64C9B78E802F6AD4CC278E04762@IRSMSX106.ger.corp.intel.com> Cc: "users@dpdk.org" , Yuanhan Liu , Thomas Monjalon From: Kevin Traynor Organization: Red Hat Message-ID: Date: Wed, 20 Sep 2017 18:33:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <74F120C019F4A64C9B78E802F6AD4CC278E04762@IRSMSX106.ger.corp.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 20 Sep 2017 17:33:48 +0000 (UTC) Subject: Re: [dpdk-users] [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2017 17:33:49 -0000 On 09/08/2017 10:56 AM, Loftus, Ciara wrote: >> Hi, >> >> I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0. The >> NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port 10G >> NIC. The problem with this NIC is that it provides only one PCI address for >> both the 10G ports. >> >> So when I am trying to add the two DPDK ports to my br0 bridge >> >> # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk >> options:dpdk-devargs=0002:01:00.0 >> >> # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk >> options:dpdk-devargs=0002:01:00.0 >> >> The port dpdk1 is added successfully and able to transfer data, but adding >> dpdk0 to br0 fails: >> >> 2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0: e4:1d:2d:4f:78:60 >> 2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface dpdk1 >> on >> port 1 >> 2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface br0 >> on >> port 65534 >> 2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family >> 'ovs_datapath' does not exist. The Open vSwitch kernel module is probably >> not loaded. >> 2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to use >> device >> '0002:01:00.0' which is already in use by 'dpdk1' >> 2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set >> configuration >> (Address already in use) >> 2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID >> 0000e41d2d4f7860 >> >> >> With OVS v2.6.1 I never had this problem as dpdk-devargs was not >> mandatory >> and just specifying port name was enough to add that port to bridge. >> >> Is there a way to add port both ports to bridge ? > > It seems the DPDK function rte_eth_dev_get_port_by_name() will always return the port ID of the first port on your NIC, when you specify the single PCI address and that's where the problem is. There doesn't seem to be a way currently to indicate to the calling application that in fact two (or more) port IDs are associated with the one PCI address. > > I am cc-ing DPDK users mailing list for hopefully some input. Are there any plans for the rte_eth_dev_get_port_by_name function to be compatible with NICs with multiple ports under the same PCI address? > Hi Adrien/Nelio, Is this something you can answer? We're wondering how to handle this in OVS and whether a temporary or long term solution is needed. The original thread started here: https://mail.openvswitch.org/pipermail/ovs-dev/2017-September/338418.html thanks, Kevin. > Thanks, > Ciara > >> >> Thanks, >> Devendra >> _______________________________________________ >> dev mailing list >> dev@openvswitch.org >> https://mail.openvswitch.org/mailman/listinfo/ovs-dev