mlx4: do not access rx_desc from mlx4_en_process_rx_cq()
authorEric Dumazet <edumazet@google.com>
Wed, 8 Mar 2017 16:17:15 +0000 (08:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 17:54:46 +0000 (09:54 -0800)
commit9e8c0395a7e87a8f0eb008297df25ffdf3e0e5b3
tree8e6e651467966777a696c89841e885d429b7d855
parent7d7bfc6a3f69d2debe104656fadd8d568fda0e5b
mlx4: do not access rx_desc from mlx4_en_process_rx_cq()

Instead of fetching dma address from rx_desc->data[0].addr,
prefer using frags[0].dma + frags[0].page_offset to avoid
a potential cache line miss.

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