Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
ib_addr.h File Reference
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/if_arp.h>
#include <linux/netdevice.h>
#include <linux/socket.h>
#include <linux/if_vlan.h>
#include <rdma/ib_verbs.h>
#include <rdma/ib_pack.h>

Go to the source code of this file.

Data Structures

struct  rdma_addr_client
 
struct  rdma_dev_addr
 

Functions

void rdma_addr_register_client (struct rdma_addr_client *client)
 
void rdma_addr_unregister_client (struct rdma_addr_client *client)
 
int rdma_translate_ip (struct sockaddr *addr, struct rdma_dev_addr *dev_addr)
 
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)
 
void rdma_addr_cancel (struct rdma_dev_addr *addr)
 
int rdma_copy_addr (struct rdma_dev_addr *dev_addr, struct net_device *dev, const unsigned char *dst_dev_addr)
 

Function Documentation

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.