From 86555dde84fb8a0beaf36e65648ae3f57089e113 Mon Sep 17 00:00:00 2001 From: Amir Levy Date: Thu, 3 Aug 2017 17:19:41 +0300 Subject: [PATCH] msm: ipa3: fix compatibility with ipa kernel tests Add several defines and structs to allow IPA kernel tests running. Change-Id: I9c8f114b28aa617bdf1bfe56b44b73852a178ece Acked-by: Dmitry Kogan Signed-off-by: Amir Levy --- include/linux/ipa.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/include/linux/ipa.h b/include/linux/ipa.h index c11a5c4afece..a4b817c5e4fc 100644 --- a/include/linux/ipa.h +++ b/include/linux/ipa.h @@ -39,6 +39,14 @@ enum ipa_nat_en_type { IPA_DST_NAT, }; +/** + * enum ipa_ipv6ct_en_type - IPv6CT setting type in IPA end-point + */ +enum ipa_ipv6ct_en_type { + IPA_BYPASS_IPV6CT, + IPA_ENABLE_IPV6CT, +}; + /** * enum ipa_mode_type - mode setting type in IPA end-point * @BASIC: basic mode @@ -118,6 +126,19 @@ struct ipa_ep_cfg_nat { enum ipa_nat_en_type nat_en; }; +/** + * struct ipa_ep_cfg_conn_track - IPv6 Connection tracking configuration in + * IPA end-point + * @conn_track_en: Defines speculative conn_track action, means if specific + * pipe needs to have UL/DL IPv6 Connection Tracking or Bypass + * IPv6 Connection Tracking. 0: Bypass IPv6 Connection Tracking + * 1: IPv6 UL/DL Connection Tracking. + * Valid for Input Pipes only (IPA consumer) + */ +struct ipa_ep_cfg_conn_track { + enum ipa_ipv6ct_en_type conn_track_en; +}; + /** * struct ipa_ep_cfg_hdr - header configuration in IPA end-point * @@ -386,7 +407,8 @@ struct ipa_ep_cfg_seq { /** * struct ipa_ep_cfg - configuration of IPA end-point - * @nat: NAT parmeters + * @nat: NAT parameters + * @conn_track: IPv6CT parameters * @hdr: Header parameters * @hdr_ext: Extended header parameters * @mode: Mode parameters @@ -400,6 +422,7 @@ struct ipa_ep_cfg_seq { */ struct ipa_ep_cfg { struct ipa_ep_cfg_nat nat; + struct ipa_ep_cfg_conn_track conn_track; struct ipa_ep_cfg_hdr hdr; struct ipa_ep_cfg_hdr_ext hdr_ext; struct ipa_ep_cfg_mode mode;