RDMA/ocrdma: Fix AV_VALID bit position

Fix ah->av->valid bit position and big endian portability.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Šī revīzija ir iekļauta:
Devesh Sharma
2013-12-05 15:48:01 +05:30
revīziju iesūtīja Roland Dreier
vecāks 7e22e91102
revīzija fe5e8a1acc
2 mainīti faili ar 2 papildinājumiem un 1 dzēšanām

Parādīt failu

@@ -84,6 +84,7 @@ static inline int set_av_attr(struct ocrdma_dev *dev, struct ocrdma_ah *ah,
memcpy((u8 *)ah->av + eth_sz, &grh, sizeof(struct ocrdma_grh));
if (vlan_enabled)
ah->av->valid |= OCRDMA_AV_VLAN_VALID;
ah->av->valid = cpu_to_le32(ah->av->valid);
return status;
}