Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mcg.c File Reference
#include <linux/string.h>
#include <linux/etherdevice.h>
#include <linux/mlx4/cmd.h>
#include <linux/export.h>
#include "mlx4.h"

Go to the source code of this file.

Data Structures

struct  mlx4_mgm
 

Macros

#define MGM_QPN_MASK   0x00FFFFFF
 
#define MGM_BLCK_LB_BIT   30
 
#define BUF_SIZE   256
 

Functions

int mlx4_get_mgm_entry_size (struct mlx4_dev *dev)
 
int mlx4_get_qp_per_mgm (struct mlx4_dev *dev)
 
int mlx4_flow_attach (struct mlx4_dev *dev, struct mlx4_net_trans_rule *rule, u64 *reg_id)
 
 EXPORT_SYMBOL_GPL (mlx4_flow_attach)
 
int mlx4_flow_detach (struct mlx4_dev *dev, u64 reg_id)
 
 EXPORT_SYMBOL_GPL (mlx4_flow_detach)
 
int mlx4_qp_attach_common (struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], int block_mcast_loopback, enum mlx4_protocol prot, enum mlx4_steer_type steer)
 
int mlx4_qp_detach_common (struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], enum mlx4_protocol prot, enum mlx4_steer_type steer)
 
int mlx4_multicast_attach (struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], u8 port, int block_mcast_loopback, enum mlx4_protocol prot, u64 *reg_id)
 
 EXPORT_SYMBOL_GPL (mlx4_multicast_attach)
 
int mlx4_multicast_detach (struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], enum mlx4_protocol prot, u64 reg_id)
 
 EXPORT_SYMBOL_GPL (mlx4_multicast_detach)
 
int mlx4_flow_steer_promisc_add (struct mlx4_dev *dev, u8 port, u32 qpn, enum mlx4_net_trans_promisc_mode mode)
 
 EXPORT_SYMBOL_GPL (mlx4_flow_steer_promisc_add)
 
int mlx4_flow_steer_promisc_remove (struct mlx4_dev *dev, u8 port, enum mlx4_net_trans_promisc_mode mode)
 
 EXPORT_SYMBOL_GPL (mlx4_flow_steer_promisc_remove)
 
int mlx4_unicast_attach (struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], int block_mcast_loopback, enum mlx4_protocol prot)
 
 EXPORT_SYMBOL_GPL (mlx4_unicast_attach)
 
int mlx4_unicast_detach (struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], enum mlx4_protocol prot)
 
 EXPORT_SYMBOL_GPL (mlx4_unicast_detach)
 
int mlx4_PROMISC_wrapper (struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, struct mlx4_cmd_mailbox *inbox, struct mlx4_cmd_mailbox *outbox, struct mlx4_cmd_info *cmd)
 
int mlx4_multicast_promisc_add (struct mlx4_dev *dev, u32 qpn, u8 port)
 
 EXPORT_SYMBOL_GPL (mlx4_multicast_promisc_add)
 
int mlx4_multicast_promisc_remove (struct mlx4_dev *dev, u32 qpn, u8 port)
 
 EXPORT_SYMBOL_GPL (mlx4_multicast_promisc_remove)
 
int mlx4_unicast_promisc_add (struct mlx4_dev *dev, u32 qpn, u8 port)
 
 EXPORT_SYMBOL_GPL (mlx4_unicast_promisc_add)
 
int mlx4_unicast_promisc_remove (struct mlx4_dev *dev, u32 qpn, u8 port)
 
 EXPORT_SYMBOL_GPL (mlx4_unicast_promisc_remove)
 
int mlx4_init_mcg_table (struct mlx4_dev *dev)
 
void mlx4_cleanup_mcg_table (struct mlx4_dev *dev)
 

Variables

const u16 __sw_id_hw []
 

Macro Definition Documentation

#define BUF_SIZE   256
#define MGM_BLCK_LB_BIT   30

Definition at line 43 of file mcg.c.

#define MGM_QPN_MASK   0x00FFFFFF

Definition at line 42 of file mcg.c.

Function Documentation

EXPORT_SYMBOL_GPL ( mlx4_flow_attach  )
EXPORT_SYMBOL_GPL ( mlx4_flow_detach  )
EXPORT_SYMBOL_GPL ( mlx4_multicast_attach  )
EXPORT_SYMBOL_GPL ( mlx4_multicast_detach  )
EXPORT_SYMBOL_GPL ( mlx4_flow_steer_promisc_add  )
EXPORT_SYMBOL_GPL ( mlx4_flow_steer_promisc_remove  )
EXPORT_SYMBOL_GPL ( mlx4_unicast_attach  )
EXPORT_SYMBOL_GPL ( mlx4_unicast_detach  )
EXPORT_SYMBOL_GPL ( mlx4_multicast_promisc_add  )
EXPORT_SYMBOL_GPL ( mlx4_multicast_promisc_remove  )
EXPORT_SYMBOL_GPL ( mlx4_unicast_promisc_add  )
EXPORT_SYMBOL_GPL ( mlx4_unicast_promisc_remove  )
void mlx4_cleanup_mcg_table ( struct mlx4_dev dev)

Definition at line 1395 of file mcg.c.

int mlx4_flow_attach ( struct mlx4_dev dev,
struct mlx4_net_trans_rule rule,
u64 reg_id 
)

Definition at line 830 of file mcg.c.

int mlx4_flow_detach ( struct mlx4_dev dev,
u64  reg_id 
)

Definition at line 870 of file mcg.c.

int mlx4_flow_steer_promisc_add ( struct mlx4_dev dev,
u8  port,
u32  qpn,
enum mlx4_net_trans_promisc_mode  mode 
)

Definition at line 1223 of file mcg.c.

int mlx4_flow_steer_promisc_remove ( struct mlx4_dev dev,
u8  port,
enum mlx4_net_trans_promisc_mode  mode 
)

Definition at line 1254 of file mcg.c.

int mlx4_get_mgm_entry_size ( struct mlx4_dev dev)

Definition at line 55 of file mcg.c.

int mlx4_get_qp_per_mgm ( struct mlx4_dev dev)

Definition at line 65 of file mcg.c.

int mlx4_init_mcg_table ( struct mlx4_dev dev)

Definition at line 1376 of file mcg.c.

int mlx4_multicast_attach ( struct mlx4_dev dev,
struct mlx4_qp qp,
u8  gid[16],
u8  port,
int  block_mcast_loopback,
enum mlx4_protocol  prot,
u64 reg_id 
)

Definition at line 1133 of file mcg.c.

int mlx4_multicast_detach ( struct mlx4_dev dev,
struct mlx4_qp qp,
u8  gid[16],
enum mlx4_protocol  prot,
u64  reg_id 
)

Definition at line 1196 of file mcg.c.

int mlx4_multicast_promisc_add ( struct mlx4_dev dev,
u32  qpn,
u8  port 
)

Definition at line 1340 of file mcg.c.

int mlx4_multicast_promisc_remove ( struct mlx4_dev dev,
u32  qpn,
u8  port 
)

Definition at line 1349 of file mcg.c.

int mlx4_PROMISC_wrapper ( struct mlx4_dev dev,
int  slave,
struct mlx4_vhcr vhcr,
struct mlx4_cmd_mailbox inbox,
struct mlx4_cmd_mailbox outbox,
struct mlx4_cmd_info cmd 
)

Definition at line 1312 of file mcg.c.

int mlx4_qp_attach_common ( struct mlx4_dev dev,
struct mlx4_qp qp,
u8  gid[16],
int  block_mcast_loopback,
enum mlx4_protocol  prot,
enum mlx4_steer_type  steer 
)

Definition at line 882 of file mcg.c.

int mlx4_qp_detach_common ( struct mlx4_dev dev,
struct mlx4_qp qp,
u8  gid[16],
enum mlx4_protocol  prot,
enum mlx4_steer_type  steer 
)

Definition at line 991 of file mcg.c.

int mlx4_unicast_attach ( struct mlx4_dev dev,
struct mlx4_qp qp,
u8  gid[16],
int  block_mcast_loopback,
enum mlx4_protocol  prot 
)

Definition at line 1283 of file mcg.c.

int mlx4_unicast_detach ( struct mlx4_dev dev,
struct mlx4_qp qp,
u8  gid[16],
enum mlx4_protocol  prot 
)

Definition at line 1299 of file mcg.c.

int mlx4_unicast_promisc_add ( struct mlx4_dev dev,
u32  qpn,
u8  port 
)

Definition at line 1358 of file mcg.c.

int mlx4_unicast_promisc_remove ( struct mlx4_dev dev,
u32  qpn,
u8  port 
)

Definition at line 1367 of file mcg.c.

Variable Documentation

const u16 __sw_id_hw[]
Initial value:

Definition at line 676 of file mcg.c.