From: Bruce Richardson Subject: Re: dpdk - poll mode - context switches Date: Wed, 25 Feb 2015 11:06:16 +0000 Message-ID: <20150225110616.GB4896@bricha3-MOBL3> References: <1234251424858091@web12h.yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org To: Jog Lie Return-path: Content-Disposition: inline In-Reply-To: <1234251424858091-mqUw/7ylw31xpj1cXAZ9Bg@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Wed, Feb 25, 2015 at 10:54:51AM +0100, Jog Lie wrote: > Hello, >=20 > I am not sure to understand the mechanism behind dpdk concerning the co= ntext switches. > I have two user space applications that need access to the NIC accordin= g to incoming port rules (port 80 and port 443). >=20 > How to be sure that DPDK spreads the load to the right application ?=20 >=20 > Will 2 dpdk instances be needed (one per app) -> two incoming packets a= nalysis to "know" if the packet should be forwarded to=20 > the user space process ? Which would basically be the same thing as ine= fficient promiscuous mode. >=20 > i don't understand that "filtering" point. >=20 > Could you please clarify ? >=20 > Thanks >=20 > --=A0 > Jog Hi Jog, The missing link in connecting applications which receive packets from po= rt 80/443 and DPDK itself is the TCP/IP stack in use. DPDK itself does not i= nclude 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