--- zzzz-none-000/linux-4.9.279/net/ipv4/ip_input.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/net/ipv4/ip_input.c 2023-02-08 10:58:16.000000000 +0000 @@ -112,6 +112,11 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ +/* + Includes Intel Corporation's changes/modifications dated: [Dec.2013]. + Changed/modified portions - Copyright © 2011, Intel Corporation + 1. PP Hook +*/ #define pr_fmt(fmt) "IPv4: " fmt @@ -148,6 +153,10 @@ #include #include +#ifdef CONFIG_TI_PACKET_PROCESSOR +#include +#endif + /* * Process Router Attention IP option (RFC 2113) */ @@ -395,6 +404,10 @@ return dst_input(skb); drop: +#ifdef CONFIG_TI_PACKET_PROCESSOR + /* Create a NULL PP device, to drop all dropped packets before they reach the host */ + ti_hil_pp_event (TI_IP_DISCARD_PKT_IPV4, (void *)skb); +#endif //CONFIG_TI_PACKET_PROCESSOR kfree_skb(skb); return NET_RX_DROP; }