Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
addr.c File Reference
#include <linux/mutex.h>
#include <linux/inetdevice.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/module.h>
#include <net/arp.h>
#include <net/neighbour.h>
#include <net/route.h>
#include <net/netevent.h>
#include <net/addrconf.h>
#include <net/ip6_route.h>
#include <rdma/ib_addr.h>

Go to the source code of this file.

Data Structures

struct  addr_req
 

Functions

 MODULE_AUTHOR ("Sean Hefty")
 
 MODULE_DESCRIPTION ("IB Address Translation")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
void rdma_addr_register_client (struct rdma_addr_client *client)
 
 EXPORT_SYMBOL (rdma_addr_register_client)
 
void rdma_addr_unregister_client (struct rdma_addr_client *client)
 
 EXPORT_SYMBOL (rdma_addr_unregister_client)
 
int rdma_copy_addr (struct rdma_dev_addr *dev_addr, struct net_device *dev, const unsigned char *dst_dev_addr)
 
 EXPORT_SYMBOL (rdma_copy_addr)
 
int rdma_translate_ip (struct sockaddr *addr, struct rdma_dev_addr *dev_addr)
 
 EXPORT_SYMBOL (rdma_translate_ip)
 
int rdma_resolve_ip (struct rdma_addr_client *client, struct sockaddr *src_addr, struct sockaddr *dst_addr, struct rdma_dev_addr *addr, int timeout_ms, void(*callback)(int status, struct sockaddr *src_addr, struct rdma_dev_addr *addr, void *context), void *context)
 
 EXPORT_SYMBOL (rdma_resolve_ip)
 
void rdma_addr_cancel (struct rdma_dev_addr *addr)
 
 EXPORT_SYMBOL (rdma_addr_cancel)
 
 module_init (addr_init)
 
 module_exit (addr_cleanup)
 

Function Documentation

EXPORT_SYMBOL ( rdma_addr_register_client  )
EXPORT_SYMBOL ( rdma_addr_unregister_client  )
EXPORT_SYMBOL ( rdma_copy_addr  )
EXPORT_SYMBOL ( rdma_translate_ip  )
EXPORT_SYMBOL ( rdma_resolve_ip  )
EXPORT_SYMBOL ( rdma_addr_cancel  )
MODULE_AUTHOR ( "Sean Hefty"  )
MODULE_DESCRIPTION ( "IB Address Translation"  )
module_exit ( addr_cleanup  )
module_init ( addr_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
void rdma_addr_cancel ( struct rdma_dev_addr addr)

Definition at line 406 of file addr.c.

void rdma_addr_register_client ( struct rdma_addr_client client)

rdma_addr_register_client - Register an address client.

Definition at line 73 of file addr.c.

void rdma_addr_unregister_client ( struct rdma_addr_client client)

rdma_addr_unregister_client - Deregister an address client. : Client object to deregister.

Definition at line 86 of file addr.c.

int rdma_copy_addr ( struct rdma_dev_addr dev_addr,
struct net_device dev,
const unsigned char dst_dev_addr 
)

Definition at line 93 of file addr.c.

int rdma_resolve_ip ( struct rdma_addr_client client,
struct sockaddr src_addr,
struct sockaddr dst_addr,
struct rdma_dev_addr addr,
int  timeout_ms,
void(*)(int status, struct sockaddr *src_addr, struct rdma_dev_addr *addr, void *context callback,
void context 
)

rdma_resolve_ip - Resolve source and destination IP addresses to RDMA hardware addresses. : Address client associated with request. : An optional source address to use in the resolution. If a source address is not provided, a usable address will be returned via the callback. : The destination address to resolve. : A reference to a data location that will receive the resolved addresses. The data location must remain valid until the callback has been invoked. : Amount of time to wait for the address resolution to complete. : Call invoked once address resolution has completed, timed out, or been canceled. A status of 0 indicates success. : User-specified context associated with the call.

Definition at line 348 of file addr.c.

int rdma_translate_ip ( struct sockaddr addr,
struct rdma_dev_addr dev_addr 
)

rdma_translate_ip - Translate a local IP address to an RDMA hardware address.

Definition at line 106 of file addr.c.