From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by dpdk.org (Postfix) with ESMTP id ACC002931 for ; Tue, 11 Oct 2016 16:45:10 +0200 (CEST) Received: by mail-lf0-f54.google.com with SMTP id b81so44030839lfe.1 for ; Tue, 11 Oct 2016 07:45:10 -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; bh=0wTk9G0lvOyO3NvgSz/4bJZW/vufvsgbB19o9I8grJ0=; b=ftr2OJw4WNxpVYCYLxpt7ijBpdHzFGLJ1SP99eFTGayRg0Tu45lPwThB51rt+ZmXnO udxJMaGdLWs7uDX7QvIdsFGLinUENGt2HvAvp1pfAdVrYyMAZbfJoWoeQhBm7P8K7W9v uh9zBLrL2n5Je6J7UTE5EJo4N1dYk3s3P9cIUj4uq3EIKkzzCwuE3hzRlEaNgkt9MCjV +Hzd/WSO84XeQA+Pog+8cOaJCFER4OduX596YMI+XsDRI5pdn/3iN5CwMtRs7AwouGAg OLnno5e/1ENRh2LcW9URrac58H4ak8BsmAahfB/RqQapYjoGVtS3VKypaNkeaLeWMcOe LZKw== 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; bh=0wTk9G0lvOyO3NvgSz/4bJZW/vufvsgbB19o9I8grJ0=; b=mZ1qtxqcfCRkkg1FsuYOBtzMNREnAEDobNkn9QbFfClTVFDuhvdhD/9/xK7IFtzgku kZa3f4I8joB7Oa5EJ/aih+2lMvwjlJr3wsBwtF6oldD8ioeA7j15LTpcVh9qfQ4kVYnv yI4vazZJNviTZ5cj+BMeowId8EyJArEKCeRLyztnucTdwtnJSQh/MDG9ElphrWTG3Gpb txmmRCSEnH4NSVPEObursU0Ldjh2G+po0eAeEI5od14qX7plN6Syy8WAdWMORDwtGcGC GyuLJDxPB6tMP0Q3ERyOwdVOBq85rqsIzjJYBETVNxghxLmeU497aAClnHTaokjYQBg3 qiuA== X-Gm-Message-State: AA6/9RlTK3Ji1UZDOycObXQU8bWFrvDS5GYfu0l9U1iyevwvJ63fVDaGdwU3730UN/NeXoxS X-Received: by 10.25.134.139 with SMTP id i133mr3294824lfd.27.1476197108250; Tue, 11 Oct 2016 07:45:08 -0700 (PDT) Received: from ping.vm.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id p3sm1120955lfe.1.2016.10.11.07.45.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Oct 2016 07:45:07 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Adrien Mazarguil Date: Tue, 11 Oct 2016 16:44:50 +0200 Message-Id: <7756139bfd1f3c3a610e0f1f8ccab3f27b62f6eb.1476191132.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.1.4 Subject: [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 14:45:11 -0000 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 --- 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