--- zzzz-none-000/linux-4.9.279/net/netfilter/nf_conntrack_standalone.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/net/netfilter/nf_conntrack_standalone.c 2023-02-08 10:58:16.000000000 +0000 @@ -7,6 +7,13 @@ * published by the Free Software Foundation. */ +/* +* Includes MaxLinear's changes dated: 2021. +* Changed portions - Copyright 2020-2021, MaxLinear, Inc. +* Includes Intel Corporation's changes dated: 2017. +* Changed portions - Copyright 2017, IntelCorporation. +*/ + #include #include #include @@ -33,6 +40,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 +286,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))