net/mlx5e: Prefetch skb data on RX
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 23 Jun 2015 14:14:22 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2015 07:42:41 +0000 (00:42 -0700)
Prefetch the 1st cache line used by the buffer pointed by
the skb linear data.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

index 760b3ef64f17c175a571303a20d5ac1a7baf35e5..9a9374131f5b45e7c740f80e2ef8b0e9ba175fa9 100644 (file)
@@ -215,6 +215,7 @@ bool mlx5e_poll_rx_cq(struct mlx5e_cq *cq, int budget)
                wqe_counter    = be16_to_cpu(wqe_counter_be);
                wqe            = mlx5_wq_ll_get_wqe(&rq->wq, wqe_counter);
                skb            = rq->skb[wqe_counter];
+               prefetch(skb->data);
                rq->skb[wqe_counter] = NULL;
 
                dma_unmap_single(rq->pdev,