--- zzzz-none-000/linux-5.15.111/net/ipv4/fib_trie.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/net/ipv4/fib_trie.c 2024-02-07 10:23:30.000000000 +0000 @@ -69,6 +69,9 @@ #include #include #include +#ifdef CONFIG_TI_PACKET_PROCESSOR +#include +#endif /* CONFIG_TI_PACKET_PROCESSOR */ #include "fib_lookup.h" static int call_fib_entry_notifier(struct notifier_block *nb, @@ -1324,6 +1327,9 @@ } } +#ifdef CONFIG_TI_PACKET_PROCESSOR + ti_hil_pp_event(TI_ROUTE_ADDED, (void *)new_fa); +#endif /* CONFIG_TI_PACKET_PROCESSOR */ rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, tb->tb_id, &cfg->fc_nlinfo, nlflags); @@ -1757,6 +1763,10 @@ return -ESRCH; fib_notify_alias_delete(net, key, &l->leaf, fa_to_delete, extack); + +#ifdef CONFIG_TI_PACKET_PROCESSOR + ti_hil_pp_event(TI_ROUTE_DELETED, (void *)fa); +#endif /* CONFIG_TI_PACKET_PROCESSOR */ rtmsg_fib(RTM_DELROUTE, htonl(key), fa_to_delete, plen, tb->tb_id, &cfg->fc_nlinfo, 0);