On 07/02/2017 5:02 AM, Eric Dumazet wrote:
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 might not be true when multiple streams are handled in the same ring.
As the process time in stack will be longer.
We will test this scenario as well.

This brings back performance, and is even better,
a single TCP flow reaches 30Gbit on my hosts.

Signed-off-by: Eric Dumazet <eduma...@google.com>
---
  drivers/net/ethernet/mellanox/mlx4/en_rx.c   | 238 ++++++++-------------------
  drivers/net/ethernet/mellanox/mlx4/mlx4_en.h |   1 -
  2 files changed, 68 insertions(+), 171 deletions(-)



Reply via email to