--- zzzz-none-000/linux-5.15.111/drivers/net/ppp/pppoe.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/drivers/net/ppp/pppoe.c 2024-02-07 09:27:53.000000000 +0000 @@ -51,6 +51,10 @@ * * License: */ +/* + * Includes Intel Corporation's changes/modifications dated: [11/07/2011]. +* Changed/modified portions - Copyright © [2011], Intel Corporation. +*/ #include #include @@ -84,6 +88,11 @@ #define PPPOE_HASH_SIZE (1 << PPPOE_HASH_BITS) #define PPPOE_HASH_MASK (PPPOE_HASH_SIZE - 1) +#ifdef CONFIG_TI_PACKET_PROCESSOR +int ti_pp_ppp_vpid_info = 0; +int ti_pp_ppp_sid = 0; +#endif //CONFIG_TI_PACKET_PROCESSOR + static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb); static const struct proto_ops pppoe_ops; @@ -670,6 +679,14 @@ if (!dev) goto err_put; +#ifdef CONFIG_TI_PACKET_PROCESSOR + /* Save the VPID information block from the Parent PID. This + * will be used for creating the VPID by the Packet Processor + * when the PPPoX interface is actually created. Also save the PPP + * session id so that it can be communicated to the HIL PP for its use. */ + ti_pp_ppp_vpid_info = (int)&dev->vpid_block; + ti_pp_ppp_sid = sp->sa_addr.pppoe.sid; +#endif //CONFIG_TI_PACKET_PROCESSOR po->pppoe_dev = dev; po->pppoe_ifindex = dev->ifindex; pn = pppoe_pernet(net);