Linux Kernel
3.7.1
|
#include <linux/timer.h>
#include <linux/proc_fs.h>
#include <linux/if_bonding.h>
#include <linux/cpumask.h>
#include <linux/in6.h>
#include <linux/netpoll.h>
#include <linux/inetdevice.h>
#include "bond_3ad.h"
#include "bond_alb.h"
Go to the source code of this file.
Data Structures | |
struct | bond_params |
struct | bond_parm_tbl |
struct | vlan_entry |
struct | slave |
struct | bonding |
struct | bond_net |
#define BOND_ARP_VALIDATE_ACTIVE (1 << BOND_STATE_ACTIVE) |
#define BOND_ARP_VALIDATE_ALL |
#define BOND_ARP_VALIDATE_BACKUP (1 << BOND_STATE_BACKUP) |
#define bond_for_each_slave | ( | bond, | |
pos, | |||
cnt | |||
) | bond_for_each_slave_from(bond, pos, cnt, (bond)->first_slave) |
#define bond_slave_get_rcu | ( | dev | ) | ((struct slave *) rcu_dereference(dev->rx_handler_data)) |
#define bond_version DRV_DESCRIPTION ": v" DRV_VERSION " (" DRV_RELDATE ")\n" |
#define IS_UP | ( | dev | ) |
#define SLAVE_IS_OK | ( | slave | ) |
#define TX_QUEUE_OVERRIDE | ( | mode | ) |
#define USES_PRIMARY | ( | mode | ) |
void bond_activebackup_arp_mon | ( | struct work_struct * | ) |
Definition at line 3171 of file bond_main.c.
change_active_interface - change the active slave into the specified one : our bonding struct : the new slave to make the active one
Set the new slave to the bond's settings and unset them on the old curr_active_slave. Setting include flags, mc-list, promiscuity, allmulti, etc.
If 's link state is BOND_LINK_BACK we'll set it to BOND_LINK_UP, because it is apparently the best available slave we have, even though its updelay hasn't timed out yet.
If new_active is not NULL, caller must hold bond->lock for read and curr_slave_lock for write_bh.
Definition at line 1054 of file bond_main.c.
Definition at line 4886 of file bond_main.c.
Definition at line 138 of file bond_debugfs.c.
int bond_create_slave_symlinks | ( | struct net_device * | master, |
struct net_device * | slave | ||
) |
Definition at line 171 of file bond_sysfs.c.
Definition at line 1671 of file bond_sysfs.c.
Definition at line 126 of file bond_debugfs.c.
Definition at line 134 of file bond_debugfs.c.
Definition at line 130 of file bond_debugfs.c.
Definition at line 142 of file bond_debugfs.c.
void bond_destroy_slave_symlinks | ( | struct net_device * | master, |
struct net_device * | slave | ||
) |
Definition at line 190 of file bond_sysfs.c.
Definition at line 1706 of file bond_sysfs.c.
int bond_dev_queue_xmit | ( | struct bonding * | bond, |
struct sk_buff * | skb, | ||
struct net_device * | slave_dev | ||
) |
bond_dev_queue_xmit - Prepare skb for xmit.
: bond device that got this skb for tx. : hw accel VLAN tagged skb to transmit : slave that is supposed to xmit this skbuff
Definition at line 392 of file bond_main.c.
int bond_enslave | ( | struct net_device * | bond_dev, |
struct net_device * | slave_dev | ||
) |
Definition at line 1503 of file bond_main.c.
void bond_loadbalance_arp_mon | ( | struct work_struct * | ) |
Definition at line 2815 of file bond_main.c.
void bond_mii_monitor | ( | struct work_struct * | ) |
Definition at line 2545 of file bond_main.c.
Definition at line 255 of file bond_main.c.
|
read |
bond_next_vlan - safely skip to the next item in the vlans list. : the bond we're working on : item we're advancing from
Returns NULL if list is empty, bond->next_vlan if is NULL, or ->next otherwise (even if it is itself again).
Caller must hold bond->lock
Definition at line 360 of file bond_main.c.
Definition at line 4459 of file bond_main.c.
Definition at line 1715 of file bond_sysfs.c.
int bond_release | ( | struct net_device * | bond_dev, |
struct net_device * | slave_dev | ||
) |
Definition at line 1935 of file bond_main.c.
bond_select_active_slave - select a new active slave, if needed : our bonding struct
This functions should be called when one of the following occurs:
Caller must hold bond->lock for read and curr_slave_lock for write_bh.
Definition at line 1156 of file bond_main.c.
Definition at line 4292 of file bond_main.c.
struct bond_parm_tbl ad_select_tbl[] |
Definition at line 241 of file bond_main.c.
struct bond_parm_tbl arp_validate_tbl[] |
Definition at line 219 of file bond_main.c.
struct bond_parm_tbl bond_lacp_tbl[] |
Definition at line 195 of file bond_main.c.
struct bond_parm_tbl bond_mode_tbl[] |
Definition at line 201 of file bond_main.c.
int bond_net_id |
struct bond_parm_tbl fail_over_mac_tbl[] |
Definition at line 227 of file bond_main.c.
struct bond_parm_tbl pri_reselect_tbl[] |
Definition at line 234 of file bond_main.c.
struct bond_parm_tbl xmit_hashtype_tbl[] |
Definition at line 212 of file bond_main.c.