--- zzzz-none-000/linux-5.15.111/net/netfilter/nf_conntrack_standalone.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/net/netfilter/nf_conntrack_standalone.c 2024-02-07 10:23:30.000000000 +0000 @@ -1,4 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 + +/* +* Includes MaxLinear's changes dated: 2021. +* Changed portions - Copyright 2021-2021, MaxLinear, Inc. +*/ #include #include #include @@ -27,6 +32,11 @@ #endif #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 */ + static bool enable_hooks __read_mostly; MODULE_PARM_DESC(enable_hooks, "Always enable conntrack hooks"); module_param(enable_hooks, bool, 0000); @@ -370,6 +380,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", refcount_read(&ct->ct_general.use)); if (seq_has_overflowed(s))