diff options
Diffstat (limited to 'net/rds/ib_recv.c')
-rw-r--r-- | net/rds/ib_recv.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 70559854837e..8946c89d7392 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c | |||
@@ -772,7 +772,7 @@ static void rds_ib_cong_recv(struct rds_connection *conn, | |||
772 | unsigned long frag_off; | 772 | unsigned long frag_off; |
773 | unsigned long to_copy; | 773 | unsigned long to_copy; |
774 | unsigned long copied; | 774 | unsigned long copied; |
775 | uint64_t uncongested = 0; | 775 | __le64 uncongested = 0; |
776 | void *addr; | 776 | void *addr; |
777 | 777 | ||
778 | /* catch completely corrupt packets */ | 778 | /* catch completely corrupt packets */ |
@@ -789,7 +789,7 @@ static void rds_ib_cong_recv(struct rds_connection *conn, | |||
789 | copied = 0; | 789 | copied = 0; |
790 | 790 | ||
791 | while (copied < RDS_CONG_MAP_BYTES) { | 791 | while (copied < RDS_CONG_MAP_BYTES) { |
792 | uint64_t *src, *dst; | 792 | __le64 *src, *dst; |
793 | unsigned int k; | 793 | unsigned int k; |
794 | 794 | ||
795 | to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); | 795 | to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); |
@@ -824,9 +824,7 @@ static void rds_ib_cong_recv(struct rds_connection *conn, | |||
824 | } | 824 | } |
825 | 825 | ||
826 | /* the congestion map is in little endian order */ | 826 | /* the congestion map is in little endian order */ |
827 | uncongested = le64_to_cpu(uncongested); | 827 | rds_cong_map_updated(map, le64_to_cpu(uncongested)); |
828 | |||
829 | rds_cong_map_updated(map, uncongested); | ||
830 | } | 828 | } |
831 | 829 | ||
832 | static void rds_ib_process_recv(struct rds_connection *conn, | 830 | static void rds_ib_process_recv(struct rds_connection *conn, |