diff options
author | Eric Dumazet <edumazet@google.com> | 2017-03-08 08:17:13 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-09 09:54:46 -0800 |
commit | 34db548bfb9580f33d9a7faecafe4da61a4428a3 (patch) | |
tree | 9c0f22c5b40affcdeefc747ba94681e563bb3875 /kernel/elfcore.c | |
parent | b5a54d9a313645ec9607dc557b67d9325c28884c (diff) |
mlx4: add page recycling in receive path
Same technique than some Intel drivers, for arches where PAGE_SIZE = 4096
In most cases, pages are reused because they were consumed
before we could loop around the RX ring.
This brings back performance, and is even better,
a single TCP flow reaches 30Gbit on my hosts.
v2: added full memset() in mlx4_en_free_frag(), as Tariq found it was needed
if we switch to large MTU, as priv->log_rx_info can dynamically be changed.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/elfcore.c')
0 files changed, 0 insertions, 0 deletions