[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150430.114403.2012017340124788492.davem@davemloft.net>
Date: Thu, 30 Apr 2015 11:44:03 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: david.ahern@...cle.com
Cc: rds-devel@....oracle.com, netdev@...r.kernel.org,
shamir.rabinovitch@...cle.com
Subject: Re: [PATCH] net/rds: fix unaligned memory access
From: David Ahern <david.ahern@...cle.com>
Date: Thu, 30 Apr 2015 10:27:53 -0400
> @@ -183,8 +183,17 @@ void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_even
>
> /* If the peer gave us the last packet it saw, process this as if
> * we had received a regular ACK. */
> - if (dp && dp->dp_ack_seq)
> - rds_send_drop_acked(conn, be64_to_cpu(dp->dp_ack_seq), NULL);
> + if (dp) {
> + /* dp structure start is not guaranteed to be 8 bytes aligned
> + * so on SPARC we get trap for nu-aligned access. we solve
> + * this by using the macros for unaligned memory access
> + */
"nu-aligned" is misspelled, and Mentioning sparc specifically is completely
inappropriate because this is not a sparc specific problem.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists