mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
rds: tcp: various endian-ness fixes
Found when testing between sparc and x86 machines on different subnets, so the address comparison patterns hit the corner cases and brought out some bugs fixed by this patch. Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Tested-by: Imanti Mendez <imanti.mendez@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
41500c3e2a
commit
00354de577
6 changed files with 21 additions and 13 deletions
|
@ -66,7 +66,7 @@ void rds_tcp_state_change(struct sock *sk)
|
|||
* RDS connection as RDS_CONN_UP until the reconnect,
|
||||
* to avoid RDS datagram loss.
|
||||
*/
|
||||
if (cp->cp_conn->c_laddr > cp->cp_conn->c_faddr &&
|
||||
if (!IS_CANONICAL(cp->cp_conn->c_laddr, cp->cp_conn->c_faddr) &&
|
||||
rds_conn_path_transition(cp, RDS_CONN_CONNECTING,
|
||||
RDS_CONN_ERROR)) {
|
||||
rds_conn_path_drop(cp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue