Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ehca_mcast.c File Reference
#include <linux/module.h>
#include <linux/err.h>
#include "ehca_classes.h"
#include "ehca_tools.h"
#include "ehca_qes.h"
#include "ehca_iverbs.h"
#include "hcp_if.h"

Go to the source code of this file.

Macros

#define MAX_MC_LID   0xFFFE
 
#define MIN_MC_LID   0xC000 /* Multicast limits */
 
#define EHCA_VALID_MULTICAST_GID(gid)   ((gid)[0] == 0xFF)
 
#define EHCA_VALID_MULTICAST_LID(lid)   (((lid) >= MIN_MC_LID) && ((lid) <= MAX_MC_LID))
 

Functions

int ehca_attach_mcast (struct ib_qp *ibqp, union ib_gid *gid, u16 lid)
 
int ehca_detach_mcast (struct ib_qp *ibqp, union ib_gid *gid, u16 lid)
 

Macro Definition Documentation

#define EHCA_VALID_MULTICAST_GID (   gid)    ((gid)[0] == 0xFF)

Definition at line 55 of file ehca_mcast.c.

#define EHCA_VALID_MULTICAST_LID (   lid)    (((lid) >= MIN_MC_LID) && ((lid) <= MAX_MC_LID))

Definition at line 56 of file ehca_mcast.c.

#define MAX_MC_LID   0xFFFE

Definition at line 53 of file ehca_mcast.c.

#define MIN_MC_LID   0xC000 /* Multicast limits */

Definition at line 54 of file ehca_mcast.c.

Function Documentation

int ehca_attach_mcast ( struct ib_qp ibqp,
union ib_gid gid,
u16  lid 
)

Definition at line 59 of file ehca_mcast.c.

int ehca_detach_mcast ( struct ib_qp ibqp,
union ib_gid gid,
u16  lid 
)

Definition at line 96 of file ehca_mcast.c.