diff options
author | Ioana Radulescu <ruxandra.radulescu@freescale.com> | 2013-05-31 08:10:40 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-05-31 15:09:14 (GMT) |
commit | 13d95d985322dc9bc8fbe2de0732469d895e2984 (patch) | |
tree | f7ec9cf4da017521eeedfedad5b3c1fc04e1d5a5 /drivers/net/ethernet/freescale | |
parent | fded29b157442a8a1e438333fa438ca7e2174ee3 (diff) | |
download | linux-fsl-qoriq-13d95d985322dc9bc8fbe2de0732469d895e2984.tar.xz |
dpaa_eth: Increase maximum allowed size for buffer recycle
There is an upper limit for the size of a recycleable skb, in order
to prevent unbounded growth of the recycled buffers. This limit
was however too strict and could prevent recycling for some of the
skbs found on the ipforward path.
Relax the recycling condition, such as to also account for internal
buffer padding, skb alignment padding and sh_info size.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com>
Change-Id: I0f0b8a48a564657dd107661d6bb5ad474ce8a7a8
Reviewed-on: http://git.am.freescale.net:8181/2807
Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com>
Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
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')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth.c index 4d613dd..db624ec 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth.c @@ -136,7 +136,7 @@ * frames may get recycled, while forwarded skbs that get reallocated on Tx * aren't allowed to grow unboundedly. */ -#define DPA_RECYCLE_EXTRA_SIZE 256 +#define DPA_RECYCLE_EXTRA_SIZE 1024 /* For MAC-based interfaces, we compute the tx needed headroom from the * associated Tx port's buffer layout settings. |