From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f202.google.com (mail-qk1-f202.google.com [209.85.222.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A6631419A4 for ; Sat, 27 Jun 2026 02:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782529019; cv=none; b=RkVJ+5FJ/eLiYoy27mfZOhxJjyKMYcl8UkJHb4hjjcFmGKbmd9ngcKOEn5DevEG9gWCZVALX3XFlELW8PctE+Jk5309Gj/W/1P5EYhEs68D0p56sLgWs6OQqNsfyW/VSHi0x2Epj5eafZkEQz9HrVxnll8E1uefUJT51pTf+4YY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782529019; c=relaxed/simple; bh=tbleTv6wSRr+3pCeeAsgRWFgCNfIWAG7LiwaDn1zGsg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=NL32ZOOhyu8ComtO7lhWn2j+01ouBtg2ZRbM4ZVNnZ89s7QcLkpTZAKrbJopPdO5bryqT0cbPZOQ/ttC2CNcVYscjbjcQKntXPQLBUWozfP5LznuUr561/8UOEa31QHtge20zK0/2/GM3Hmy3kOUST1iPL9d3Vz1MP1w3lUax2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jmoroni.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=jelneAyt; arc=none smtp.client-ip=209.85.222.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jmoroni.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="jelneAyt" Received: by mail-qk1-f202.google.com with SMTP id af79cd13be357-915f6ff639aso383726985a.1 for ; Fri, 26 Jun 2026 19:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782529017; x=1783133817; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=wyKTjR1ifW+yBpadNYvDD5Qz8RyS5RIbiostlSY7Clg=; b=jelneAyt99JC6Z/WVW4PCmA5V/WYOlHWq85RTH94BkiatxK/DQYSbTrqrmsSNPWjro XAc4/0MkOjr8Pl09kSwLh+an1iOl/gBH8SQMAXR3VkLIfPiVQr5YBFlkUiitnd+3ldtm nmtkDx4VNVQVO8I7Eta0gqX3iyOSvurtmpcFgDXETMiZXvqfni8NvOgtLPu3qRQpT8t/ uDCVHQ1bvvhs425iaigudmWCJ/vSuEMknVSxz2I2HOgXdY8JoiANr43mFzhaaPkWD50+ zVsu/WU0abDz9Vn8bzCxt4/FfgQz9Fxd5izULZWSrRMneKRREvZKGvHe5XmRc6t3S5ZL 3Skw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782529017; x=1783133817; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wyKTjR1ifW+yBpadNYvDD5Qz8RyS5RIbiostlSY7Clg=; b=cKomfJWk04Kg5wQ+8YQyuEoVykVSBkmVLDHbUWr4YFAeReUpj//Anv0MquK0o1mJB9 CJvioGdFk6a2IYDVcbCHAbi01MnXgtHzJMTduJ4mOt/8+/keClCU540bMSlLinhoESwA V5Ni7JRjaP4w02Nx1CpJg/ANrgwDDxaO5erNKtx08YcwvPdeckKCFD/QpUo4y27SLG+w KmMj6mBdBS0aJ0LgAJG8wDvrmgn69ZDpMaRI2gPvBBczpjp1Q/0+7EsBFA+8kHjgsKJc QIcwvpuCQLiB7pqIfx97WKEJfBMrL+0NgTESm3OvFjjGImsOMHBducx2QRKJ2MRuBMLc BmDQ== X-Gm-Message-State: AOJu0YyFF4eWWzMbsWHScXK7++2L7hnBBL1J2z0pIlAnr2kGWFCCZCkw uNCrrBgU8xB5D2bthIkL7pnKHOIzkwHUeKB4UhClyXpiRfrJHMgL6UZUBMeeZy9EStSHDt6ZEs9 aZMR5S66+Pg== X-Received: from qkoc11.prod.google.com ([2002:a05:620a:164b:b0:92d:1df4:489b]) (user=jmoroni job=prod-delivery.src-stubby-dispatcher) by 2002:a05:620a:1a20:b0:915:8055:3f91 with SMTP id af79cd13be357-9293c9e8124mr1431690685a.43.1782529017295; Fri, 26 Jun 2026 19:56:57 -0700 (PDT) Date: Sat, 27 Jun 2026 02:56:40 +0000 In-Reply-To: <20260627025642.4064973-1-jmoroni@google.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260627025642.4064973-1-jmoroni@google.com> X-Mailer: git-send-email 2.55.0.rc0.799.gd6f94ed593-goog Message-ID: <20260627025642.4064973-4-jmoroni@google.com> Subject: [PATCH rdma-next 3/5] RDMA/irdma: Use ib_respond_empty_udata where applicable From: Jacob Moroni To: tatyana.e.nikolova@intel.com, jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, Jacob Moroni Content-Type: text/plain; charset="UTF-8" Methods that do not provide any user response should use the ib_respond_empty_udata() helper to ensure that user response buffers are cleared. Signed-off-by: Jacob Moroni --- drivers/infiniband/hw/irdma/verbs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c index 19dcc475c355..d06df520d9be 100644 --- a/drivers/infiniband/hw/irdma/verbs.c +++ b/drivers/infiniband/hw/irdma/verbs.c @@ -457,7 +457,7 @@ static int irdma_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) irdma_free_rsrc(iwdev->rf, iwdev->rf->allocated_pds, iwpd->sc_pd.pd_id); - return 0; + return ib_respond_empty_udata(udata); } /** @@ -585,7 +585,7 @@ static int irdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) iwdev->rf->hwqp1_rsvd = false; irdma_free_qp_rsrc(iwqp); - return 0; + return ib_respond_empty_udata(udata); } /** @@ -1984,7 +1984,7 @@ static int irdma_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata) irdma_srq_wq_destroy(iwdev->rf, srq); irdma_srq_free_rsrc(iwdev->rf, iwsrq); - return 0; + return ib_respond_empty_udata(udata); } /** @@ -2024,7 +2024,7 @@ static int irdma_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata) spin_unlock_irqrestore(&iwceq->ce_lock, flags); irdma_cq_free_rsrc(iwdev->rf, iwcq); - return 0; + return ib_respond_empty_udata(udata); } /** @@ -2256,7 +2256,7 @@ static int irdma_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, iwsrq->sc_srq.srq_limit = info->srq_limit; - return 0; + return ib_respond_empty_udata(udata); } static int irdma_setup_umode_srq(struct irdma_device *iwdev, @@ -3076,7 +3076,7 @@ static int irdma_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) return err_code; } - return 0; + return ib_respond_empty_udata(udata); } /** @@ -4043,7 +4043,7 @@ static int irdma_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata) kfree(iwmr); - return 0; + return ib_respond_empty_udata(udata); } /** -- 2.55.0.rc0.799.gd6f94ed593-goog