summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/sch_generic.h2
-rw-r--r--include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h32
2 files changed, 33 insertions, 1 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
index 6fabded..09eb648 100644
--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -767,7 +767,7 @@ void tbf_hook_fn_register(tbf_add_hook *add,
struct Qdisc *tbf_get_inner_qdisc(struct Qdisc *sch);
#endif
-#ifdef CONFIG_ASF_EGRESS_QOS
+#if defined(CONFIG_ASF_EGRESS_QOS) || defined(CONFIG_ASF_LINUX_QOS)
typedef int asf_qos_fn_hook(struct sk_buff *skb);
void asf_qos_fn_register(asf_qos_fn_hook *fn);
#endif
diff --git a/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h b/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h
index b0bd8aa..99f654b 100644
--- a/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h
+++ b/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h
@@ -375,6 +375,23 @@ typedef struct ioc_fm_pcd_kg_dflt_value_params_t {
*//***************************************************************************/
#define FM_PCD_IOC_GET_COUNTER _IOWR(FM_IOC_TYPE_BASE, FM_PCD_IOC_NUM(9), ioc_fm_pcd_counters_params_t)
+/**************************************************************************//**
+
+ @Function FM_PCD_KgSchemeGetCounter
+
+ @Description Reads scheme packet counter.
+
+ @Param[in] h_Scheme scheme handle as returned by FM_PCD_KgSchemeSet().
+
+ @Return Counter's current value.
+
+ @Cautions Allowed only following FM_PCD_Init() & FM_PCD_KgSchemeSet().
+*//***************************************************************************/
+#if defined(CONFIG_COMPAT)
+#define FM_PCD_IOC_KG_SCHEME_GET_CNTR_COMPAT _IOR(FM_IOC_TYPE_BASE, FM_PCD_IOC_NUM(4), ioc_compat_fm_pcd_kg_scheme_spc_t)
+#endif
+#define FM_PCD_IOC_KG_SCHEME_GET_CNTR _IOR(FM_IOC_TYPE_BASE, FM_PCD_IOC_NUM(4), ioc_fm_pcd_kg_scheme_spc_t)
+
#if 0
TODO: unused IOCTL
/**************************************************************************//**
@@ -1126,6 +1143,15 @@ typedef struct ioc_fm_pcd_kg_scheme_counter_t {
counter; clear this field to reset the counter. */
} ioc_fm_pcd_kg_scheme_counter_t;
+
+/**************************************************************************//**
+ @Description A structure for retrieving FMKG_SE_SPC
+*//***************************************************************************/
+typedef struct ioc_fm_pcd_kg_scheme_spc_t {
+ uint32_t val; /**< return value */
+ void *id; /**< scheme handle */
+} ioc_fm_pcd_kg_scheme_spc_t;
+
/**************************************************************************//**
@Description A structure for defining policer profile parameters as required by keygen
(when policer is the next engine after this scheme).
@@ -1486,6 +1512,12 @@ typedef struct ioc_fm_pcd_hash_table_params_t {
ioc_fm_pcd_cc_next_engine_params_t cc_next_engine_params_for_miss;
/**< Parameters for defining the next engine when a key is not matched */
+ bool aging_support; /**< TRUE to enable aging support for all keys of this hash table;
+ Aging status of a key enables the application to monitor if the
+ key was accessed for a certain period of time, meaning if a
+ packet that matches this key was received since this bit was last
+ set by the application */
+
void *id;
} ioc_fm_pcd_hash_table_params_t;