diff options
Diffstat (limited to 'drivers/staging/fsl_dpa_offload')
-rw-r--r-- | drivers/staging/fsl_dpa_offload/dpa_classifier.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/staging/fsl_dpa_offload/dpa_classifier.c b/drivers/staging/fsl_dpa_offload/dpa_classifier.c index 20b0143..e360e09 100644 --- a/drivers/staging/fsl_dpa_offload/dpa_classifier.c +++ b/drivers/staging/fsl_dpa_offload/dpa_classifier.c @@ -3896,8 +3896,10 @@ static struct dpa_cls_hm_node *try_compatible_node(const struct dpa_cls_hm *hm) * compatible for aggregation: */ if ((hm->update_params.op_flags & update_flags) && - (hm_node->params.u.hdr.fieldUpdate)) + (hm_node->params.u.hdr.fieldUpdate)) { hm_node = NULL; + break; + } /* * If in the previous HM node the custom header replace @@ -3928,8 +3930,11 @@ static struct dpa_cls_hm_node *try_compatible_node(const struct dpa_cls_hm *hm) * not compatible for aggregation: */ if ((hm->vlan_params.egress.num_tags) && - (hm_node->params.u.hdr.insrt)) + (hm_node->params.u.hdr.insrt)) { hm_node = NULL; + break; + } + /* * If in the previous HM node the update operation is * already used and we need to do VLAN update, then it |