aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-09-30 17:52:49 -0700
committerDavid S. Miller <[email protected]>2021-10-04 12:50:13 +0100
commit9ac936276f8628ef5765bcc2ca7138a803de8aff (patch)
tree0a1f9ee1782d8f9e51719971c9f168441a5cace8 /lib/mpi/mpi-bit.c
parent0693b27644f04852e46f7f034e3143992b658869 (diff)
net/mlx4_en: avoid one cache line miss to ring doorbell
This patch caches doorbell address directly in struct mlx4_en_tx_ring. This removes the need to bring in cpu caches whole struct mlx4_uar in fast path. Note that mlx4_uar is not guaranteed to be on a local node, because mlx4_bf_alloc() uses a single free list (priv->bf_list) regardless of its node parameter. This kind of change does matter in presence of light/moderate traffic. In high stress, this read-only line would be kept hot in caches. Signed-off-by: Eric Dumazet <[email protected]> Cc: Tariq Toukan <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions