--- zzzz-none-000/linux-4.9.279/net/l2tp/l2tp_core.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/net/l2tp/l2tp_core.c 2023-02-08 10:58:16.000000000 +0000 @@ -17,6 +17,10 @@ * 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: [10/03/2016]. + * Changed/modified portions - Copyright © [2016], Intel Corporation. + */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt @@ -66,6 +70,10 @@ #include "l2tp_core.h" +#ifdef CONFIG_TI_PACKET_PROCESSOR +#include +#endif + #define L2TP_DRV_VERSION "V2.0" /* L2TP header constants */ @@ -383,8 +391,14 @@ write_unlock_bh(&tunnel->hlist_lock); /* Ignore management session in session count value */ - if (session->session_id != 0) + if (session->session_id != 0) { atomic_inc(&l2tp_session_count); +#ifdef CONFIG_TI_PACKET_PROCESSOR + /* For L2TPv3 (PP does not support send_seq option) - Generate the HIL Event indicating that the L2TPv3 session has been created. */ + if ((tunnel->version == L2TP_HDR_VER_3) && (!session->send_seq)) + ti_hil_pp_event (TI_L2TP_ENTRY_CREATED, (void *)session); +#endif// CONFIG_TI_PACKET_PROCESSOR + } return 0; @@ -1760,6 +1774,11 @@ if (test_and_set_bit(0, &session->dead)) return 0; +#ifdef CONFIG_TI_PACKET_PROCESSOR + /* For L2TPv3 - Generate the HIL Event indicating that the L2TPv3 session has been deleted. */ + if (session->tunnel->version == L2TP_HDR_VER_3) + ti_hil_pp_event (TI_L2TP_ENTRY_DELETED, (void *)session); +#endif// CONFIG_TI_PACKET_PROCESSOR if (session->ref) (*session->ref)(session); __l2tp_session_unhash(session);