Skip to content

Commit

Permalink
mlx4: add page recycling in receive path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Mar 9, 2017
1 parent b5a54d9 commit 34db548
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 177 deletions.
Loading

0 comments on commit 34db548

Please sign in to comment.