Re: [PATCH net-next] bnx2x: avoid two atomic ops per page on x86

2017-01-23 Thread David Miller
From: Eric Dumazet Date: Fri, 20 Jan 2017 08:25:34 -0800 > From: Eric Dumazet > > Commit 4cace675d687 ("bnx2x: Alloc 4k fragment for each rx ring buffer > element") added extra put_page() and get_page() calls on arches where > PAGE_SIZE=4K like x86 > > Reorder things to avoid this overhead. >

[PATCH net-next] bnx2x: avoid two atomic ops per page on x86

2017-01-20 Thread Eric Dumazet
From: Eric Dumazet Commit 4cace675d687 ("bnx2x: Alloc 4k fragment for each rx ring buffer element") added extra put_page() and get_page() calls on arches where PAGE_SIZE=4K like x86 Reorder things to avoid this overhead. Signed-off-by: Eric Dumazet Cc: Gabriel Krisman Bertazi Cc: Yuval Mintz