[PATCH rdma-next v1 0/3] RDMA/mana_ib: Introduce three helper functions to clean code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Konstantin Taranov <kotaranov@xxxxxxxxxxxxx>

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





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux