[PATCH rdma-core 0/5] Add directory to place common code and move trivial functions into it

Leon Romanovsky
2016-09-25T06:50:02Z

This is patch series which adds directory to place common code.

Highlights of this this series:
1. The min/max functions were moved into it.
2. OCRDMA list implementation was chosen as common code.
3. Libmlx5 was converted to use that list.h.
4. Remove container_of and offset local declarations.

View the commits on github:

https://github.com/linux-rdma/rdma-core/pull/4

Leon Romanovsky (5):
cmake: Update build instructions in CmakeList
utils: Create utils directory to put all common code and move min/max
into it
utils: Remove container_of and offset local declarations
libocrdma: Move ocrdma's list implementation into common directory
libmlx5: Convert libmlx5 to use common list implementation

CMakeLists.txt | 7 +
ibacm/linux/osd.h | 8 +-
libibverbs/examples/rc_pingpong.c | 8 +-
libmlx5/src/buf.c | 13 +-
libmlx5/src/list.h | 331 --------------------------------------
libmlx5/src/mlx5.h | 20 +--
libocrdma/src/ocrdma_list.h | 104 ------------
libocrdma/src/ocrdma_main.c | 8 +-
libocrdma/src/ocrdma_main.h | 12 +-
libocrdma/src/ocrdma_verbs.c | 16 +-
librdmacm/src/cma.h | 11 +-
utils/list.h | 111 +++++++++++++
utils/math.h | 44 +++++
13 files changed, 196 insertions(+), 497 deletions(-)
delete mode 100644 libmlx5/src/list.h
delete mode 100644 libocrdma/src/ocrdma_list.h
create mode 100644 utils/list.h
create mode 100644 utils/math.h

--
2.7.4