Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
team_mode_loadbalance.c File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/filter.h>
#include <linux/if_team.h>

Go to the source code of this file.

Data Structures

struct  lb_stats
 
struct  lb_pcpu_stats
 
struct  lb_stats_info
 
struct  lb_port_mapping
 
struct  lb_priv_ex
 
struct  lb_priv
 
struct  lb_port_priv
 
struct  lb_select_tx_port
 

Macros

#define LB_TX_HASHTABLE_SIZE   256 /* hash is a char */
 
#define LB_HTPM_PORT_BY_HASH(lp_priv, hash)   (lb_priv)->ex->tx_hash_to_port_mapping[hash].port
 
#define LB_HTPM_OPT_INST_INFO_BY_HASH(lp_priv, hash)   (lb_priv)->ex->tx_hash_to_port_mapping[hash].opt_inst_info
 
#define LB_SELECT_TX_PORT_LIST_COUNT   ARRAY_SIZE(lb_select_tx_port_list)
 

Typedefs

typedef struct team_portlb_select_tx_port_func_t (struct team *, struct lb_priv *, struct sk_buff *, unsigned char)
 

Functions

 module_init (lb_init_module)
 
 module_exit (lb_cleanup_module)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Jiri Pirko <[email protected]>")
 
 MODULE_DESCRIPTION ("Load-balancing mode for team")
 
 MODULE_ALIAS ("team-mode-loadbalance")
 

Macro Definition Documentation

#define LB_HTPM_OPT_INST_INFO_BY_HASH (   lp_priv,
  hash 
)    (lb_priv)->ex->tx_hash_to_port_mapping[hash].opt_inst_info

Definition at line 85 of file team_mode_loadbalance.c.

#define LB_HTPM_PORT_BY_HASH (   lp_priv,
  hash 
)    (lb_priv)->ex->tx_hash_to_port_mapping[hash].port

Definition at line 82 of file team_mode_loadbalance.c.

#define LB_SELECT_TX_PORT_LIST_COUNT   ARRAY_SIZE(lb_select_tx_port_list)

Definition at line 145 of file team_mode_loadbalance.c.

#define LB_TX_HASHTABLE_SIZE   256 /* hash is a char */

Definition at line 27 of file team_mode_loadbalance.c.

Typedef Documentation

typedef struct team_port* lb_select_tx_port_func_t(struct team *, struct lb_priv *, struct sk_buff *, unsigned char)
read

Definition at line 22 of file team_mode_loadbalance.c.

Function Documentation

MODULE_ALIAS ( "team-mode-loadbalance"  )
MODULE_AUTHOR ( "Jiri Pirko <[email protected]>"  )
MODULE_DESCRIPTION ( "Load-balancing mode for team )
module_exit ( lb_cleanup_module  )
module_init ( lb_init_module  )
MODULE_LICENSE ( "GPL v2 )