diff options
author | Radu Bulie <radu.bulie@freescale.com> | 2013-05-26 10:58:17 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-05-28 19:17:05 (GMT) |
commit | c5e31112948b291735699142dd04a3c4ddd31e83 (patch) | |
tree | c482ebfba5875ae57aab536a3ec8d9c90d715478 /drivers/staging | |
parent | c8a2d92fef102e1c03155d6554023b7a58781b28 (diff) | |
download | linux-fsl-qoriq-c5e31112948b291735699142dd04a3c4ddd31e83.tar.xz |
dpa_offload: Bug fix. Fix policer profile parameters for multicast component
Some parameters regarding policer were not set for multicast component
and other were set incorrectly.
Signed-off-by: Radu Bulie <radu.bulie@freescale.com>
Change-Id: Ia603d30c9b85d10db65281d74735c2cf160dc8fe
Reviewed-on: http://git.am.freescale.net:8181/2699
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/fsl_dpa_offload/dpa_classifier.c | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/drivers/staging/fsl_dpa_offload/dpa_classifier.c b/drivers/staging/fsl_dpa_offload/dpa_classifier.c index da291de..4208546 100644 --- a/drivers/staging/fsl_dpa_offload/dpa_classifier.c +++ b/drivers/staging/fsl_dpa_offload/dpa_classifier.c @@ -7559,18 +7559,27 @@ int dpa_classif_mcast_create_group( next_engine_params->params.plcrParams. newRelativeProfileId = member_params->policer_params->new_rel_profile_id; + next_engine_params->params.plcrParams. + overrideParams = + member_params->policer_params->modify_policer_params; + next_engine_params->params.plcrParams. + newFqid = member_params->new_fqid; } else { next_engine_params->nextEngine = e_FM_PCD_DONE; next_engine_params->params.enqueueParams. newRelativeStorageProfileId = member_params->new_rel_vsp_id; + next_engine_params->params.enqueueParams. + action = + e_FM_PCD_ENQ_FRAME; + next_engine_params->params.enqueueParams. + overrideFqid = + member_params->override_fqid; + next_engine_params->params.enqueueParams. + newFqid = + member_params->new_fqid; } - next_engine_params->params.enqueueParams.action = - e_FM_PCD_ENQ_FRAME; - next_engine_params->params.enqueueParams.overrideFqid = - member_params->override_fqid; - next_engine_params->params.enqueueParams.newFqid = - member_params->new_fqid; + } if (member_params->hmd != DPA_OFFLD_DESC_NONE) { pgroup->entries[0].hmd = member_params->hmd; @@ -7780,18 +7789,22 @@ int dpa_classif_mcast_add_member(int grpd, next_engine_params->params.plcrParams. newRelativeProfileId = member_params->policer_params->new_rel_profile_id; + next_engine_params->params.plcrParams.overrideParams = + member_params->policer_params->modify_policer_params; + next_engine_params->params.plcrParams.newFqid = + member_params->new_fqid; } else { next_engine_params->nextEngine = e_FM_PCD_DONE; next_engine_params->params.enqueueParams. newRelativeStorageProfileId = member_params->new_rel_vsp_id; - } - next_engine_params->params.enqueueParams.action = + next_engine_params->params.enqueueParams.action = e_FM_PCD_ENQ_FRAME; - next_engine_params->params.enqueueParams.overrideFqid = + next_engine_params->params.enqueueParams.overrideFqid = member_params->override_fqid; - next_engine_params->params.enqueueParams.newFqid = - member_params->new_fqid; + next_engine_params->params.enqueueParams.newFqid = + member_params->new_fqid; + } } if (member_params->hmd != DPA_OFFLD_DESC_NONE) { |