From patchwork Thu Oct 5 05:31:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13410129 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08719E9270C for ; Thu, 5 Oct 2023 14:25:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232562AbjJEOYy (ORCPT ); Thu, 5 Oct 2023 10:24:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233923AbjJEOXK (ORCPT ); Thu, 5 Oct 2023 10:23:10 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D89E55B9 for ; Wed, 4 Oct 2023 22:43:26 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c724577e1fso4454175ad.0 for ; Wed, 04 Oct 2023 22:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1696484606; x=1697089406; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ieveI3u2+FPhd6Wc+mpTc2N/MTcAElOokFZwybt4yjQ=; b=HswtNLs6YRX73QdRc5gh3phRoRO6+9KmHvrlvhcTSNXowSh3/2b29YFLuEKLpQS3uy 1lmMY/iu1OO9Y6NCBcps6XsiGI4lRIgMYqIJ4ZRTNpEMBxJK/myQ4P3ewPr5uGjpFnvm WsmWdHkfDwobFUzEeJHeD9gs12bWebDW6Xi3o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696484606; x=1697089406; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ieveI3u2+FPhd6Wc+mpTc2N/MTcAElOokFZwybt4yjQ=; b=Wlfi0hs/AEGlJLDyR/c05eb+SNVuK/OF934i6O13b6B+xl3DtuWINkdy9p/Zu9el2E GlkyzdKyp5FrXOj5nO3yvSS4yyEXwaP3tefwF/1JKGAij3iPKmibz6knYDphx5/tqxbt jTsUTkxnQpDV1WquJoRPvzzvu7kjYgqJNUHgYo3PyWCai59FOS33jwlHRwUdgy1X+d+Y F1WL8eOokqhwzMpjCEf49co5bi5dgcobHkX3zUk5tBIto5ZPvbCNXYxqypoS+JJycEvz f6PCusydFLYBsJ8ARXLo3m+yPivB5Pk49+jTELXIPr0U1HZYZ6k606rUlnEZZhEBNv3r zeAA== X-Gm-Message-State: AOJu0YyWVJCml9kg/qGGfLP8AXV2L9b+bYM7QOzV/7dCCwQifs9/Clji b8Ual/ZTcFxhCo4pCbiV/oERgw== X-Google-Smtp-Source: AGHT+IGplySpLfPICZR6gzrcTz/uafPC8mP70vnPDdMpX/BDyoYfTE4VYf11WQOmDuFdCdXYRZo1xA== X-Received: by 2002:a17:902:9a44:b0:1be:384:7b29 with SMTP id x4-20020a1709029a4400b001be03847b29mr4019954plv.34.1696484605937; Wed, 04 Oct 2023 22:43:25 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id iz2-20020a170902ef8200b001c71ec1866fsm601422plb.258.2023.10.04.22.43.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2023 22:43:25 -0700 (PDT) From: Selvin Xavier To: jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com, Chandramohan Akula , Selvin Xavier Subject: [PATCH for-next 3/3] RDMA/bnxt_re: Do not report SRQ error in srq notification Date: Wed, 4 Oct 2023 22:31:29 -0700 Message-Id: <1696483889-17427-4-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1696483889-17427-1-git-send-email-selvin.xavier@broadcom.com> References: <1696483889-17427-1-git-send-email-selvin.xavier@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Chandramohan Akula In the SRQ notification handler, do not report the SRQ_ERROR in the default event case, as there was no error. Signed-off-by: Chandramohan Akula Signed-off-by: Selvin Xavier --- drivers/infiniband/hw/bnxt_re/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index 7bd18ec..b6a2d83 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -1187,13 +1187,10 @@ static int bnxt_re_srqn_handler(struct bnxt_qplib_nq *nq, ib_event.device = &srq->rdev->ibdev; ib_event.element.srq = &srq->ib_srq; - if (event == NQ_SRQ_EVENT_EVENT_SRQ_THRESHOLD_EVENT) - ib_event.event = IB_EVENT_SRQ_LIMIT_REACHED; - else - ib_event.event = IB_EVENT_SRQ_ERR; if (srq->ib_srq.event_handler) { - /* Lock event_handler? */ + if (event == NQ_SRQ_EVENT_EVENT_SRQ_THRESHOLD_EVENT) + ib_event.event = IB_EVENT_SRQ_LIMIT_REACHED; (*srq->ib_srq.event_handler)(&ib_event, srq->ib_srq.srq_context); }