summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorMarian Chereji <marian.chereji@freescale.com>2014-10-24 15:04:53 (GMT)
committerMatthew Weigel <Matthew.Weigel@freescale.com>2014-12-11 18:39:42 (GMT)
commit2f98157ac2424b3ec842b0f2e80b86e10b262008 (patch)
tree153d1274e16e5a69582cf4db79ba08bf49d1e9a0 /drivers/staging
parent253c4b43c0d8bb8078cb4836c87514ad89f69ab4 (diff)
downloadlinux-fsl-qoriq-2f98157ac2424b3ec842b0f2e80b86e10b262008.tar.xz
dpa_offload: Fill in proper VSP parameters when policer is enabled
There are 2 different VSP profile parameters in the FMD API that need to be filled in depending whether the policer is enabled or disabled. The dpa_classifier was filling in the enqueue VSP profile all the time, but this was used only when the next action was "enqueue". When the next action is "policer" the policer VSP profile must be filled in. Change-Id: I09e2a6fad7216e7ce7b3c1190a4441b7a9825705 Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/22064 Reviewed-by: Francois Massot-Pellet <Francois.Massot-Pellet@freescale.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/fsl_dpa_offload/dpa_classifier.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/staging/fsl_dpa_offload/dpa_classifier.c b/drivers/staging/fsl_dpa_offload/dpa_classifier.c
index ffc9ce8..65bc333 100644
--- a/drivers/staging/fsl_dpa_offload/dpa_classifier.c
+++ b/drivers/staging/fsl_dpa_offload/dpa_classifier.c
@@ -3110,6 +3110,11 @@ static int action_to_next_engine_params(const struct dpa_cls_tbl_action *action,
policer_params->modify_policer_params;
next_engine_params->params.plcrParams.
newFqid = action->enq_params.new_fqid;
+#if (DPAA_VERSION >= 11)
+ next_engine_params->params.plcrParams.
+ newRelativeStorageProfileId =
+ action->enq_params.new_rel_vsp_id;
+#endif /* (DPAA_VERSION >= 11) */
} else {
next_engine_params->nextEngine = e_FM_PCD_DONE;
next_engine_params->params.enqueueParams.
@@ -3120,12 +3125,12 @@ static int action_to_next_engine_params(const struct dpa_cls_tbl_action *action,
next_engine_params->params.
enqueueParams.overrideFqid =
TRUE;
- }
#if (DPAA_VERSION >= 11)
- next_engine_params->params.enqueueParams.
- newRelativeStorageProfileId =
- action->enq_params.new_rel_vsp_id;
+ next_engine_params->params.enqueueParams.
+ newRelativeStorageProfileId =
+ action->enq_params.new_rel_vsp_id;
#endif
+ }
}
if (action->enq_params.hmd != DPA_OFFLD_DESC_NONE) {