]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: removal of frag_sizes[]
authorEric Dumazet <edumazet@google.com>
Wed, 8 Mar 2017 16:17:11 +0000 (08:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 17:54:46 +0000 (09:54 -0800)
commitc6905656527dca238097d3c8eb3ab248c049b444
treef303633a8c8443b7d489d91841069665c2e4d890
parent7bda39dd290d8c0cd19c9b73c37999f2f170759a
mlx4: removal of frag_sizes[]

We will soon use order-0 pages, and frag truesize will more precisely
match real sizes.

In the new model, we prefer to use <= 2048 bytes fragments, so that
we can use page-recycle technique on PAGE_SIZE=4096 arches.

We will still pack as much frames as possible on arches with big
pages, like PowerPC.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h