mlx5_core: Fix PowerPC support
authorEli Cohen <eli@dev.mellanox.co.il>
Tue, 14 Jan 2014 15:45:20 +0000 (17:45 +0200)
committerRoland Dreier <roland@purestorage.com>
Thu, 23 Jan 2014 07:23:52 +0000 (23:23 -0800)
commit05bdb2ab6b09f2306f0afe0f60f4b9abffa7aba4
tree526dff83313a9d0b5b136a44cee45e8270db4049
parentdb81a5c374b5bd650c5e6ae85d026709751db103
mlx5_core: Fix PowerPC support

1. Fix derivation of sub-page index from the dma address in free_4k.
2. Fix the DMA address passed to dma_unmap_page by masking it properly.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
include/linux/mlx5/device.h