From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by dpdk.org (Postfix) with ESMTP id 38E63B475 for ; Fri, 13 Feb 2015 12:53:35 +0100 (CET) Received: by mail-ob0-f181.google.com with SMTP id vb8so18987601obc.12 for ; Fri, 13 Feb 2015 03:53:34 -0800 (PST) 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:date :message-id:subject:from:to:cc:content-type; bh=PlkfAjzK2+fFF6lUO3c68inVVrz1MHv0P7FI2D6PAUU=; b=Apf07J17avgO/skoGnsG7fh513GUVkCfZm+Lni3dxSQkhJN7+/nVrH6QZWsUx5Bp39 LTaciW6c+Pe3Ulosvz7qwYJPkG5Dlrqwtsn6HOETqkuSOK2ab6Zue2oimQRl4peOZxaX VzQTpzN+axYUdjFooe33K24hBPeVqYNzONdryC1SlsP91THX3lmEhVP91iVm0pbVuxiB 3EcE/CXfihOaGF01o6T3thTCr3uF2GMmO+aPCrL8/r7vaUs1XucajMeZtyS4411+QZdt xYrISQK64ZoS9T8em/02WLWreuYXuXDuvispzfWTWuimY8qMnwQsjaRjDoV35sXAK/r2 6WaA== X-Gm-Message-State: ALoCoQkpupNLb0IVV+L43TtKOUGLw68Lj30afQ3Keey212zg6hmPRM/7DgTY7nf/XyccuKNZ8FlQ MIME-Version: 1.0 X-Received: by 10.60.174.48 with SMTP id bp16mr6232040oec.10.1423828414710; Fri, 13 Feb 2015 03:53:34 -0800 (PST) Received: by 10.76.95.198 with HTTP; Fri, 13 Feb 2015 03:53:34 -0800 (PST) In-Reply-To: <1423815597-17819-11-git-send-email-jing.d.chen@intel.com> References: <1423618298-2933-2-git-send-email-jing.d.chen@intel.com> <1423815597-17819-1-git-send-email-jing.d.chen@intel.com> <1423815597-17819-11-git-send-email-jing.d.chen@intel.com> Date: Fri, 13 Feb 2015 12:53:34 +0100 Message-ID: From: David Marchand To: "Chen Jing D(Mark)" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v5 10/17] fm10k: add receive and tranmit function 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: Fri, 13 Feb 2015 11:53:35 -0000 On Fri, Feb 13, 2015 at 9:19 AM, Chen Jing D(Mark) wrote: [snip] + if ((q->next_dd > q->next_trigger) || (alloc == 1)) { > + ret = rte_mempool_get_bulk(q->mp, > + (void > **)&q->sw_ring[q->next_alloc], > + q->alloc_thresh); > + > + if (unlikely(ret != 0)) { > + PMD_RX_LOG(ERR, "Failed to alloc mbuf"); > rx_mbuf_alloc_failed++ ? -- David Marchand