summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.c
diff options
context:
space:
mode:
authorMarian Chereji <marian.chereji@freescale.com>2014-12-04 11:05:01 (GMT)
committerHonghua Yin <Hong-Hua.Yin@freescale.com>2015-03-17 07:01:03 (GMT)
commit71702d053d60b5d53931f7d8cd62e1a9e37c7939 (patch)
treece57401c8a40a29997421ba6ee11e271c2d84f9e /drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.c
parent7a590b6c487881f36caf0369455c39b2b31ae5f6 (diff)
downloadlinux-fsl-qoriq-71702d053d60b5d53931f7d8cd62e1a9e37c7939.tar.xz
fmd: Render match table key statistics accessible from user space
The key statistics for match tables are not accessible from user space using fmlib. This update implements the support for the function FM_PCD_MatchTableGetKeyStatistics to be accessible from user space. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: Ibcf40fdcf7a60afc65b2f926c2a1474513ae8950 Reviewed-on: http://git.am.freescale.net:8181/25376 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.c')
-rw-r--r--drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.c b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.c
index 76e5c4d..b5ffe5c 100644
--- a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.c
+++ b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.c
@@ -849,18 +849,20 @@ void compat_copy_fm_port_vsp_alloc_params(
}
#endif /* (DPAA_VERSION >= 11) */
-void compat_copy_fm_pcd_cc_tbl_get_miss(
- ioc_compat_fm_pcd_cc_tbl_get_miss_params_t *compat_param,
- ioc_fm_pcd_cc_tbl_get_miss_params_t *param,
+void compat_copy_fm_pcd_cc_tbl_get_stats(
+ ioc_compat_fm_pcd_cc_tbl_get_stats_t *compat_param,
+ ioc_fm_pcd_cc_tbl_get_stats_t *param,
uint8_t compat)
{
if (compat == COMPAT_US_TO_K)
{
param->id = compat_pcd_id2ptr(compat_param->id);
- memcpy(&param->miss_statistics, &compat_param->miss_statistics, sizeof(ioc_fm_pcd_cc_key_statistics_t));
+ param->key_index = compat_param->key_index;
+ memcpy(&param->statistics, &compat_param->statistics, sizeof(ioc_fm_pcd_cc_key_statistics_t));
} else {
compat_param->id = compat_add_ptr2id(param->id, FM_MAP_TYPE_PCD_NODE);
- memcpy(&compat_param->miss_statistics, &param->miss_statistics, sizeof(ioc_fm_pcd_cc_key_statistics_t));
+ compat_param->key_index = param->key_index;
+ memcpy(&compat_param->statistics, &param->statistics, sizeof(ioc_fm_pcd_cc_key_statistics_t));
}
}