From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f179.google.com (mail-ig0-f179.google.com [209.85.213.179]) by dpdk.org (Postfix) with ESMTP id 1954BCE7 for ; Sat, 28 Feb 2015 23:39:41 +0100 (CET) Received: by igjz20 with SMTP id z20so8876565igj.4 for ; Sat, 28 Feb 2015 14:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=uScM71XPC21zDh59tQVT9Sb1eEL3hv55CwYbemRKu84=; b=Cwpz2qhR3t8o0Lc1u9HOzuGyfVatQDQYogfJjBNAE83txEc9dNT3lkmU5xQzfQEmKW vhezw02dHRo+JIAhPP32CcYMsK5W/HTERE0vaYpOQylW6c9sIv6mySPH4sDO2F4nGwYV EOfrGwm1x5xZuXG5OLxZM8kLrxXH/xC37F4Nnvxozeo3bZbxwOp2lya7kJ+Mz+4I5BbG LEvirGY4p/KHLgVJ1DBe2wHljznbxJG1Dy+o8tZisgIhk1BZkU8qwc5CI45rHXgINoqE neAjV5QmwH0MELuOGb9Vo7D2TVouDvF9JFwfr2lWnAzfPItiPxUjXFeUjq96SxDwRPhs +lkw== MIME-Version: 1.0 X-Received: by 10.42.80.198 with SMTP id w6mr23095439ick.14.1425163180565; Sat, 28 Feb 2015 14:39:40 -0800 (PST) Received: by 10.36.24.198 with HTTP; Sat, 28 Feb 2015 14:39:40 -0800 (PST) Date: Sat, 28 Feb 2015 14:39:40 -0800 Message-ID: From: "JP M." To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] KNI with multiple kthreads per port X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2015 22:39:41 -0000 Howdy! First time posting; please be gentle. :-) Environment: * DPDK 1.8.0 release * Linux kernel 3.0.3x-ish * 32-bit (yes, KNI works fine, after a few tweaks hugepage init strategy) I'm trying to use the KNI example app with a configuration where multiple kthreads are created for a physical port. Per the user guide and code, the first such kthread is the "master", any the only one configurable; I'll refer to the additional kthread(s) as "slaves", although their relationship to the master kthread isn't discussed anywhere that I've looked thus far. # insmod rte_kni.ko kthread_mode=multiple # kni [....] --config="(0,0,1,2,3)" # ifconfig vEth0_0 10.0.0.1 netmask 255.255.255.0 >>From the above: PMD-bound physical port0. Rx/Tx on cores 0 and 1, respectively. Master thread on core 2, one slave kthread on core 3. Upon startup, KNI devices vEth0_0 (master) and vEth0_1 (slave) are created. After ifconfig, vEth0_0 works fine; by design, vEth0_1 cannot be configured. The problem I'm encountering is that the subset of packets hitting vEth0_1 are being dropped... somewhere. They're definitely getting as far as the call to netif_rx(skb). I'll try on a newer system for comparison. But before I go too much further, I'd like to establish the correct set-up and expectations. Should I be bonding vEth0_0 and vEth0_1? Because I tried doing so (via sysfs); however, attempts to add either as slaves to bond0 were ignored. Any ideas appreciated. (Though it may end up being a moot point, with the other work this past week on KNI performance.)