From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay60.bu.edu (relay60.bu.edu [128.197.228.60]) by dpdk.org (Postfix) with ESMTP id 6D16537B7 for ; Thu, 22 Jun 2017 18:08:32 +0200 (CEST) X-Envelope-From: doucette@bu.edu Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by relay60.bu.edu (8.14.3/8.14.3) with ESMTP id v5MG8LoZ026335 for ; Thu, 22 Jun 2017 12:08:21 -0400 Received: by mail-wr0-f200.google.com with SMTP id v88so5943632wrb.1 for ; Thu, 22 Jun 2017 09:08:21 -0700 (PDT) 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:cc; bh=uJk1Sh2LMvVCVvlobKkeJFuEXmvRmZ3rV3ZcSWZEP3c=; b=SdEjxEmlCVGBfEEFG3LSZCh+r74Yu2QKl6ac89CntcS3Xi0enbvypK/gD8j9hjbcNn r3EjmDYLtzNvb0AYvqPkdPVztw8JEpc2VPHbOFGY1/bvxl/R8CPdeR+UNGadwLNzoR0o 7bxAp2n5n9vUGGFYkE8xQk9YYusE8XDnGrwRJw2VdtN8x2XzXaHqadpQOezJ3QV1apKu JjwIli5o8E5jOGVD192J4iLjo+x48tsaDl87nytdq1D5c09LoRyQ7tRq+sKQIRfP+XIE 2Tc0kAWUu/5fgFvmUOBfJYshebXWZT2D4NCkOB5JmAL2d+jRYC0g1J5bkyFNPeLFUsKi t3MQ== X-Gm-Message-State: AKS2vOxsUSMJmzTx8EOMXxw28PF3pWUtU06MwWkTQADBfO1rQq8tf1BF YI4cwHxND69D6+IUJfIVpU0T+Yc53/AwyVTu3QvtaO+RJ+1I+hxCsahtIRSCftNjaVYrknWELys +kxCpJAJ70Gl6/w== X-Received: by 10.223.176.124 with SMTP id g57mr2456144wra.190.1498147700343; Thu, 22 Jun 2017 09:08:20 -0700 (PDT) X-Received: by 10.223.176.124 with SMTP id g57mr2456130wra.190.1498147700022; Thu, 22 Jun 2017 09:08:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.31.9 with HTTP; Thu, 22 Jun 2017 09:08:19 -0700 (PDT) In-Reply-To: References: From: Cody Doucette Date: Thu, 22 Jun 2017 12:08:19 -0400 Message-ID: To: Alex Kiselev Cc: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 16:08:32 -0000 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 >