summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/dpa/dpaa_eth.h
diff options
context:
space:
mode:
authorBogdan Hamciuc <bogdan.hamciuc@freescale.com>2013-01-25 23:46:16 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-04-08 23:10:50 (GMT)
commitc59ac0e90877baf081ba4d9c5a4604a0481c9835 (patch)
tree42af2a881be714a747c5652168102442a7833e37 /drivers/net/ethernet/freescale/dpa/dpaa_eth.h
parent5137280f9d74d4d9a933e7334f959dc5a1929082 (diff)
downloadlinux-fsl-qoriq-c59ac0e90877baf081ba4d9c5a4604a0481c9835.tar.xz
dpaa_eth: Add overhead accounting control to CGRs
QMan can account for a fixed overhead when comparing the current byte counts against the CGR notification threshold. We can use it to better memory management in those cases when the fixed overhead from skb shells and the netdev's needed_headroom is significant compared to the outgoing frame size. Unfortunately, with the current hardware the maximum value of the overhead accounting limit (OAL) is 127, which is not enough for our needs; but even so, it is better than no OAL at all. Change-Id: I368a59816b52b176aa569eb446a869ac20b3d8b3 Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> (cherry picked from commit 4084d9c8d258aad9a1fb3367fd8c81f01a9c9e30) Reviewed-on: http://git.am.freescale.net:8181/1039 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.h')
-rw-r--r--drivers/net/ethernet/freescale/dpa/dpaa_eth.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h
index 9cbe9d7..343c38c 100644
--- a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h
+++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h
@@ -174,6 +174,13 @@ void fsl_dpaa_eth_set_hooks(struct dpaa_eth_hooks_s *hooks);
#endif /* CONFIG_DPAA_ETH_SG_SUPPORT */
/*
+ * Largest value that the FQD's OAL field can hold.
+ * This is DPAA-1.x specific.
+ * TODO: This rather belongs in fsl_qman.h
+ */
+#define FSL_QMAN_MAX_OAL 127
+
+/*
* Values for the L3R field of the FM Parse Results
*/
/* L3 Type field: First IP Present IPv4 */