]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: avoid two atomic ops per page on x86
authorEric Dumazet <edumazet@google.com>
Fri, 20 Jan 2017 16:25:34 +0000 (08:25 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 05:48:26 +0000 (21:48 -0800)
commit018235794082ba1d8ac8caf2ba0a8287ca8f9266
tree49a7cbc17ead932e5fd2e26fae1aa73655d921b0
parent23738e04c374f64b263894a5ab8c0313cf2ca22a
bnx2x: avoid two atomic ops per page on x86

Orabug: 25477835

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 <edumazet@google.com>
Cc: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Cc: Yuval Mintz <Yuval.Mintz@cavium.com>
Cc: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit b9032741e4f86844d8c4a7c18001ee328dae2f7a)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c