Commit e66c18c
Xin Long
tipc: fix unexpected link reset due to discovery messages
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2160540
Tested: compile only
commit c244c09
Author: Tung Nguyen <tung.q.nguyen@dektech.com.au>
Date: Thu Jan 5 06:02:51 2023 +0000
tipc: fix unexpected link reset due to discovery messages
This unexpected behavior is observed:
node 1 | node 2
------ | ------
link is established | link is established
reboot | link is reset
up | send discovery message
receive discovery message |
link is established | link is established
send discovery message |
| receive discovery message
| link is reset (unexpected)
| send reset message
link is reset |
It is due to delayed re-discovery as described in function
tipc_node_check_dest(): "this link endpoint has already reset
and re-established contact with the peer, before receiving a
discovery message from that node."
However, commit 598411d has changed the condition for calling
tipc_node_link_down() which was the acceptance of new media address.
This commit fixes this by restoring the old and correct behavior.
Fixes: 598411d ("tipc: make resetting of links non-atomic")
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Tung Nguyen <tung.q.nguyen@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Xin Long <lxin@redhat.com>1 parent 58a447f commit e66c18c
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
| 1182 | + | |
1182 | 1183 | | |
1183 | | - | |
| 1184 | + | |
1184 | 1185 | | |
1185 | 1186 | | |
1186 | 1187 | | |
| |||
1200 | 1201 | | |
1201 | 1202 | | |
1202 | 1203 | | |
| 1204 | + | |
1203 | 1205 | | |
1204 | 1206 | | |
1205 | 1207 | | |
1206 | 1208 | | |
1207 | 1209 | | |
1208 | 1210 | | |
1209 | | - | |
1210 | | - | |
| 1211 | + | |
1211 | 1212 | | |
1212 | 1213 | | |
1213 | 1214 | | |
| |||
1232 | 1233 | | |
1233 | 1234 | | |
1234 | 1235 | | |
| 1236 | + | |
1235 | 1237 | | |
1236 | 1238 | | |
1237 | 1239 | | |
| |||
1263 | 1265 | | |
1264 | 1266 | | |
1265 | 1267 | | |
| 1268 | + | |
1266 | 1269 | | |
1267 | 1270 | | |
1268 | 1271 | | |
| |||
1291 | 1294 | | |
1292 | 1295 | | |
1293 | 1296 | | |
| 1297 | + | |
1294 | 1298 | | |
1295 | 1299 | | |
1296 | 1300 | | |
| |||
1303 | 1307 | | |
1304 | 1308 | | |
1305 | 1309 | | |
1306 | | - | |
| 1310 | + | |
1307 | 1311 | | |
1308 | 1312 | | |
1309 | 1313 | | |
| |||
0 commit comments