From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by dpdk.org (Postfix) with ESMTP id DA39437A0 for ; Thu, 22 Jun 2017 22:25:50 +0200 (CEST) Received: by mail-io0-f177.google.com with SMTP id h134so21547863iof.2 for ; Thu, 22 Jun 2017 13:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=YkDg9i0n2LnncK8GIRfbNNeMPW1VQx4gWN5qWXnpZWE=; b=BEO1IcKv5XNzDo9qeksRySSJy0stApj3tN207PdZTmiJVjevKXqLUHIohMnnqAAWgU 1Tdf+x+zLs+79kg668IUy920pY4H37DaSelVBOe2V2kNKe7Iqi6slUCbvdM54CUOnppB sAoS02L5zZdF+R+eT11d8Hc4qbvOJSreIu5PRHbCXPDXDvsxKQg1T91lXwc/Z8FzXUMd GCRTErVLDmXQOu8Q9lhPRZf/DLj7C0YmpYG9Fvr5L3rQfsGWnIoZRezElEH76nO+k3Xr /iu7/ToPZBdsTXya7lVuKh3LX748V7pnuYpil6fXhPNuHQYY4A6UtqjLg6J04SMZuW0V 7gQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YkDg9i0n2LnncK8GIRfbNNeMPW1VQx4gWN5qWXnpZWE=; b=fs+uTN/kClZc0xKVskg/VwaIX6cxxq0tMrKbnQyjqy1nYqnsmcvefTr+vy14kiPERR 6j5y9PywlA179jfgqHB+S+3bMcLkUiLGBCiW4/lzbowvVACCHsv8ReJL6A8xGPO00EVe sfxeCzoYXQPzrEWO1WP1bnet6Jb7AQgUjfSwp/24cckLI895T08xy1Qx70HoZF4RHpRo HLjzPeGuGrsTAnQ0gEBXJNE1tuvxbWohfT1VDT/2Iish3jamNZ117qP38zwGAx5SHTM6 swGpqENnWTVnXbDZr7qCb8ncBlTjBYxhSwBauZ9N0iUo7xbFQVx2Te1xnJYyoo38tV+j BxVg== X-Gm-Message-State: AKS2vOzNZZ6YWaHN8xLUWWTHqOYxkYIIsXWN6TaMfc44MZgCMKUAr297 BoPLSW6xvBvPHJXzubw6i0zuGfZ4TQ== X-Received: by 10.107.35.14 with SMTP id j14mr4129720ioj.228.1498163150057; Thu, 22 Jun 2017 13:25:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.10.89 with HTTP; Thu, 22 Jun 2017 13:25:49 -0700 (PDT) In-Reply-To: References: From: Alex Kiselev Date: Thu, 22 Jun 2017 23:25:49 +0300 Message-ID: To: Cody Doucette , users Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-users] KNI interfaces at bonding ports 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: Thu, 22 Jun 2017 20:25:51 -0000 Hi, Cody. Thank you. It helped. rte_eth_bond_primary_get() function is exactly what I needed. 2017-06-22 19:08 GMT+03:00 Cody Doucette : > Hi Alex, > > I previously ran into the same issue. I just used the PCI device information > from the primary slave of the bonded interface: > > https://github.com/AltraMayor/gatekeeper/blob/master/cps/main.c#L545 > > Hope that helps, > Cody > > On Thu, Jun 22, 2017 at 5:06 AM, Alex Kiselev wrote: >> >> Hello. >> >> Is it possible to create a KNI interface at a bonding port? >> >> My code that works perfectly fine with usual dpdk ports fails >> when I try to use it with bonding ports. >> >> rte_eth_dev_info_get(port_id, &dev_info); >> conf.addr = dev_info.pci_dev->addr; >> ... >> return rte_kni_alloc(pktmbuf_pool, &conf, &ops); >> >> >> The code fails because pci_dev member of variable dev_info is NULL. >> Is there any workarounds for this problem? >> >> Thanks. >> >> -- >> Alexander Kiselev > > -- -- Kiselev Alexander