| .. | .. |
|---|
| 73 | 73 | |
|---|
| 74 | 74 | bool tipc_link_create(struct net *net, char *if_name, int bearer_id, |
|---|
| 75 | 75 | int tolerance, char net_plane, u32 mtu, int priority, |
|---|
| 76 | | - int window, u32 session, u32 ownnode, |
|---|
| 76 | + u32 min_win, u32 max_win, u32 session, u32 ownnode, |
|---|
| 77 | 77 | u32 peer, u8 *peer_id, u16 peer_caps, |
|---|
| 78 | 78 | struct tipc_link *bc_sndlink, |
|---|
| 79 | 79 | struct tipc_link *bc_rcvlink, |
|---|
| 80 | 80 | struct sk_buff_head *inputq, |
|---|
| 81 | 81 | struct sk_buff_head *namedq, |
|---|
| 82 | 82 | struct tipc_link **link); |
|---|
| 83 | | -bool tipc_link_bc_create(struct net *net, u32 ownnode, u32 peer, |
|---|
| 84 | | - int mtu, int window, u16 peer_caps, |
|---|
| 83 | +bool tipc_link_bc_create(struct net *net, u32 ownnode, u32 peer, u8 *peer_id, |
|---|
| 84 | + int mtu, u32 min_win, u32 max_win, u16 peer_caps, |
|---|
| 85 | 85 | struct sk_buff_head *inputq, |
|---|
| 86 | 86 | struct sk_buff_head *namedq, |
|---|
| 87 | 87 | struct tipc_link *bc_sndlink, |
|---|
| .. | .. |
|---|
| 90 | 90 | int mtyp, struct sk_buff_head *xmitq); |
|---|
| 91 | 91 | void tipc_link_create_dummy_tnl_msg(struct tipc_link *tnl, |
|---|
| 92 | 92 | struct sk_buff_head *xmitq); |
|---|
| 93 | +void tipc_link_failover_prepare(struct tipc_link *l, struct tipc_link *tnl, |
|---|
| 94 | + struct sk_buff_head *xmitq); |
|---|
| 93 | 95 | void tipc_link_build_reset_msg(struct tipc_link *l, struct sk_buff_head *xmitq); |
|---|
| 94 | 96 | int tipc_link_fsm_evt(struct tipc_link *l, int evt); |
|---|
| 95 | 97 | bool tipc_link_is_up(struct tipc_link *l); |
|---|
| .. | .. |
|---|
| 112 | 114 | u32 tipc_link_state(struct tipc_link *l); |
|---|
| 113 | 115 | char tipc_link_plane(struct tipc_link *l); |
|---|
| 114 | 116 | int tipc_link_prio(struct tipc_link *l); |
|---|
| 115 | | -int tipc_link_window(struct tipc_link *l); |
|---|
| 117 | +int tipc_link_min_win(struct tipc_link *l); |
|---|
| 118 | +int tipc_link_max_win(struct tipc_link *l); |
|---|
| 116 | 119 | void tipc_link_update_caps(struct tipc_link *l, u16 capabilities); |
|---|
| 117 | 120 | bool tipc_link_validate_msg(struct tipc_link *l, struct tipc_msg *hdr); |
|---|
| 118 | 121 | unsigned long tipc_link_tolerance(struct tipc_link *l); |
|---|
| .. | .. |
|---|
| 121 | 124 | void tipc_link_set_prio(struct tipc_link *l, u32 prio, |
|---|
| 122 | 125 | struct sk_buff_head *xmitq); |
|---|
| 123 | 126 | void tipc_link_set_abort_limit(struct tipc_link *l, u32 limit); |
|---|
| 124 | | -void tipc_link_set_queue_limits(struct tipc_link *l, u32 window); |
|---|
| 127 | +void tipc_link_set_queue_limits(struct tipc_link *l, u32 min_win, u32 max_win); |
|---|
| 125 | 128 | int __tipc_nl_add_link(struct net *net, struct tipc_nl_msg *msg, |
|---|
| 126 | 129 | struct tipc_link *link, int nlflags); |
|---|
| 127 | 130 | int tipc_nl_parse_link_prop(struct nlattr *prop, struct nlattr *props[]); |
|---|
| .. | .. |
|---|
| 138 | 141 | int tipc_link_bc_peers(struct tipc_link *l); |
|---|
| 139 | 142 | void tipc_link_set_mtu(struct tipc_link *l, int mtu); |
|---|
| 140 | 143 | int tipc_link_mtu(struct tipc_link *l); |
|---|
| 141 | | -void tipc_link_bc_ack_rcv(struct tipc_link *l, u16 acked, |
|---|
| 142 | | - struct sk_buff_head *xmitq); |
|---|
| 144 | +int tipc_link_mss(struct tipc_link *l); |
|---|
| 145 | +u16 tipc_get_gap_ack_blks(struct tipc_gap_ack_blks **ga, struct tipc_link *l, |
|---|
| 146 | + struct tipc_msg *hdr, bool uc); |
|---|
| 147 | +int tipc_link_bc_ack_rcv(struct tipc_link *l, u16 acked, u16 gap, |
|---|
| 148 | + struct tipc_gap_ack_blks *ga, |
|---|
| 149 | + struct sk_buff_head *xmitq, |
|---|
| 150 | + struct sk_buff_head *retrq); |
|---|
| 143 | 151 | void tipc_link_build_bc_sync_msg(struct tipc_link *l, |
|---|
| 144 | 152 | struct sk_buff_head *xmitq); |
|---|
| 145 | 153 | void tipc_link_bc_init_rcv(struct tipc_link *l, struct tipc_msg *hdr); |
|---|
| .. | .. |
|---|
| 147 | 155 | struct sk_buff_head *xmitq); |
|---|
| 148 | 156 | int tipc_link_bc_nack_rcv(struct tipc_link *l, struct sk_buff *skb, |
|---|
| 149 | 157 | struct sk_buff_head *xmitq); |
|---|
| 158 | +bool tipc_link_too_silent(struct tipc_link *l); |
|---|
| 159 | +struct net *tipc_link_net(struct tipc_link *l); |
|---|
| 150 | 160 | #endif |
|---|