~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to lib/bond.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
enum bond_mode {
33
33
    BM_TCP, /* Transport Layer Load Balance. */
34
34
    BM_SLB, /* Source Load Balance. */
35
 
    BM_STABLE, /* Stable. */
36
35
    BM_AB   /* Active Backup. */
37
36
};
38
37
 
62
61
 
63
62
/* Basics. */
64
63
struct bond *bond_create(const struct bond_settings *);
65
 
void bond_destroy(struct bond *);
 
64
void bond_unref(struct bond *);
 
65
struct bond *bond_ref(const struct bond *);
66
66
 
67
67
bool bond_reconfigure(struct bond *, const struct bond_settings *);
68
 
void bond_slave_register(struct bond *, void *slave_,
69
 
                         uint32_t stable_id, struct netdev *);
 
68
void bond_slave_register(struct bond *, void *slave_, struct netdev *);
70
69
void bond_slave_set_netdev(struct bond *, void *slave_, struct netdev *);
71
70
void bond_slave_unregister(struct bond *, const void *slave);
72
71
 
90
89
enum bond_verdict bond_check_admissibility(struct bond *, const void *slave_,
91
90
                                           const uint8_t eth_dst[ETH_ADDR_LEN],
92
91
                                           tag_type *);
93
 
void *bond_choose_output_slave(struct bond *,
94
 
                               const struct flow *, uint16_t vlan, tag_type *);
 
92
void *bond_choose_output_slave(struct bond *, const struct flow *,
 
93
                               struct flow_wildcards *, uint16_t vlan,
 
94
                               tag_type *);
95
95
 
96
96
/* Rebalancing. */
97
97
void bond_account(struct bond *, const struct flow *, uint16_t vlan,