--- zzzz-none-000/linux-2.6.39.4/net/netfilter/nf_conntrack_standalone.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/net/netfilter/nf_conntrack_standalone.c 2021-11-10 13:23:11.000000000 +0000 @@ -239,6 +239,35 @@ if (ct_show_delta_time(s, ct)) goto release; +#ifdef CONFIG_TI_PACKET_PROCESSOR + /* Check if the ORIGINAL connection tracking entry has been accelerated or not? */ + if (ct->tuplehash[IP_CT_DIR_ORIGINAL].ti_pp_session_handle == 0xFFFF) + { + /* Conntrack was not accelerated so indicate so. */ + if (seq_printf(s, "[ORG XXX] ")) + goto release; + } + else + { + /* Conntrack was accelerated so dump the session handle. */ + if (seq_printf(s, "ORG %d ", ct->tuplehash[IP_CT_DIR_ORIGINAL].ti_pp_session_handle)) + goto release; + } + /* Check if the REPLY connection tracking entry has been accelerated or not? */ + if (ct->tuplehash[IP_CT_DIR_REPLY].ti_pp_session_handle == 0xFFFF) + { + /* Conntrack was not accelerated so indicate so. */ + if (seq_printf(s, "[REPLY XXX] ")) + goto release; + } + else + { + /* Conntrack was accelerated so dump the session handle. */ + if (seq_printf(s, "REPLY %d ", ct->tuplehash[IP_CT_DIR_REPLY].ti_pp_session_handle)) + goto release; + } +#endif /* CONFIG_TI_PACKET_PROCESSOR */ + if (seq_printf(s, "use=%u\n", atomic_read(&ct->ct_general.use))) goto release;