From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay53.bu.edu (relay53.bu.edu [128.197.228.13]) by dpdk.org (Postfix) with ESMTP id B9A365688 for ; Mon, 1 Oct 2018 22:53:55 +0200 (CEST) X-Envelope-From: doucette@bu.edu Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay53.bu.edu (8.14.3/8.14.3) with ESMTP id w91KrWRd028882 for ; Mon, 1 Oct 2018 16:53:32 -0400 Received: by mail-wm1-f72.google.com with SMTP id t79-v6so131730wmt.3 for ; Mon, 01 Oct 2018 13:53:32 -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:from:date:message-id:subject:to; bh=lcBRzkYrKLOWsk4tV8wjNhb84C3+X4ra7NcjUpDzGQE=; b=VoIMdHkKE03U6838d7SyrxG+hJnzPKGfPmTD8Tfk7kC3Ob5LeriQBYr/8ZsUe+nNzh GGctBqdASTv8h41joEELG3Qa+xbu8He88YBZlc7M4hY/U0B4cU45k4Y4HDR2ofQdJmN2 tZQ0jVpNqAduw9D5D4RrkV7zIH1euTES4YrwRiFuL6SB7LsyzcuzeB9j4gNw9Kd5+SjT K5yCfGFMUYlwWGJwgYbKa89mW+jLosmNjds+4iI5LOq2TitDY5/fAudiCRaK5UEBwTVE 6ILuj1jHwocHoyFJqoQC2hIpBN7hHXOLZUcdSojrSpe88ZfivZl4c+i53HNYWGRFK3vV kofw== X-Gm-Message-State: ABuFfoirOYfx1SJO3eLI8ssxPmO65f4SFUv6cWbBgASsFmYpO4zJ7Q7v vTPvy1rV7YPxa2VOeV+hgusEPwfdTwxnkA0Q6QN7bPW4/CaU1r1MvU3cq/jhiUZUvDR/fbiqKRJ Oop/CM0K1HkBykF7zaniNNQ0= X-Received: by 2002:a1c:2dc7:: with SMTP id t190-v6mr9893838wmt.31.1538427211836; Mon, 01 Oct 2018 13:53:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV60gd1MHFfYqGG0aC6vwuxaBMladzQ+i5F3Zw5qGMWEpGJq6Mwt2qfaZNx+ReBxBTMmUrUJ5ayyy3hkYZKUcVCo= X-Received: by 2002:a1c:2dc7:: with SMTP id t190-v6mr9893823wmt.31.1538427211401; Mon, 01 Oct 2018 13:53:31 -0700 (PDT) MIME-Version: 1.0 From: Cody Doucette Date: Mon, 1 Oct 2018 16:53:20 -0400 Message-ID: To: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] using a KNI with vdevs 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: Mon, 01 Oct 2018 20:53:56 -0000 Hi, I'm trying to open a KNI using a virtual device (AF_PACKET), but am stuck on trying to find something that's analogous to the PCI information for the virtual device. I am using something like the code from the KNI example application: if (dev_info.device) bus = rte_bus_find_by_device(dev_info.device); if (bus && !strcmp(bus->name, "pci")) { pci_dev = RTE_DEV_TO_PCI(dev_info.device); conf.addr = pci_dev->addr; conf.id = pci_dev->id; } ... kni = rte_kni_alloc(pktmbuf_pool, &conf, &ops); But rte_bus_find_by_device() returns NULL and the program crashes when calling rte_kni_alloc() because conf.addr is never set. Is there a way to use a KNI with a vdev? Cody