zrlio / urdma

Verbs on DPDK
102 stars 24 forks source link

Pre-rdma-core cleanup #25

Closed patrickmacarthur closed 6 years ago

patrickmacarthur commented 6 years ago

Ubuntu 18.04 (due to release next week) will ship with rdma-core, which no longer installs the driver-facing header files. Instead, rdma-core wants drivers to be upstream. We are not really in the position to upstream this for many reasons, but we do need to make the transition to build against the version of rdma-core in Ubuntu 18.04.

For the first step, we need to be able to cope with its build system. This patch set fixes some miscellaneous issues and makes urdma build without warnings using the same warning CFLAGS that rdma-core master uses with GCC 7:

Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wformat=2 -Wshadow -Wstrict-prototypes -Wold-style-definition -Wredundant-decls

Future steps after this is merged include (2) updating the code to compile using DPDK 17.11.1 and the kernel version shipped with Ubuntu 18.04, (3) switching from sys/queue.h to the ccan list implementation used by rdma-core, and (4) updating the verbs driver APIs to the ones used by the rdma-core version in Ubuntu 18.04. We will need to either import those headers into this package or flat out make this repository a fork of rdma-core with urdma included.