Example #1
0
static void init_ib(void)
{
    rdma_ib_device.ibclient.name = "FBOX_DISAG_MEM";
    rdma_ib_device.ibclient.add = add_device;
    rdma_ib_device.ibclient.remove = remove_device;
    ib_register_client(&rdma_ib_device.ibclient);
}
Example #2
0
static int init_pfmr(void)
{
	int rc;
	rc = ib_register_client(&test_client);
	if (rc) {
		error("failed register IB client rc=%d\n",rc);
		return -ENODEV;
	}
	info("Protected FMRs test is Loaded\n");
	return 0;
}
Example #3
0
static int __init verbs_init (void)
{
	int res = 0;

	printk (KERN_INFO "Verbs test module\n");

	if (!server_addr)
		res = make_server_socket ();

	if (res) {
		printk (KERN_INFO "Socket creation failed: %d\n", res);
		return -EINVAL;
	}

	/* register Subnet Administrator client` */
	ib_sa_register_client(&verbs_sa_client);

	if (ib_register_client (&client)) {
		printk (KERN_WARNING "IB client registration failed. Is IB modules loaded?\n");
		return -ENODEV;
	}

	return 0;
}
Example #4
0
int __init ib_cache_setup(void)
{
	return ib_register_client(&cache_client);
}
int __init roce_gid_cache_setup(void)
{
	roce_gid_mgmt_init();

	return ib_register_client(&cache_client);
}