| Submitter | Eric Dumazet |
|---|---|
| Date | Sept. 13, 2012, 12:34 p.m. |
| Message ID | <1347539671.13103.1542.camel@edumazet-glaptop> |
| Download | mbox | patch |
| Permalink | /patch/183620/ |
| State | RFC |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c b/drivers/net/ethernet/mellanox/mlx4/en_rx.c index 5aba5ec..547eec8 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_rx.c @@ -38,6 +38,7 @@ #include <linux/if_ether.h> #include <linux/if_vlan.h> #include <linux/vmalloc.h> +#include <linux/prefetch.h> #include "mlx4_en.h" @@ -617,7 +618,8 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud !((dev->features & NETIF_F_LOOPBACK) || priv->validate_loopback)) goto next; - + /* avoid cache miss in tcp_gro_receive() */ + prefetch((char *)ethh + 64); /* * Packet is OK - process it. */