From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9BA9FA04E0; Wed, 27 Nov 2019 15:19:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 865A41B948; Wed, 27 Nov 2019 15:18:58 +0100 (CET) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 490042C60 for ; Wed, 27 Nov 2019 15:18:55 +0100 (CET) Received: by mail-pj1-f67.google.com with SMTP id w8so10009516pjh.11 for ; Wed, 27 Nov 2019 06:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VfhIp9iKQd/cV+IRQDhRpBJ0TD/QHpBY5ZgGlV6bvas=; b=YpGzyNVnzZwyKiWuNzZhiOScJJpquLJ4CdkSs9Ghs1Wmr2/s/fmFqm38IZHJ9K2Ajz 8L5fea1G9gPbLTdEPvIDdesJcw3yIlPnj0IKPaCY+DYLvK1s8FKHxNmLGmw56620aOjI lnXB338Bfo3Wh0debFI8LwjbNd9dG+/XR7O7c81g+NvTIyHRQ0+uozMyZC8JfW8AJREU ocViti7gctyk4FgNeAhSqd/xzOLytTtmmfzDjGwHknhxA5294blBx15423fiiHoV1CfN flu7yASsXe5Y5iCCQOHHX/vWjtYJwUX0i7ydhul4502V9g6WSXS3QGU9u6VZ0y0jinMX 3fZQ== 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:in-reply-to :references; bh=VfhIp9iKQd/cV+IRQDhRpBJ0TD/QHpBY5ZgGlV6bvas=; b=G0Gyq4x0uo6eu+CKUQhUNVbHUdKaM5SsG6usOLttCCoxG2uQpHQX7zrgklczNh6LyT R2qvti3o7+BN+YGxDafQegi83exvamoKPSWiB7qndqaPLNjVy1IFkPjLH13SAGt6M4Mu uXe5yqp8HMKm92gn9SkZvz+TwlVI1Vtu4kswYl1+s64dBoa9hVga0CV0hOU4ogxPqe91 TPjaCMybcBF+/HidVnf8IJXanJEWNgUSIXSzSfjm3qWQwSZ0lIKUSEwUFMUiQfHiB0id GOpxiEcrYdw/5eRIA0bdzWYedxaUHvFMClhz7wtQ9QropYGv6gdpIJVJ6wJWXh/ocUPT +Hmg== X-Gm-Message-State: APjAAAXSuBvQSACQekKOAErXcSRNIeGvnl3cCTnGsMwTCh1uFT9IVofx qeqt0I/zdUgnepIzqQ2RvrkoNBdf X-Google-Smtp-Source: APXvYqxynES7EENQkjmvmxUuZCqyx7jLrI2fbJcL10ywjwp8zcNoHtj+vQZQiGmd7LhOQIk7ZGGfHw== X-Received: by 2002:a17:902:ac88:: with SMTP id h8mr4328832plr.131.1574864334137; Wed, 27 Nov 2019 06:18:54 -0800 (PST) Received: from local.opencloud.tech.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id i3sm16612951pfd.154.2019.11.27.06.18.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Nov 2019 06:18:53 -0800 (PST) From: xiangxia.m.yue@gmail.com To: dev@dpdk.org Cc: Tonghao Zhang , Ori Kam Date: Wed, 27 Nov 2019 22:18:42 +0800 Message-Id: <1574864323-85580-2-git-send-email-xiangxia.m.yue@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1574864323-85580-1-git-send-email-xiangxia.m.yue@gmail.com> References: <1574864323-85580-1-git-send-email-xiangxia.m.yue@gmail.com> Subject: [dpdk-dev] [PATCH dpdk-dev 2/3] net/mlx5: clean up redundant assignment 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Tonghao Zhang The type of txq has been assigned in mlx5_txq_hairpin_new. Fixes: ae18a1ae9692 ("net/mlx5: support Tx hairpin queues") Cc: Ori Kam Signed-off-by: Tonghao Zhang --- drivers/net/mlx5/mlx5_txq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index a0d61644cb7f..e6a841c8d359 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -271,7 +271,6 @@ mlx5_tx_hairpin_queue_setup(struct rte_eth_dev *dev, uint16_t idx, DRV_LOG(DEBUG, "port %u adding Tx queue %u to list", dev->data->port_id, idx); (*priv->txqs)[idx] = &txq_ctrl->txq; - txq_ctrl->type = MLX5_TXQ_TYPE_HAIRPIN; return 0; } -- 2.23.0