RDMA/cma: Replace net_device pointer with index