From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f68.google.com (mail-vk0-f68.google.com [209.85.213.68]) by dpdk.org (Postfix) with ESMTP id AB35E95CC for ; Thu, 31 Mar 2016 18:56:18 +0200 (CEST) Received: by mail-vk0-f68.google.com with SMTP id a62so12356941vkh.0 for ; Thu, 31 Mar 2016 09:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=N8/SY+5QnuyLGpmE7CxzbYvXExIKUHHzy5Bsbd6+6+4=; b=xFKVa+IUZ5n2vX50BcTHC6UKhXInNDarkH1i2cMdf9B2FFF0d1hx1Vy5huywNHHGdd WMWiN+gdkyBKVBneaN35m/PalrHnqr20Sd4vvQOs9QWxPo2boodnF6zWc9V94OAeI2pk akuVh3IYKkfupvBH2GZsmXeTcqGJ5DXkKlv3iUOpfQ2UbOX6tHbm9Ksd59wQ+EC0jDAg lGyPoXva4o7wI1E3ge+35NORjZk22LnfvL8qNBCb6DGbmBJyYMLq5dNxspbzBpvVtcK4 zogMAFcXV5IlDP9Pb+UHFRmzRB597/7WdKmegQn5zoQDQByjabRvbDKI37IKmTN0RhUe xPnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=N8/SY+5QnuyLGpmE7CxzbYvXExIKUHHzy5Bsbd6+6+4=; b=GrzvdG8k26MvOw7LhN8x3wM4Nh9Dm5i1/j55LmS9ijXhD8OG3N5mM2U2VqFEEfX7Dp 1nrpoXUCSp9bXH4zFx7vVEcqW/B+KQ7N/WuRFIIg5aG1dwPC9sNaPSJ8RvYVKK2pE1pR 6Jhw03ikqAC0w6JIQaEtFLZoU0nYN7vCQG/EQKxP1TJsGGVbRVbo9B/00ps1oK5ESDQo 3ZAOGKjFVKm3s/1aQnFl00KC3TlAsBa38F5cB1qUWdRrqeIHo5scg4m/3Fzce9N1LjRd /lPS+hNkjGEEtwUDexSyQWYuioOLXLWIHxgL31zrEILq8pefyB90Q5XVfI+dC8uWIyDL TD5A== X-Gm-Message-State: AD7BkJIyOZTsznHGtDLxIzX0kbhfsNLgGjP1se98j6bHhOhcwxqMQk1uJsn0EUOVvq2lDzK/BTCgVAIh+Ibgcw== MIME-Version: 1.0 X-Received: by 10.31.40.10 with SMTP id o10mr2154231vko.9.1459443378193; Thu, 31 Mar 2016 09:56:18 -0700 (PDT) Received: by 10.176.64.230 with HTTP; Thu, 31 Mar 2016 09:56:18 -0700 (PDT) In-Reply-To: References: Date: Thu, 31 Mar 2016 09:56:18 -0700 Message-ID: From: Jason Kwon To: ALeX Wang Cc: users Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Must kni be associated with a dpdk port? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2016 16:56:19 -0000 No, I don't think it is compulsory--I am using it in this way. You can modify the example program to remove the references to the physical PCI device and have the KNI instance created as a standalone device. Alternatively, you can use something like librte_pmd_ring, a ring-based poll-mode driver, to associate KNI with a purely software-based PMD. In this case, you are associating KNI with a DPDK port, but no physical Ethernet device. Jason On Wed, Mar 30, 2016 at 11:14 AM, ALeX Wang wrote: > Hi, > > I want to use 'rte_kni_alloc()' to create a kernel iface and > use it to test application rx. From the api and example in > 'examples/kni/main.c', i saw the 'conf' argument is assigned > with pci info of a dpdk port. > > Want to ask if this is compulsory... Must kni always be > used together with a dpdk port? > > Thanks, > > -- > Alex Wang, >