diff options
author | Mandy Lavi <mandy.lavi@freescale.com> | 2014-11-23 09:48:34 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:41:20 (GMT) |
commit | 285979b90928312051e4eb157a123e9a78bc53bb (patch) | |
tree | 79470ba0ea4af3c5000bcd7a92e5a7d70733d8c6 /drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.h | |
parent | 2c4f6dd4fa829b44706518dc36d1056fc6c6a4fc (diff) | |
download | linux-fsl-qoriq-285979b90928312051e4eb157a123e9a78bc53bb.tar.xz |
fmd: adjust compat layer following capwap support
The addition of the capwap related structures required
a few changes in the compat layer to better support
64b kernel space working with 32b user space
Change-Id: I7d49c8cec351ada65259f928df2d6014f5d81342
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/24499
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Jiafei Pan <Jiafei.Pan@freescale.com>
Reviewed-by: Marian-Cornel Chereji <marian.chereji@freescale.com>
Reviewed-by: Richard Schmitt <richard.schmitt@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.h')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm_compat.h | 26 |
1 files changed, 23 insertions, 3 deletions
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 471a1cf..7340396 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 @@ -416,10 +416,30 @@ typedef struct ioc_compat_fm_pcd_manip_hdr_insrt_specific_l2_params_t { compat_uptr_t p_data; } ioc_compat_fm_pcd_manip_hdr_insrt_specific_l2_params_t; +typedef struct ioc_compat_fm_pcd_manip_hdr_insrt_t { + uint8_t size; /**< size of inserted section */ + compat_uptr_t p_data; /**< data to be inserted */ +} ioc_compat_fm_pcd_manip_hdr_insrt_t; + +#if (DPAA_VERSION >= 11) +typedef struct ioc_compat_fm_pcd_manip_hdr_insrt_ip_params_t { + bool calc_l4_checksum; /**< Calculate L4 checksum. */ + ioc_fm_pcd_manip_hdr_qos_mapping_mode mapping_mode; /**< TODO */ + uint8_t last_pid_offset; /**< the offset of the last Protocol within + the inserted header */ + uint16_t id; /**< 16 bit New IP ID */ + ioc_compat_fm_pcd_manip_hdr_insrt_t insrt; /**< size and data to be inserted. */ +} ioc_compat_fm_pcd_manip_hdr_insrt_ip_params_t; +#endif /* (DPAA_VERSION >= 11) */ + typedef struct ioc_compat_fm_pcd_manip_hdr_insrt_by_hdr_params_t { ioc_fm_pcd_manip_hdr_insrt_by_hdr_type type; union { ioc_compat_fm_pcd_manip_hdr_insrt_specific_l2_params_t specific_l2_params; +#if (DPAA_VERSION >= 11) + ioc_compat_fm_pcd_manip_hdr_insrt_ip_params_t ip_params; + ioc_compat_fm_pcd_manip_hdr_insrt_t insrt; +#endif /* (DPAA_VERSION >= 11) */ } u; } ioc_compat_fm_pcd_manip_hdr_insrt_by_hdr_params_t; @@ -428,8 +448,8 @@ typedef struct ioc_compat_fm_pcd_manip_hdr_insrt_params_t { union { ioc_compat_fm_pcd_manip_hdr_insrt_by_hdr_params_t by_hdr; ioc_compat_fm_pcd_manip_hdr_insrt_generic_params_t generic; -#ifdef FM_CAPWAP_SUPPORT -#error CAPWAP not supported! +#if (defined(FM_CAPWAP_SUPPORT) && (DPAA_VERSION == 10)) +#error "FM_CAPWAP_SUPPORT feature not supported!" ioc_fm_pcd_manip_hdr_insrt_by_template_params_t by_template; #endif /* FM_CAPWAP_SUPPORT */ } u; @@ -456,7 +476,7 @@ typedef struct ioc_compat_fm_pcd_manip_params_t { ioc_fm_pcd_manip_special_offload_params_t special_offload; } u; compat_uptr_t p_next_manip; -#ifdef FM_CAPWAP_SUPPORT +#if (defined(FM_CAPWAP_SUPPORT) && (DPAA_VERSION == 10)) #error "FM_CAPWAP_SUPPORT feature not supported!" bool frag_or_reasm; ioc_fm_pcd_manip_frag_or_reasm_params_t frag_or_reasm_params; |