From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by dpdk.org (Postfix) with ESMTP id ED761D237 for ; Tue, 28 Mar 2017 09:12:41 +0200 (CEST) Received: by mail-wr0-f170.google.com with SMTP id l43so89179061wre.1 for ; Tue, 28 Mar 2017 00:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=BvXJOOSf8NB3WOb0owAy6h0ByeRHvecy2BqPt9lQrcs=; b=dq2yjRBz0Xag18+MN7VIZAgJGvawvqJH/2y0FteWEYiPh0j1vSDhNhvPh7VuJRvPjq /Zeaj6ZcfZ7UsXEueOQpc0RyB/ZXeDCClM1mmPLqp5aIud0O/6Q6DreYn3XHiem2mSzf B+6z4Hk2RFlBWmAk81MaDBWVtUJUaNGHpjAx5bJrMtB52gAXi/1u/12foD7vsgHOjzbC ItPvfX+kqtHU845PCHnq8GnQ2wQuJmjF9yfhpfFWM3DNcCgVSazSLN7U324xt/GR43re YiWoLYkRAH+suKpPaX+ZI9AVjXwHjXpOQWu15cF3TZG6MTJ0UofKXHo/VGQndVGQlHM0 B9XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=BvXJOOSf8NB3WOb0owAy6h0ByeRHvecy2BqPt9lQrcs=; b=HfHqyK2ZZ+hnWf9YJuNClQFAeIDUO2Wj901aFZqCbsQ6pukCc02uaDy4PliIqGsvPf ocdt/Q1nwuW8si1r87owvGjANTNy1avU3pKS2fYHDJt9lffOVZTQd1jVHcJkXNh1Bfi5 6Rcmumqw8kSaAWJlajcxMr6B/2y6joP2RI8AV6nlWTrAkSX6ab0cQEGzF+Xcpr+FaLvE mYH7ymRma+Oc8n0frX6vdcrX25wVEL1zGf8lxiDzG1ANfHNXiVLzXnA5bfmvjZOt/TWI DSVwFIwJEEwztyMWdV6Gy7ZZsQwsevnXxWUdUMu19GN/a9l8n7zat79O4l+nFMgnSfzM fa2g== X-Gm-Message-State: AFeK/H2NIfx7XcHm+u/gVN0iYBW1mPx+bEBCTIZWIuAa6CPMp7Uzk+Wx5+qMwHHwf1/EzBY7 X-Received: by 10.28.1.209 with SMTP id 200mr12910630wmb.74.1490685161590; Tue, 28 Mar 2017 00:12:41 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id 65sm3576641wri.68.2017.03.28.00.12.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Mar 2017 00:12:39 -0700 (PDT) From: Thomas Monjalon To: Bruce Richardson Cc: olivier.matz@6wind.com, dev@dpdk.org, jerin.jacob@caviumnetworks.com Date: Tue, 28 Mar 2017 09:12:39 +0200 Message-ID: <1777203.ud4AFtxiB3@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20170324171008.29355-9-bruce.richardson@intel.com> References: <20170307113217.11077-1-bruce.richardson@intel.com> <20170324171008.29355-1-bruce.richardson@intel.com> <20170324171008.29355-9-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3 08/14] ring: allow enqueue fns to return free space value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2017 07:12:42 -0000 2017-03-24 17:10, Bruce Richardson: > Add an extra parameter to the ring enqueue burst/bulk functions so that > those functions can optionally return the amount of free space in the > ring. This information can be used by applications in a number of ways, > for instance, with single-producer queues, it provides a max > enqueue size which is guaranteed to work. It can also be used to > implement watermark functionality in apps, replacing the older > functionality with a more flexible version, which enables apps to > implement multiple watermark thresholds, rather than just one. > > Signed-off-by: Bruce Richardson > Acked-by: Olivier Matz There is a an error with this patch and crypto drivers: drivers/crypto/kasumi/rte_kasumi_pmd.c:362:32: fatal error: too few arguments to function call, expected 4, have 3 (void **)ops, processed_ops); ^ rte_ring.h:1018:1: note: 'rte_ring_enqueue_burst' declared here drivers/crypto/snow3g/rte_snow3g_pmd.c:366:31: fatal error: too few arguments to function call, expected 4, have 3 (void **)ops, processed_ops); ^ rte_ring.h:1018:1: note: 'rte_ring_enqueue_burst' declared here