diff options
author | Marian Chereji <marian.chereji@freescale.com> | 2013-09-04 08:44:11 (GMT) |
---|---|---|
committer | Rivera Jose-B46482 <German.Rivera@freescale.com> | 2013-09-27 19:55:40 (GMT) |
commit | 1dae7fa3b2b222d23d0f2d78f8be712572bdb3a4 (patch) | |
tree | 95d6d57a85a0e93ba3dbb524d7e78d21d8a2bbec /drivers | |
parent | a4e5e25cb91ce9ee356fdbe2c33e584fc2e659f6 (diff) | |
download | linux-fsl-qoriq-1dae7fa3b2b222d23d0f2d78f8be712572bdb3a4.tar.xz |
dpa_offload: Improve debug printing in DPA Classifier
Signed-off-by: Marian Chereji <marian.chereji@freescale.com>
Change-Id: Ibe6ba10afc6447cf284b27cc7e3caed854eab304
Reviewed-on: http://git.am.freescale.net:8181/4413
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Bulie Radu-Andrei-B37577 <Radu.Bulie@freescale.com>
Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/fsl_dpa_offload/dpa_classifier.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/staging/fsl_dpa_offload/dpa_classifier.c b/drivers/staging/fsl_dpa_offload/dpa_classifier.c index 3dc35bc..f8ed8b7 100644 --- a/drivers/staging/fsl_dpa_offload/dpa_classifier.c +++ b/drivers/staging/fsl_dpa_offload/dpa_classifier.c @@ -1673,6 +1673,12 @@ static int flush_table(struct dpa_cls_table *ptable) int_cc_node = &ptable->int_cc_node[cc_node_index]; dpa_classif_hm_release_chain(index_entry->hmd); +#ifdef DPA_CLASSIFIER_DEBUG + dpa_cls_dbg(("DEBUG: dpa_classifier %s (%d): Remove " + "entry #%d from table cc_node=0x%p.\n", + __func__, __LINE__, index_entry->entry_index, + cc_node)); +#endif /* DPA_CLASSIFIER_DEBUG */ err = FM_PCD_MatchTableRemoveKey(cc_node, index_entry->entry_index); if (err != E_OK) { @@ -2444,6 +2450,18 @@ static int table_insert_entry_exact_match(struct dpa_cls_table *cls_table, } /* Add the key to the selected Cc node */ +#ifdef DPA_CLASSIFIER_DEBUG + dpa_cls_dbg(("DEBUG: dpa_classifier %s (%d): Insert new entry in table " + "cc_node=0x%p.\n", __func__, __LINE__, + cls_table->int_cc_node[0].cc_node)); + dpa_cls_dbg((" index=%d; action type (id)=%d; hmd=%d; h_Manip=0x%p\n", + cls_table->entry[k].entry_index, action->type, hmd, + key_params.ccNextEngineParams.h_Manip)); + dpa_cls_dbg((" Lookup key (%d bytes): ", + cls_table->params.exact_match_params.key_size)); + dump_lookup_key(key); + pr_err("\n"); +#endif /* DPA_CLASSIFIER_DEBUG */ err = FM_PCD_MatchTableAddKey((t_Handle)cls_table-> int_cc_node[0].cc_node, cls_table->entry[k].entry_index, |