From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by dpdk.org (Postfix) with ESMTP id 2F790ADC8 for ; Wed, 8 Jun 2016 18:30:28 +0200 (CEST) Received: by mail-vk0-f45.google.com with SMTP id d127so18739927vkh.2 for ; Wed, 08 Jun 2016 09:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=+Ipx43lMf1+eEbjnHDIgFkbfZ1byqDxz8/CtOzgQjpY=; b=GXfr6eCzyhZciu2uV+sGyt/xKyR6gJGAB+7njR7+wPKpUCx4FXbvSnx7+ptlO7dHem xI3RIc8OW9UoastpmcVBm50pqCtRUm3mVWucIv9R0qZ+lE/u62T8cmJQJZGIN0KhsQNv WbeIimcT74X9cwfwchLKWXK2p2cqnyVpVxF2MoF30h1JQ667NOQHaAKvalA8L4kpMug2 APORJ8MOn3PlaoTMCiwVr5qPn0ER6XUwJF6vHD72cDMkXuiBjTj4fbFK/MS+nzu1rNaF qaWE3ETzI1SLU4nuc3TgtKuuZZYHC9KfSezZiCewvqbX/iQG5CBlFGTMxVHekpRRjWgd d62Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+Ipx43lMf1+eEbjnHDIgFkbfZ1byqDxz8/CtOzgQjpY=; b=TQDmctuUmqppZirETxoRQMmgTaaN9qVB03iaZzmYlvp0c8YFGYnT+Ekyn8XRo4iMSH MduHELXdYWdseYoZ5GIrfvD6y3RZ16+UfK7NWeFd51rn5JG1wvjQL1I6DKbvg2e0te2d z14oq7cp+POTA6Cd9E6gdtBKBXIB8iYNtgqvLiV89k9LI1Z875s3rH0wINOxdTWTsh51 SQ4yYiPK4vMkSioH5mP9m8dE8PfPisl+mdif/Nko3DCcciq4zvHHaqV0+ZlWdNx4ZgrC 3JCoZycod0PB5fEvX2c1XHMgF9g73uCSiJTczdrJJzfNu0xCYRNhzB9L+8h3PQurBbHD lfvg== X-Gm-Message-State: ALyK8tKxXamUYph6V6ycQZ8E4sUxNSl4npE28j/zk9hjQ/DLNg6M28fwKLsxNhJom+Euqy5GX1dbZANpuFFpxA== X-Received: by 10.31.224.5 with SMTP id x5mr2411404vkg.39.1465403427548; Wed, 08 Jun 2016 09:30:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.37.183 with HTTP; Wed, 8 Jun 2016 09:30:27 -0700 (PDT) From: Cliff Burdick Date: Wed, 8 Jun 2016 09:30:27 -0700 Message-ID: To: users Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] KNI Threads/Cores 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: Wed, 08 Jun 2016 16:30:28 -0000 Hi, I have an application with two sockets where each core I'm planning to transmit and receive a fairly large amount of traffic per core. Each core right now handles a single queue of either TX or RX of a given port. Across all the cores, I may be processing up to 12 ports. I also need to handle things like ARP and ping, so I'm going to add in the KNI driver to handle that. Since the amount of traffic I'm expecting that I'll need to forward to Linux is very small, it seems like I should be able to dedicate one lcore per socket to handle this functionality and have the dataplane cores pass the traffic off to this core using rte_kni_tx_burst(). My question is, first of all, is this possible? It seems like I can configure the KNI driver to start in "single thread" mode. From that point, I want to initialize one KNI device for each port, and have each kernel lcore on each processor handle that traffic. I believe if I call rte_kni_alloc with core_id set to the kernel lcore for each device, then in the end I'll have something like 6 KNI devices on socket one being handled by lcore 0, and 6 KNI devices on socket 2 being handled by lcore 31 as an example. Then my threads that are handling the dataplane tx/rx can simply be passed a pointer to their respective rte_kni device. Does this sound correct? Also, the sample says the core affinity needs to be set using taskset. Is that already taken care of with conf.core_id in rte_kni_alloc or do I still need to set it? Thanks