From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id A4378C37A for ; Tue, 30 Jun 2015 18:10:07 +0200 (CEST) Received: by wicgi11 with SMTP id gi11so21477167wic.0 for ; Tue, 30 Jun 2015 09:10:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=DwAZMh1AbrkFLZfbk7vY84o/Iw8yyGutn8kq/fU+cCc=; b=iUq67ZcKwsgKavsGrz3tRr/Jj2WDfE2L2YJ30svUZjnpAl3QlIY+27ud+OgHmPoDiC su1dohIVwhNH0FRx89vgET7x9+jMVc181HBD9pXDnA1YaZ9Bze+FhQlTK7v0M3K6q4yg QSBUkcMUmdd9Yrim+MCGNIHYThwtsh9QqH7EIEhLOzveuB/sOf8OvQqUEGYmjnpaOnkf 6If+sdVjm+G4l8cxTrKmXWzpgEuGU4Fywihs3CMElvKZbh3xLM19tjA991QbUYIdUt3H Bg28pB9on7PisExzbOfOGRvBemxghceiXX816hjjbTcWVlMa4FQf2hyD/nsN8FAc6xoL x8Tg== X-Gm-Message-State: ALoCoQmmmjuXBAH2X8cN1m4EsmPOQZ2ayYnE4h8Puo3l88cKquLo29suLxTRgbEdeFNdBLfDl+r0 X-Received: by 10.180.188.97 with SMTP id fz1mr35205330wic.29.1435680607464; Tue, 30 Jun 2015 09:10:07 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.151.210]) by mx.google.com with ESMTPSA id l14sm1293441wjq.21.2015.06.30.09.10.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 09:10:06 -0700 (PDT) From: Thomas Monjalon To: Gopakumar Choorakkot Edakkunni Date: Tue, 30 Jun 2015 18:08:59 +0200 Message-ID: <5700614.EXxNvnLqa2@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] dpdk-2.0.0: crash in ixgbe_recv_scattered_pkts_vec->_recv_raw_pkts_vec->desc_to_olflags_v 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: Tue, 30 Jun 2015 16:10:07 -0000 2015-06-30 08:49, Gopakumar Choorakkot Edakkunni: > I am starting to tryout dpdk-2.0.0 with a simple Rx routine very > similar to the l2fwd example - I am running this on a c3.8xlarge aws > sr-iov enabled vpc instance (inside the vm it uses ixgbevf driver). You mean you are using SR-IOV from Amazon, right? Do you have more hardware details? > Once in every 10 minutes my application crashes in the recieve path. > And whenever I check the crash reason its because it always has three > packets in the burst array (I have provided array size of 32) instead > of the four that it tries to collect in one bunch. And inside > desc_to_olflags_v(), theres the assumption that there are four > packets, and obviously it crashes trying to access the fourth buffer. Did you try to disable CONFIG_RTE_IXGBE_INC_VECTOR? > With a brief look at the code, I really cant make out how its > guaranteed that we will always have four descriptors fully populated ? > After the first iteration, the loop does break out if (likely(var != > RTE_IXGBE_DESCS_PER_LOOP)), but how about the very first iteration > where we might not have four ? > > Any thoughts will be helpful here, trying to get my app working for > more than 10 minutes :) Not needed. A DPDK application is fast enough to do the job in 10 minutes ;)