Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
if_bonding.h File Reference
#include <linux/if.h>
#include <linux/types.h>
#include <linux/if_ether.h>

Go to the source code of this file.

Data Structures

struct  ifbond
 
struct  ifslave
 
struct  ad_info
 

Macros

#define BOND_ABI_VERSION   2
 
#define BOND_ENSLAVE_OLD   (SIOCDEVPRIVATE)
 
#define BOND_RELEASE_OLD   (SIOCDEVPRIVATE + 1)
 
#define BOND_SETHWADDR_OLD   (SIOCDEVPRIVATE + 2)
 
#define BOND_SLAVE_INFO_QUERY_OLD   (SIOCDEVPRIVATE + 11)
 
#define BOND_INFO_QUERY_OLD   (SIOCDEVPRIVATE + 12)
 
#define BOND_CHANGE_ACTIVE_OLD   (SIOCDEVPRIVATE + 13)
 
#define BOND_CHECK_MII_STATUS   (SIOCGMIIPHY)
 
#define BOND_MODE_ROUNDROBIN   0
 
#define BOND_MODE_ACTIVEBACKUP   1
 
#define BOND_MODE_XOR   2
 
#define BOND_MODE_BROADCAST   3
 
#define BOND_MODE_8023AD   4
 
#define BOND_MODE_TLB   5
 
#define BOND_MODE_ALB   6 /* TLB + RLB (receive load balancing) */
 
#define BOND_LINK_UP   0 /* link is up and running */
 
#define BOND_LINK_FAIL   1 /* link has just gone down */
 
#define BOND_LINK_DOWN   2 /* link has been down for too long time */
 
#define BOND_LINK_BACK   3 /* link is going back */
 
#define BOND_STATE_ACTIVE   0 /* link is active */
 
#define BOND_STATE_BACKUP   1 /* link is backup */
 
#define BOND_DEFAULT_MAX_BONDS   1 /* Default maximum number of devices to support */
 
#define BOND_DEFAULT_TX_QUEUES   16 /* Default number of tx queues per device */
 
#define BOND_DEFAULT_RESEND_IGMP   1 /* Default number of IGMP membership reports */
 
#define BOND_XMIT_POLICY_LAYER2   0 /* layer 2 (MAC only), default */
 
#define BOND_XMIT_POLICY_LAYER34   1 /* layer 3+4 (IP ^ (TCP || UDP)) */
 
#define BOND_XMIT_POLICY_LAYER23   2 /* layer 2+3 (IP ^ MAC) */
 

Typedefs

typedef struct ifbond ifbond
 
typedef struct ifslave ifslave
 

Macro Definition Documentation

#define BOND_ABI_VERSION   2

Definition at line 51 of file if_bonding.h.

#define BOND_CHANGE_ACTIVE_OLD   (SIOCDEVPRIVATE + 13)

Definition at line 62 of file if_bonding.h.

#define BOND_CHECK_MII_STATUS   (SIOCGMIIPHY)

Definition at line 64 of file if_bonding.h.

#define BOND_DEFAULT_MAX_BONDS   1 /* Default maximum number of devices to support */

Definition at line 84 of file if_bonding.h.

#define BOND_DEFAULT_RESEND_IGMP   1 /* Default number of IGMP membership reports */

Definition at line 88 of file if_bonding.h.

#define BOND_DEFAULT_TX_QUEUES   16 /* Default number of tx queues per device */

Definition at line 86 of file if_bonding.h.

#define BOND_ENSLAVE_OLD   (SIOCDEVPRIVATE)

Definition at line 57 of file if_bonding.h.

#define BOND_INFO_QUERY_OLD   (SIOCDEVPRIVATE + 12)

Definition at line 61 of file if_bonding.h.

#define BOND_LINK_BACK   3 /* link is going back */

Definition at line 78 of file if_bonding.h.

#define BOND_LINK_DOWN   2 /* link has been down for too long time */

Definition at line 77 of file if_bonding.h.

#define BOND_LINK_FAIL   1 /* link has just gone down */

Definition at line 76 of file if_bonding.h.

#define BOND_LINK_UP   0 /* link is up and running */

Definition at line 75 of file if_bonding.h.

#define BOND_MODE_8023AD   4

Definition at line 70 of file if_bonding.h.

#define BOND_MODE_ACTIVEBACKUP   1

Definition at line 67 of file if_bonding.h.

#define BOND_MODE_ALB   6 /* TLB + RLB (receive load balancing) */

Definition at line 72 of file if_bonding.h.

#define BOND_MODE_BROADCAST   3

Definition at line 69 of file if_bonding.h.

#define BOND_MODE_ROUNDROBIN   0

Definition at line 66 of file if_bonding.h.

#define BOND_MODE_TLB   5

Definition at line 71 of file if_bonding.h.

#define BOND_MODE_XOR   2

Definition at line 68 of file if_bonding.h.

#define BOND_RELEASE_OLD   (SIOCDEVPRIVATE + 1)

Definition at line 58 of file if_bonding.h.

#define BOND_SETHWADDR_OLD   (SIOCDEVPRIVATE + 2)

Definition at line 59 of file if_bonding.h.

#define BOND_SLAVE_INFO_QUERY_OLD   (SIOCDEVPRIVATE + 11)

Definition at line 60 of file if_bonding.h.

#define BOND_STATE_ACTIVE   0 /* link is active */

Definition at line 81 of file if_bonding.h.

#define BOND_STATE_BACKUP   1 /* link is backup */

Definition at line 82 of file if_bonding.h.

#define BOND_XMIT_POLICY_LAYER2   0 /* layer 2 (MAC only), default */

Definition at line 91 of file if_bonding.h.

#define BOND_XMIT_POLICY_LAYER23   2 /* layer 2+3 (IP ^ MAC) */

Definition at line 93 of file if_bonding.h.

#define BOND_XMIT_POLICY_LAYER34   1 /* layer 3+4 (IP ^ (TCP || UDP)) */

Definition at line 92 of file if_bonding.h.

Typedef Documentation

typedef struct ifbond ifbond