--- zzzz-none-000/linux-4.9.279/net/netfilter/nf_conntrack_standalone.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/net/netfilter/nf_conntrack_standalone.c 2023-02-08 11:43:43.000000000 +0000 @@ -6,7 +6,10 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ - +/* +* Includes MaxLinear's changes dated: 2021. +* Changed portions - Copyright 2021-2021, MaxLinear, Inc. +*/ #include #include #include @@ -33,6 +36,11 @@ #include #include +#if defined(CONFIG_TI_PACKET_PROCESSOR) && defined(CONFIG_INTEL_KERNEL_PP_DRIVER_LOCAL) +#include +#include +#endif /* CONFIG_TI_PACKET_PROCESSOR and CONFIG_INTEL_KERNEL_PP_DRIVER_LOCAL */ + MODULE_LICENSE("GPL"); #ifdef CONFIG_NF_CONNTRACK_PROCFS @@ -274,6 +282,20 @@ ct_show_zone(s, ct, NF_CT_DEFAULT_ZONE_DIR); ct_show_delta_time(s, ct); +#if defined(CONFIG_TI_PACKET_PROCESSOR) && defined(CONFIG_INTEL_KERNEL_PP_DRIVER_LOCAL) + if ((list_empty(&ct->tuplehash[IP_CT_DIR_ORIGINAL].pp_session_list_head)) && + (list_empty(&ct->tuplehash[IP_CT_DIR_REPLY].pp_session_list_head))) + seq_printf(s, " NO PP ACCELERATION "); + else + { + struct ct_entry_print_t entry_info; + entry_info.sf = s; + entry_info.ct = ct; + seq_printf(s, " PP ACCELERATION="); + ti_hil_pp_event(TI_CT_NETFILTER_PRINT_CONNTRACK_SESSIONS, (void *)(&entry_info)); + } +#endif /* CONFIG_TI_PACKET_PROCESSOR && CONFIG_INTEL_KERNEL_PP_DRIVER_LOCAL */ + seq_printf(s, "use=%u\n", atomic_read(&ct->ct_general.use)); if (seq_has_overflowed(s))