--- zzzz-none-000/linux-4.9.279/net/ipv4/netfilter/ip_tables.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/net/ipv4/netfilter/ip_tables.c 2023-02-08 11:43:43.000000000 +0000 @@ -9,6 +9,13 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ + +/* + Includes Intel Corporation's changes/modifications dated: [Mar.2017]. + Changed/modified portions - Copyright (C) 2017, Intel Corporation + 1. PP Hook +*/ + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include #include @@ -28,9 +35,14 @@ #include #include +#include #include #include "../../netfilter/xt_repldata.h" +#ifdef CONFIG_TI_PACKET_PROCESSOR +#include +#endif + MODULE_LICENSE("GPL"); MODULE_AUTHOR("Netfilter Core Team "); MODULE_DESCRIPTION("IPv4 packet filter"); @@ -373,6 +385,20 @@ xt_write_recseq_end(addend); local_bh_enable(); +#ifdef CONFIG_TI_PACKET_PROCESSOR + if (acpar.hotdrop) + { + ti_hil_pp_event (TI_CT_NETFILTER_DISCARD_PKT, (void *)skb); + } + else + { + if (verdict == NF_DROP) + { + ti_hil_pp_event(TI_CT_NETFILTER_DISCARD_PKT, (void *)skb); + } + } +#endif + if (acpar.hotdrop) return NF_DROP; else return verdict; @@ -1112,6 +1138,10 @@ } vfree(counters); xt_table_unlock(t); +#if defined(CONFIG_APPCPU_GW_PP_HANDLE) || defined(CONFIG_TI_PACKET_PROCESSOR) + ti_hil_pp_event (TI_CT_NETFILTER_TABLE_UPDATE, (void *)t); +#endif + return ret; put_module: