From e176e3fade4bea2eb4fed6d6b4a689b3248e0788 Mon Sep 17 00:00:00 2001 From: Mandy Lavi Date: Mon, 9 Nov 2015 19:48:35 +0200 Subject: fmd: fix compat layer for aging_support This attribute should have been added also to the compat layer while it was implemented in the general layer Signed-off-by: Mandy Lavi 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 ea0885a..08752aa 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 @@ -518,6 +518,7 @@ void compat_copy_fm_pcd_hash_table( param->hash_res_mask = compat_param->hash_res_mask; param->hash_shift = compat_param->hash_shift; param->match_key_size = compat_param->match_key_size; + param->aging_support = compat_param->aging_support; param->id = compat_pcd_id2ptr(compat_param->id); } else @@ -528,6 +529,7 @@ void compat_copy_fm_pcd_hash_table( compat_param->hash_res_mask = param->hash_res_mask; compat_param->hash_shift = param->hash_shift; compat_param->match_key_size = param->match_key_size; + compat_param->aging_support = param->aging_support; compat_param->id = compat_add_ptr2id(param->id, FM_MAP_TYPE_PCD_NODE); } diff --git a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.h b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.h index d89a64d..ec2e971 100644 --- a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.h +++ b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.h @@ -296,6 +296,7 @@ typedef struct ioc_compat_fm_pcd_hash_table_params_t { uint16_t hash_res_mask; uint8_t hash_shift; uint8_t match_key_size; + bool aging_support; ioc_compat_fm_pcd_cc_next_engine_params_t cc_next_engine_params_for_miss; compat_uptr_t id; } ioc_compat_fm_pcd_hash_table_params_t; diff --git a/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h b/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h index b0bd8aa..a4b5e76 100644 --- a/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h +++ b/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h @@ -1486,6 +1486,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; -- cgit v0.10.2