summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMandy Lavi <mandy.lavi@freescale.com>2015-11-09 17:48:35 (GMT)
committerMandy Lavi <mandy.lavi@freescale.com>2015-11-09 18:04:05 (GMT)
commite176e3fade4bea2eb4fed6d6b4a689b3248e0788 (patch)
treeabafe8c5e67f26f72c1e863606aaf392a972f60d
parent3a8d082000de5bdf4af37b3c2b61de11866216fa (diff)
downloadlinux-fsl-qoriq-e176e3fade4bea2eb4fed6d6b4a689b3248e0788.tar.xz
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 <mandy.lavi@freescale.com>
-rw-r--r--drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.c2
-rw-r--r--drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.h1
-rw-r--r--include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h6
3 files changed, 9 insertions, 0 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 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;