From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id B24C62C4F for ; Fri, 9 Sep 2016 19:10:47 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id 1so44281413wmz.1 for ; Fri, 09 Sep 2016 10:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GQuN5gHKho0xtaYrXKHsGutYcW/JbknyBfVfvU01alw=; b=jSM4K249K5iTwc5PxlLxomKu2PXOk5ApgMwmwWHAhM4seOH7oVwE8Tb2LMYNvkSrD7 XsrwDP6lP4aMBW+viznfXh7hwIzLvkZOikouixXcvr2hJAJ1VFVR/Nt5zisdMOB9zWX4 HiDXcLtCwg8LYFcSY0fkHAN1k0QCndLXk4aIHRmF59BkC0559w+RgeVhaISCnOCDls3G f4jVWQbHODX8weTTaiw4+MMEh/wqXMKHafOIHevsrxbHy3ezyB9sAUVVc7VxnO4puu/L AePg2PP5UF8iYRgBupcM91tuTwcKCk+QUI/Gz3RbNqJl29KHnNV1L4xZBQoJHH/5D0iW mv9g== 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:from:date :message-id:subject:to:cc; bh=GQuN5gHKho0xtaYrXKHsGutYcW/JbknyBfVfvU01alw=; b=UkbEn0u4tRXtZdN8bMhzhnkx+FDaJD0vHWLYOeTyquBPs35hmcfeoTjOrIJQ7ykaoj 2Yx9DnX6tVdcVsiqTX05OdmGt9ZrAUHV6L6+X8GXtgi++e74jEQWzCBKs2U6qrCHRf2b tFWeMAJORc5KvXQw/96/gxOSZNgnaQCeTbORR5n2cq/zXlY3+qbM2GkDTHhmyJmX7ev+ xEoqt966BQ/30mPmQyM55bOTPU7DNFLyRSeZ0Jl82TaIN+WnjfWIbGSjhGLLyNUIpNS7 U3kR0KxPAC+LY4C7tpkgYRu7N1lOi+mK2Z4SxLOk5kA58W8dfMCy9g7of1UOPgvKY0B9 w//A== X-Gm-Message-State: AE9vXwP2o5IY+nB8yg24Hz7evKHWAydDw45BrGaAdrYnXvDCfVzizk4yBDLN8sCt6zUchp2Mrs3O+fXdR/oGEQ== X-Received: by 10.194.80.34 with SMTP id o2mr4112754wjx.61.1473441047455; Fri, 09 Sep 2016 10:10:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.98.132 with HTTP; Fri, 9 Sep 2016 10:10:46 -0700 (PDT) In-Reply-To: References: From: Jason Kwon Date: Fri, 9 Sep 2016 10:10:46 -0700 Message-ID: To: Amit Sharma Cc: users Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Query Regarding KNI 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: Fri, 09 Sep 2016 17:10:47 -0000 Yes, it should be possible. For a given DPDK port, RX and TX must be on separate "lcores," but can share the same physical core. So use the command-line EAL options to map multiple lcores to a single core, for instance: # ./kni --lcores='(0,1)@1' -n 1 -- -P -p 0x1 --config="(0,0,1)" In this example, I have a single DPDK port, with RX and TX mapped to two lcores which themselves have been mapped to a single CPU core. Jason On Thu, Sep 8, 2016 at 3:38 AM, Amit Sharma wrote: > Hi, > > I am working on DPDK KNI example and want to use only 2 cores for 2 DPDK > ports. > > Right now in my setup, i have created 2 KNI DPDK ports and for this setup i > am using 4 different cores. I want to explore the option that i can use 1 > rx and 1 tx core for both the ports. > > Is it possible to do the same using KNI example? If yes, Any input will be > very helpful. > > Thanks > Amit Sharma >