mlx4_core: For 64-bit systems, vmap() kernel queue buffers
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Mon, 28 Jan 2008 08:40:51 +0000 (10:40 +0200)
committerRoland Dreier <rolandd@cisco.com>
Thu, 7 Feb 2008 05:17:45 +0000 (21:17 -0800)
commit313abe55a87bc10e55d00f337d609e17ad5f8c9a
tree833ff3c4b33f83d4ca64ed322c2d8efa21529d71
parent1c69fc2a9012e160c8d459f63df74a6b01db8322
mlx4_core: For 64-bit systems, vmap() kernel queue buffers

Since kernel virtual memory is not a problem on 64-bit systems, there
is no reason to use our own 2-layer page mapping scheme for large
kernel queue buffers on such systems.  Instead, map the page list to a
single virtually contiguous buffer with vmap(), so that can we access
buffer memory via direct indexing.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/alloc.c
include/linux/mlx4/device.h