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.