Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <1705965781-3235-1-git-send-email-kotaranov@linux.microsoft.com> (raw)

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
-- 
2.43.0


             reply	other threads:[~2024-01-22 23:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-22 23:22 Konstantin Taranov [this message]
2024-01-22 23:22 ` [PATCH rdma-next v1 1/3] RDMA/mana_ib: introduce mdev_to_gc helper function Konstantin Taranov
2024-01-22 23:23 ` [PATCH rdma-next v1 2/3] RDMA/mana_ib: introduce mana_ib_get_netdev " Konstantin Taranov
2024-01-22 23:23 ` [PATCH rdma-next v1 3/3] RDMA/mana_ib: introduce mana_ib_install_cq_cb " Konstantin Taranov
2024-01-25 10:03 ` [PATCH rdma-next v1 0/3] RDMA/mana_ib: Introduce three helper functions to clean code Leon Romanovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1705965781-3235-1-git-send-email-kotaranov@linux.microsoft.com \
    --to=kotaranov@linux.microsoft.com \
    --cc=jgg@ziepe.ca \
    --cc=kotaranov@microsoft.com \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=longli@microsoft.com \
    --cc=sharmaajay@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox