linux/drivers/infiniband/sw/rxe/rxe.c

// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
/*
 * Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
 * Copyright (c) 2015 System Fabric Works, Inc. All rights reserved.
 */

#include <rdma/rdma_netlink.h>
#include <net/addrconf.h>
#include "rxe.h"
#include "rxe_loc.h"

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();

/* free resources for a rxe device all objects created for this device must
 * have been destroyed
 */
void rxe_dealloc(struct ib_device *ib_dev)
{}

/* initialize rxe device parameters */
static void rxe_init_device_param(struct rxe_dev *rxe)
{}

/* initialize port attributes */
static void rxe_init_port_param(struct rxe_port *port)
{}

/* initialize port state, note IB convention that HCA ports are always
 * numbered from 1
 */
static void rxe_init_ports(struct rxe_dev *rxe)
{}

/* init pools of managed objects */
static void rxe_init_pools(struct rxe_dev *rxe)
{}

/* initialize rxe device state */
static void rxe_init(struct rxe_dev *rxe)
{}

void rxe_set_mtu(struct rxe_dev *rxe, unsigned int ndev_mtu)
{}

/* called by ifc layer to create new rxe device.
 * The caller should allocate memory for rxe by calling ib_alloc_device.
 */
int rxe_add(struct rxe_dev *rxe, unsigned int mtu, const char *ibdev_name)
{}

static int rxe_newlink(const char *ibdev_name, struct net_device *ndev)
{}

static struct rdma_link_ops rxe_link_ops =;

static int __init rxe_module_init(void)
{}

static void __exit rxe_module_exit(void)
{}

late_initcall(rxe_module_init);
module_exit(rxe_module_exit);

MODULE_ALIAS_RDMA_LINK();