mlx4: factorize page_address() calls
authorEric Dumazet <edumazet@google.com>
Wed, 8 Mar 2017 16:17:16 +0000 (08:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 17:54:46 +0000 (09:54 -0800)
commit02e6fd3e5598bace683e05ee783f134722cb21b4
tree8d9fa4633734ebb4943c4b6cab15c76b197493d5
parent9e8c0395a7e87a8f0eb008297df25ffdf3e0e5b3
mlx4: factorize page_address() calls

We need to compute the frame virtual address at different points.
Do it once.

Following patch will use the new va address for validate_loopback()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c