From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7F13B9A8D for ; Wed, 25 Feb 2015 12:06:21 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 25 Feb 2015 03:06:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,644,1418112000"; d="scan'208";a="656941950" Received: from bricha3-mobl3.ger.corp.intel.com ([10.243.20.32]) by orsmga001.jf.intel.com with SMTP; 25 Feb 2015 03:06:18 -0800 Received: by (sSMTP sendmail emulation); Wed, 25 Feb 2015 11:06:16 +0025 Date: Wed, 25 Feb 2015 11:06:16 +0000 From: Bruce Richardson To: Jog Lie Message-ID: <20150225110616.GB4896@bricha3-MOBL3> References: <1234251424858091@web12h.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1234251424858091@web12h.yandex.ru> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] dpdk - poll mode - context switches 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: Wed, 25 Feb 2015 11:06:21 -0000 On Wed, Feb 25, 2015 at 10:54:51AM +0100, Jog Lie wrote: > Hello, > > I am not sure to understand the mechanism behind dpdk concerning the context switches. > I have two user space applications that need access to the NIC according to incoming port rules (port 80 and port 443). > > How to be sure that DPDK spreads the load to the right application ? > > Will 2 dpdk instances be needed (one per app) -> two incoming packets analysis to "know" if the packet should be forwarded to > the user space process ? Which would basically be the same thing as inefficient promiscuous mode. > > i don't understand that "filtering" point. > > Could you please clarify ? > > Thanks > > --  > Jog Hi Jog, The missing link in connecting applications which receive packets from port 80/443 and DPDK itself is the TCP/IP stack in use. DPDK itself does not include any stack, so you'll need to select a stack to use with your applications. The mechanics of how apps talk to ports and how traffic gets filtered to them is largely the stack's responsibility. /Bruce