summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarian Chereji <marian.chereji@freescale.com>2015-11-11 09:06:34 (GMT)
committerMarian Chereji <marian.chereji@freescale.com>2015-11-16 13:33:40 (GMT)
commita9d0ea5a4d3b679ae3316c93b455d2ccc993772d (patch)
tree7d23cd7f27b2e590bc3e1a7b3837e45b82b988ca /include
parente176e3fade4bea2eb4fed6d6b4a689b3248e0788 (diff)
downloadlinux-fsl-qoriq-a9d0ea5a4d3b679ae3316c93b455d2ccc993772d.tar.xz
fmd: Render header manip node statistics available in user space
Added a user space interface for the "FM_PCD_ManipGetStatistics" function for retrieving header manipulation nodes statistics (including IP reassembly and fragmentation). Signed-off-by: Marian Chereji <marian.chereji@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h b/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h
index a4b5e76..2786666 100644
--- a/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h
+++ b/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h
@@ -2305,6 +2305,14 @@ typedef struct ioc_fm_pcd_manip_stats_t {
} u;
} ioc_fm_pcd_manip_stats_t;
+/**************************************************************************//**
+ @Description Parameters for acquiring manipulation statistics
+*//***************************************************************************/
+typedef struct ioc_fm_pcd_manip_get_stats_t {
+ void *id;
+ ioc_fm_pcd_manip_stats_t stats;
+} ioc_fm_pcd_manip_get_stats_t;
+
#if DPAA_VERSION >= 11
/**************************************************************************//**
@Description Parameters for defining frame replicator group and its members
@@ -2871,6 +2879,23 @@ typedef struct ioc_fm_pcd_cc_tbl_get_stats_t {
#define FM_PCD_IOC_MANIP_NODE_DELETE _IOW(FM_IOC_TYPE_BASE, FM_PCD_IOC_NUM(44), ioc_fm_obj_t)
/**************************************************************************//**
+ @Function FM_PCD_ManipGetStatistics
+
+ @Description Retrieve the manipulation statistics.
+
+ @Param[in] h_ManipNode A handle to a manipulation node.
+ @Param[out] p_FmPcdManipStats A structure for retrieving the manipulation statistics
+
+ @Return E_OK on success; Error code otherwise.
+
+ @Cautions Allowed only following FM_PCD_ManipNodeSet().
+*//***************************************************************************/
+#if defined(CONFIG_COMPAT)
+#define FM_PCD_IOC_MANIP_GET_STATS_COMPAT _IOWR(FM_IOC_TYPE_BASE, FM_PCD_IOC_NUM(50), ioc_compat_fm_pcd_manip_get_stats_t)
+#endif
+#define FM_PCD_IOC_MANIP_GET_STATS _IOWR(FM_IOC_TYPE_BASE, FM_PCD_IOC_NUM(50), ioc_fm_pcd_manip_get_stats_t)
+
+/**************************************************************************//**
@Function FM_PCD_SetAdvancedOffloadSupport
@Description This routine must be called in order to support the following features: