--- zzzz-none-000/linux-5.15.111/net/netfilter/nf_conntrack_netlink.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/net/netfilter/nf_conntrack_netlink.c 2024-02-07 10:23:30.000000000 +0000 @@ -14,6 +14,10 @@ * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. */ +/* + * Includes Intel Corporation's changes/modifications dated: 2018. + * Changed/modified portions - Copyright (c) 2018, Intel Corporation. + */ #include #include @@ -56,6 +60,10 @@ #include "nf_internals.h" +#ifdef CONFIG_INTEL_KERNEL_PP_DRIVER_LOCAL +#include +#endif /* CONFIG_INTEL_KERNEL_PP_DRIVER_LOCAL */ + MODULE_LICENSE("GPL"); static int ctnetlink_dump_tuples_proto(struct sk_buff *skb, @@ -1566,9 +1574,17 @@ if (IS_ERR(filter)) return PTR_ERR(filter); } - +#ifdef CONFIG_INTEL_KERNEL_PP_DRIVER_LOCAL + /* For PP on ATOM, all active PP sessions to be deleted and disable PP to + * avoid any new session creation when connection tracking entry is getting + * flushed. This change is specific to PP on ATOM configuration only. */ + ti_hil_pp_event (NETFILTER_CT_FLUSH_START, (void *)NULL); +#endif nf_ct_iterate_cleanup_net(net, ctnetlink_flush_iterate, filter, portid, report); +#ifdef CONFIG_INTEL_KERNEL_PP_DRIVER_LOCAL + ti_hil_pp_event (NETFILTER_CT_FLUSH_END, (void *)NULL); +#endif kfree(filter); return 0;