diff options
author | Ioana Radulescu <ruxandra.radulescu@freescale.com> | 2013-07-29 13:03:50 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-31 21:49:50 (GMT) |
commit | a3a292cd90c05ead376bdaa460629e7da5ee8552 (patch) | |
tree | b6db3445d832341fdb1b945e3ae76d561c33632d /drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c | |
parent | afebf20c2a5616f00c3a8160e2c23a2868954813 (diff) | |
download | linux-fsl-qoriq-a3a292cd90c05ead376bdaa460629e7da5ee8552.tar.xz |
dpaa_eth: Move bpool seeding back to probe for SG driver
Only the non-SG ("optimized for forwarding") flavour of the driver
needs to have the buffer pool seeding done after all interfaces are
probed, as in this case the buffer size may vary between interfaces.
For the termination optimized flavour, we have a fixed buffer size on Rx,
so there's no need to wait for the pool seeding.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com>
Change-Id: I101ffa38e9f83f90a432620898a2a24ede6c0895
Reviewed-on: http://git.am.freescale.net:8181/3656
Reviewed-by: Hamciuc Bogdan-BHAMCIU1 <bogdan.hamciuc@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c index cffc970..588c2d7 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c @@ -136,8 +136,6 @@ void dpa_make_private_pool(struct dpa_bp *dpa_bp) { int i; - dpa_bp->percpu_count = alloc_percpu(*dpa_bp->percpu_count); - /* Give each CPU an allotment of "config_count" buffers */ for_each_online_cpu(i) { int j; |