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 1DABFA04E0; Wed, 27 Nov 2019 15:19:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC2F11BE96; Wed, 27 Nov 2019 15:19:02 +0100 (CET) Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by dpdk.org (Postfix) with ESMTP id 7958D1B943 for ; Wed, 27 Nov 2019 15:18:57 +0100 (CET) Received: by mail-pj1-f65.google.com with SMTP id bb19so6475316pjb.4 for ; Wed, 27 Nov 2019 06:18:57 -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=ooy5NU1Ec3SgQ8Jkt7jERkg6pJgoKlcGi5u+CANtaSM=; b=tsQXkplWyOa3UyRaBMGAQG2Pb2f100EX8CsNmJ+tV6J5KwtNlgau8Nz7YKIM1ARTEU u2dx+bAufiQAu7TPKFKmdphs1TeibqqYa57UQzd4XnEzoXOLXNa9M7b2ir/t7XiIM1dN IHb4kv5Js3TA84dKxM6yKvpmxusv11Z0C5dwUlzCHiW8hY3bOe3UKGFBhktVNPw09sRN QGrYOUFipYFjzJh0iRfOF7xo7DPrRsuqZMzPqTUUmb6Pj4mooGP1BVx159BGGwGkz9Dt JaJhAByt9uVvYzvOVK/8XMi3RvYdMewPys2w6d65cgCdpgFwUQvHUC2oB1DCd8HZLlSV xWGw== 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=ooy5NU1Ec3SgQ8Jkt7jERkg6pJgoKlcGi5u+CANtaSM=; b=W/WhsE7B5tMv1sXWDf4G8PnuaNLIV/ro1SomOxacpdBR23fWkWrUYTH/c0lcyGtsrT 73b2uhbfOu30WmZNA+E7/Kiv09OS3vfKjnhxm649hKaqW2pL78g9sDLT5Z6L//XYE2Lm qUHmp5lno5PfHT7fIB6vJ9phB2g/65SQtPUxsJSAztc46wL72e5K+pCBDo0c1wLlxrJi ZG0EZUN2X+PjGB0l5AXI/RpXtdqJdMQZmf5OgWQYZ64k99UXL2V2u/3FVkkU2juMI9xL ehXm5JGd5JTFNI9LUPON3zjV9Qz3srJHbmmzZCkaOTJERWijInmkMVx6lymJPWie5S0N +B1A== X-Gm-Message-State: APjAAAUlQ9G1h6wW1dYUNszHoca/0ZUHAax1C23s+5wqVHuf/SUfKLfz qQFGvIw0r9uuEjpjaxrRapr5a/pR X-Google-Smtp-Source: APXvYqyZs4IeysF0gQ/h4bonarV1UkA8tXseyRPLJPQn84n/RS1Ym8Oz1zGSAONBFaoGKVZ/hJ/VEg== X-Received: by 2002:a17:902:ab98:: with SMTP id f24mr4373416plr.257.1574864336606; Wed, 27 Nov 2019 06:18:56 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Nov 2019 06:18:55 -0800 (PST) From: xiangxia.m.yue@gmail.com To: dev@dpdk.org Cc: Tonghao Zhang , Ori Kam Date: Wed, 27 Nov 2019 22:18:43 +0800 Message-Id: <1574864323-85580-3-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 3/3] net/mlx5: remove the assert for rxq cq 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 mlx5_rxq_obj_hairpin_new doesn't alloc the cq anymore. When releasing it, don't check it. Fixes: e79c9be91515 ("net/mlx5: support Rx hairpin queues") Cc: Ori Kam Signed-off-by: Tonghao Zhang --- drivers/net/mlx5/mlx5_rxq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 2a12d5fa3436..582a2330e575 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -673,7 +673,6 @@ mlx5_rxq_obj_release(struct mlx5_rxq_obj *rxq_obj) assert(rxq_obj); if (rxq_obj->type == MLX5_RXQ_OBJ_TYPE_IBV) assert(rxq_obj->wq); - assert(rxq_obj->cq); if (rte_atomic32_dec_and_test(&rxq_obj->refcnt)) { switch (rxq_obj->type) { case MLX5_RXQ_OBJ_TYPE_IBV: -- 2.23.0