hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/net/tipc/link.h
....@@ -73,15 +73,15 @@
7373
7474 bool tipc_link_create(struct net *net, char *if_name, int bearer_id,
7575 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,
7777 u32 peer, u8 *peer_id, u16 peer_caps,
7878 struct tipc_link *bc_sndlink,
7979 struct tipc_link *bc_rcvlink,
8080 struct sk_buff_head *inputq,
8181 struct sk_buff_head *namedq,
8282 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,
8585 struct sk_buff_head *inputq,
8686 struct sk_buff_head *namedq,
8787 struct tipc_link *bc_sndlink,
....@@ -90,6 +90,8 @@
9090 int mtyp, struct sk_buff_head *xmitq);
9191 void tipc_link_create_dummy_tnl_msg(struct tipc_link *tnl,
9292 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);
9395 void tipc_link_build_reset_msg(struct tipc_link *l, struct sk_buff_head *xmitq);
9496 int tipc_link_fsm_evt(struct tipc_link *l, int evt);
9597 bool tipc_link_is_up(struct tipc_link *l);
....@@ -112,7 +114,8 @@
112114 u32 tipc_link_state(struct tipc_link *l);
113115 char tipc_link_plane(struct tipc_link *l);
114116 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);
116119 void tipc_link_update_caps(struct tipc_link *l, u16 capabilities);
117120 bool tipc_link_validate_msg(struct tipc_link *l, struct tipc_msg *hdr);
118121 unsigned long tipc_link_tolerance(struct tipc_link *l);
....@@ -121,7 +124,7 @@
121124 void tipc_link_set_prio(struct tipc_link *l, u32 prio,
122125 struct sk_buff_head *xmitq);
123126 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);
125128 int __tipc_nl_add_link(struct net *net, struct tipc_nl_msg *msg,
126129 struct tipc_link *link, int nlflags);
127130 int tipc_nl_parse_link_prop(struct nlattr *prop, struct nlattr *props[]);
....@@ -138,8 +141,13 @@
138141 int tipc_link_bc_peers(struct tipc_link *l);
139142 void tipc_link_set_mtu(struct tipc_link *l, int mtu);
140143 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);
143151 void tipc_link_build_bc_sync_msg(struct tipc_link *l,
144152 struct sk_buff_head *xmitq);
145153 void tipc_link_bc_init_rcv(struct tipc_link *l, struct tipc_msg *hdr);
....@@ -147,4 +155,6 @@
147155 struct sk_buff_head *xmitq);
148156 int tipc_link_bc_nack_rcv(struct tipc_link *l, struct sk_buff *skb,
149157 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);
150160 #endif