From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by dpdk.org (Postfix) with ESMTP id 62B5E6CBE for ; Tue, 11 Oct 2016 17:01:44 +0200 (CEST) Received: by mail-lf0-f44.google.com with SMTP id b81so44705812lfe.1 for ; Tue, 11 Oct 2016 08:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Y+fYPANCwcyNwg7ejGghhCMzvd+T5NFRwiDoToAnEbo=; b=ne0mXKFPYne6rw9AX4QD5M/2gdk/kJ8DMm6PBye2B7a+0KsPC7HfF5gY9CjUmd2kz8 s8GPqWaz7BoUDkOV+a30hQyKVT7+HohAl3tHf7DKh76V3LVuYorWt5FrOWizU+RlPYYk iMMJrB3akT8nyFIOCo0KQaJcS74/1wQB+KUMTC5qrY7OLNQMEHzjhzkNZ6nDeTmNB3BK hzS7ocT6v8bp8JW+AYRDbDubN3wsGcMley3wBtbjgvVp3eGUrH3yJwYZ3WU9D9b58Tr5 LwqI9gr5CbRHRsoTT2qP36kDR3hEt6syKQpFTIMZjY6emYBW1ML16JIG0/iaa1lVF4no 65Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Y+fYPANCwcyNwg7ejGghhCMzvd+T5NFRwiDoToAnEbo=; b=DDgIn8eLnQ1hkXx6Tk1np3Som5tyBWBqfAVA3wF+kuT5iwUPoPvW5uTkZVrM6o8zjD TuwUr6DpvpK6sJwaN4rDi2pXFsnFkmrAXvEb2ihprLd+AePysCt/FCSoyeFVjNlYyAiY kvco3rbOZ8CIAfoSasC68jlXtEYEqDmZXvx3aR6d83ez9VHn8AOqlOWqfH1YORDiia8g Cymm3uzftF/2QyDt4H7auIREJEl8/jK3yjyYpsZL8FXsrK4SUoGJWjUSMDIEkqgH7yAu UXeNFGX3T+Cl5kMfIsTP8CuyFnPw6sWL7rX5H0znFXPXuMH1Y5E2HT594p/w7BPgcM3b Tt9Q== X-Gm-Message-State: AA6/9Rmhc611zeOk7qQTb0RcDs6XpHgSauSq9K6WkGAyZNqt0kSgvYSZT5Vb1ey0CwktNT3b X-Received: by 10.46.1.197 with SMTP id f66mr2791662lji.27.1476198103399; Tue, 11 Oct 2016 08:01:43 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id g7sm1145546ljg.44.2016.10.11.08.01.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Oct 2016 08:01:42 -0700 (PDT) Date: Tue, 11 Oct 2016 17:01:36 +0200 From: Adrien Mazarguil To: Nelio Laranjeiro Cc: dev@dpdk.org Message-ID: <20161011150136.GP17252@6wind.com> References: <7756139bfd1f3c3a610e0f1f8ccab3f27b62f6eb.1476191132.git.nelio.laranjeiro@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7756139bfd1f3c3a610e0f1f8ccab3f27b62f6eb.1476191132.git.nelio.laranjeiro@6wind.com> Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix Rx function selection 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, 11 Oct 2016 15:01:44 -0000 On Tue, Oct 11, 2016 at 04:44:50PM +0200, Nelio Laranjeiro wrote: > mlx5_rx_queue_setup() was setting the Rx function by itself instead of > using priv_select_rx_function() written for that purpose. > > Fixes: cdab90cb5c8d ("net/mlx5: add Tx/Rx burst function selection wrapper") > > Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil > --- > drivers/net/mlx5/mlx5_rxq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c > index b9a5fe6..fe27d22 100644 > --- a/drivers/net/mlx5/mlx5_rxq.c > +++ b/drivers/net/mlx5/mlx5_rxq.c > @@ -1264,7 +1264,7 @@ mlx5_rx_queue_setup(struct rte_eth_dev *dev, uint16_t idx, uint16_t desc, > (void *)dev, (void *)rxq_ctrl); > (*priv->rxqs)[idx] = &rxq_ctrl->rxq; > /* Update receive callback. */ > - dev->rx_pkt_burst = mlx5_rx_burst; > + priv_select_rx_function(priv); > } > priv_unlock(priv); > return -ret; > -- > 2.1.4 > -- Adrien Mazarguil 6WIND