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