diff options
author | Bogdan Hamciuc <bogdan.hamciuc@freescale.com> | 2013-03-01 00:25:52 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-04-08 23:24:59 (GMT) |
commit | 536b2f172a871f260eeaba0715c9ac9dbc49f9dd (patch) | |
tree | bc71c4f7c17e65ff2f5e702c92b578c91638c0bc /drivers/net/ethernet/freescale/dpa/dpa-ethtool.c | |
parent | d41438c80e48af11871c3863ea55d46959835c6b (diff) | |
download | linux-fsl-qoriq-536b2f172a871f260eeaba0715c9ac9dbc49f9dd.tar.xz |
dpaa_eth: Optimize buffer allocation code
Reduce the code size and number of jumps generated for
dpa_bp_add_8_pages(), which is one of the hottest functions on the Rx
data path.
Remove dependency on per_cpu_ptr of dpaaa_eth_refill_bpools(), by
splitting it into a "this_cpu_ptr" hot function and a "per_cpu_ptr"
cold function wrapper.
Change-Id: If1bf9a29e9c43bf2345a36488f15846b1481a095
Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com>
(cherry picked from commit 345457577cf48216ffe6e883c7792f5496734b41)
Reviewed-on: http://git.am.freescale.net:8181/1058
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa/dpa-ethtool.c')
0 files changed, 0 insertions, 0 deletions