Go to the documentation of this file.
43 #ifndef _LINUX_IF_BONDING_H
44 #define _LINUX_IF_BONDING_H
47 #include <linux/types.h>
48 #include <linux/if_ether.h>
51 #define BOND_ABI_VERSION 2
57 #define BOND_ENSLAVE_OLD (SIOCDEVPRIVATE)
58 #define BOND_RELEASE_OLD (SIOCDEVPRIVATE + 1)
59 #define BOND_SETHWADDR_OLD (SIOCDEVPRIVATE + 2)
60 #define BOND_SLAVE_INFO_QUERY_OLD (SIOCDEVPRIVATE + 11)
61 #define BOND_INFO_QUERY_OLD (SIOCDEVPRIVATE + 12)
62 #define BOND_CHANGE_ACTIVE_OLD (SIOCDEVPRIVATE + 13)
64 #define BOND_CHECK_MII_STATUS (SIOCGMIIPHY)
66 #define BOND_MODE_ROUNDROBIN 0
67 #define BOND_MODE_ACTIVEBACKUP 1
68 #define BOND_MODE_XOR 2
69 #define BOND_MODE_BROADCAST 3
70 #define BOND_MODE_8023AD 4
71 #define BOND_MODE_TLB 5
72 #define BOND_MODE_ALB 6
75 #define BOND_LINK_UP 0
76 #define BOND_LINK_FAIL 1
77 #define BOND_LINK_DOWN 2
78 #define BOND_LINK_BACK 3
81 #define BOND_STATE_ACTIVE 0
82 #define BOND_STATE_BACKUP 1
84 #define BOND_DEFAULT_MAX_BONDS 1
86 #define BOND_DEFAULT_TX_QUEUES 16
88 #define BOND_DEFAULT_RESEND_IGMP 1
91 #define BOND_XMIT_POLICY_LAYER2 0
92 #define BOND_XMIT_POLICY_LAYER34 1
93 #define BOND_XMIT_POLICY_LAYER23 2