Thread (3 messages) flat view 3 messages, 3 authors, 2016-11-24

Re: [PATCH net-next] mlx4: reorganize struct mlx4_en_tx_ring

From: David Miller <davem@davemloft.net>
Date: 2016-11-24 21:04:15

From: Eric Dumazet <redacted>
Date: Tue, 22 Nov 2016 15:56:10 -0800
From: Eric Dumazet <edumazet@google.com>

Goal is to reorganize this critical structure to increase performance.

ndo_start_xmit() should only dirty one cache line, and access as few
cache lines as possible.

Add sp_ (Slow Path) prefix to fields that are not used in fast path,
to make clear what is going on.

After this patch pahole reports something much better, as all
ndo_start_xmit() needed fields are packed into two cache lines instead
of seven or eight
 ...
Signed-off-by: Eric Dumazet <edumazet@google.com>
Applied, thanks Eric.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help