Message ID | 1705965781-3235-1-git-send-email-kotaranov@linux.microsoft.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-34290-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp13315dyi; Mon, 22 Jan 2024 15:23:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwPTlFnt2obsLwWFsny9bcU1PEg6zZb1HLYwQ15rJ/dCfvrwDUe+H+/UMBJMqUWrHZqQmI X-Received: by 2002:a37:ef11:0:b0:783:7e10:c515 with SMTP id j17-20020a37ef11000000b007837e10c515mr6558927qkk.152.1705965827253; Mon, 22 Jan 2024 15:23:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705965827; cv=pass; d=google.com; s=arc-20160816; b=C0Xa25Vu0+OJ4hT5fKX3W9ZgM5jTb4xmY6aFClqooDW1j3XCERJ85qMEUWkEDdWnXK c1az6DiSFeJVYcWpRlHX9rQb8ph9iXkZhD0e4cYeeeP+UuCbF7SFqPjzEDVcfyVVULLJ A3Iiyzlg6n/r4RHQ6bDFE4Yjg6vxnOYGPA7VoTXxQXHdvRQjpApLog5K+D3pSYB20a62 IsKiOT2m8hhAv9agzoWNJgNL84WqJbHDez/rgYsAxY6Gmpx+qXNJYI4gzrellvwmc3H6 yf1v6bWKezZHsQnutKOw1YvLgBl9dcj7oR0ZIdQvCG9IDRq9oaS3c/X8kujPiBHpnIFz HBQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=nTh23HnZRdP/6Sx5yekzRTq2MwUPNWD0l+ejJL4d8AQ=; fh=ujksmUrBEjpGhQjWbrjZMx9PDXUXbYR/j4y8MAq1x1o=; b=v5SU2wXuDgC7C4MRjI5rnA1cJZhKVWw7kj6e1J/t1VDsvHqPNBWgDNBjV8ZK2ZqJHc nEQhWOQ286NgAbjpGjP6BbhRYBtL+cJCnm401FXyKofp/62Iz61GaX7GSAHSc8b3uggt PUm97nTsHZboGuhdUOjmU3flFuVz2lSvDtaCu4lPxhOIxleENHOOdDxyrqq+8epGOe1f ctKdMwzTrR4ZqNO6cNrKbX2fd/r/SZBgqrdigl9JFomUWb5ZeID560D37NtdJrnKY/Y2 RqURtCC4h9ZzQuQ1tmi8rDbscwpZ8W8nN/IWbwVgt9DE4p0Rp8dfJTUVSGw8b2ADNAfc rj0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=iAt7YVGP; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-34290-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34290-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p17-20020ae9f311000000b00783673d394bsi6394815qkg.155.2024.01.22.15.23.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 15:23:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34290-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=iAt7YVGP; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-34290-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34290-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 10F001C23418 for <ouuuleilei@gmail.com>; Mon, 22 Jan 2024 23:23:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB26F4E1AA; Mon, 22 Jan 2024 23:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="iAt7YVGP" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E16124CDFF; Mon, 22 Jan 2024 23:23:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705965792; cv=none; b=sRsHdgeYBnVvSBbmVT6WPp9DqKfpNbfX33+5EQp/ppKAyNHLPJ9AZTS+mWt8FERUpiwsj9ngZyoi14XhXfKI1TGjEHoVg3qoJ4MbddJGmhhzu87xlxasINLhnDIy+6FGe3q27NkPVdFevL2UO6JbhbqHRboFq/e7MF6h5txzTPA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705965792; c=relaxed/simple; bh=eLJhNzdFZj3RlP7C0RvlpZ87zYE+Z2S+CabRM8UsbZQ=; h=From:To:Cc:Subject:Date:Message-Id; b=r5NvJlRdushJJAujNBmxi1ZuIktXic66Fl8TcSlL8ZLyotOMlvEi7/NVb3NFdGACM0KgSLZ+Ki+I3hFFbkEIds7tylzFrsf9cJ3RGmppD8Ufd6NiQmzudYMe1ZSnKkJtIjwgP0a4oSHkXzFq8CSPWtrMco1ZNxg5+t0C37k74BA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=iAt7YVGP; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 75C2120E2C18; Mon, 22 Jan 2024 15:23:10 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 75C2120E2C18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1705965790; bh=nTh23HnZRdP/6Sx5yekzRTq2MwUPNWD0l+ejJL4d8AQ=; h=From:To:Cc:Subject:Date:From; b=iAt7YVGPAUXBwHjlUekjBctC05U3DbUMvOVJ/UzaRzdQiAEU/111LXnrg/Z5NN25j kqBFK2rOqeLWa3jp3HsH+GI4WoDJ6nSl+dgT/EWFK1uS1q3xxBsfG3nrTGiwwfzMNB w0y4vHsDKpaFATKhWRqqR1lmZwxjF7J/2Tz6kI+Y= From: Konstantin Taranov <kotaranov@linux.microsoft.com> To: kotaranov@microsoft.com, sharmaajay@microsoft.com, longli@microsoft.com, jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH rdma-next v1 0/3] RDMA/mana_ib: Introduce three helper functions to clean code Date: Mon, 22 Jan 2024 15:22:58 -0800 Message-Id: <1705965781-3235-1-git-send-email-kotaranov@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788834823441516503 X-GMAIL-MSGID: 1788834823441516503 |
Series |
RDMA/mana_ib: Introduce three helper functions to clean code
|
|
Message
Konstantin Taranov
Jan. 22, 2024, 11:22 p.m. UTC
From: Konstantin Taranov <kotaranov@microsoft.com>
This patchset aims to remove code repetitions in mana_ib
as well as to avoid explicit use of the gdma_dev.
The gdma_dev was either ethernet or IB device depending on
the usage, which was often easy to confuse and misuse.
Introduced functions:
1) mdev_to_gc
2) mana_ib_get_netdev
3) mana_ib_install_cq_cb
Konstantin Taranov (3):
RDMA/mana_ib: introduce mdev_to_gc helper function
RDMA/mana_ib: introduce mana_ib_get_netdev helper function
RDMA/mana_ib: introduce mana_ib_install_cq_cb helper function
drivers/infiniband/hw/mana/cq.c | 25 +++++++-
drivers/infiniband/hw/mana/main.c | 40 +++++--------
drivers/infiniband/hw/mana/mana_ib.h | 20 ++++++-
drivers/infiniband/hw/mana/mr.c | 13 +---
drivers/infiniband/hw/mana/qp.c | 88 +++++++++-------------------
5 files changed, 84 insertions(+), 102 deletions(-)
base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d
Comments
On Mon, 22 Jan 2024 15:22:58 -0800, Konstantin Taranov wrote: > From: Konstantin Taranov <kotaranov@microsoft.com> > > This patchset aims to remove code repetitions in mana_ib > as well as to avoid explicit use of the gdma_dev. > The gdma_dev was either ethernet or IB device depending on > the usage, which was often easy to confuse and misuse. > > [...] Applied, thanks! [1/3] RDMA/mana_ib: introduce mdev_to_gc helper function https://git.kernel.org/rdma/rdma/c/71c8cbfcdc8f1d [2/3] RDMA/mana_ib: introduce mana_ib_get_netdev helper function https://git.kernel.org/rdma/rdma/c/3b73eb3a4acdf5 [3/3] RDMA/mana_ib: introduce mana_ib_install_cq_cb helper function https://git.kernel.org/rdma/rdma/c/2a31c5a7e0d879 Best regards,