From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 2/2] ethdev: move queue id check in generic layer Date: Thu, 09 Mar 2017 19:27:17 +0100 Message-ID: <2143302.F6RKAYHQ0c@xps13> References: <1487345133-4586-1-git-send-email-olivier.matz@6wind.com> <1487345133-4586-2-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, ferruh.yigit@intel.com To: Olivier Matz Return-path: Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by dpdk.org (Postfix) with ESMTP id BC850234 for ; Thu, 9 Mar 2017 19:27:18 +0100 (CET) Received: by mail-wr0-f176.google.com with SMTP id g10so50788776wrg.2 for ; Thu, 09 Mar 2017 10:27:18 -0800 (PST) In-Reply-To: <1487345133-4586-2-git-send-email-olivier.matz@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-02-17 16:25, Olivier Matz: > The check of queue_id is done in all drivers implementing > rte_eth_rx_queue_count(). Factorize this check in the generic function. > > Note that the nfp driver was doing the check differently, which could > induce crashes if the queue index was too big. > > Signed-off-by: Olivier Matz > --- > > This commit was part of RFC patchset that will be reworked: > http://dpdk.org/dev/patchwork/patch/17232/ > It can be processed separately. Series applied, thanks