summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2015-06-04 19:49:39 (GMT)
committerHonghua Yin <Hong-Hua.Yin@freescale.com>2015-06-10 03:31:09 (GMT)
commitf488de6741d5ba805b9fe813d2ddf32368d3a888 (patch)
tree3bef762c9acb3e61129708c5423a145f190e3c2d /include
parent66e98353166bf120c4ca1b264b926b09b8d90d20 (diff)
downloadlinux-fsl-qoriq-f488de6741d5ba805b9fe813d2ddf32368d3a888.tar.xz
fsl_qbman: hardcode mps field to 60
In LNI shaper setup, setting mps to 60 to round up the frame length to 60 for shaper calculations, for any dequeued frame length less than 60 bytes. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I88013d2ee39b3620a4e97f3366a87664ec0ea9dc Reviewed-on: http://git.am.freescale.net:8181/37437 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Roy Pledge <roy.pledge@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fsl_qman.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/fsl_qman.h b/include/linux/fsl_qman.h
index 2909cc5..991729e 100644
--- a/include/linux/fsl_qman.h
+++ b/include/linux/fsl_qman.h
@@ -789,7 +789,8 @@ struct qm_mcc_ceetm_mapping_shaper_tcfc_config {
u32 ertcr:24;
u16 crtbl;
u16 ertbl;
- u8 __reserved2[48];
+ u8 mps; /* This will be hardcoded by driver with 60 */
+ u8 __reserved2[47];
} __packed shaper_config;
struct {
u8 __reserved2[11];
@@ -1203,7 +1204,8 @@ struct qm_mcr_ceetm_mapping_shaper_tcfc_query {
u32 ertcr:24;
u16 crtbl;
u16 ertbl;
- u8 __reserved2[16];
+ u8 mps;
+ u8 __reserved2[15];
u32 crat;
u32 erat;
u8 __reserved3[24];