--- zzzz-none-000/linux-4.9.231/net/ipv4/af_inet.c 2020-07-22 07:10:54.000000000 +0000 +++ falcon-5590-729/linux-4.9.231/net/ipv4/af_inet.c 2022-03-30 12:03:35.000000000 +0000 @@ -121,6 +121,9 @@ #endif #include +#ifdef CONFIG_AVM_PA +#include +#endif /* The inetsw table contains everything that inet_create needs to * build a new socket. @@ -1872,6 +1875,22 @@ ipfrag_init(); +#ifdef CONFIG_AVM_PA + { + struct avm_pa_dev_info *ip_dev = AVM_PA_PTYPE_DEVINFO(&ip_packet_type); + struct avm_pa_pid_cfg cfg = {0}; + + snprintf(cfg.name, sizeof(cfg.name), "ipv4"); + cfg.framing = avm_pa_framing_ptype; + cfg.default_mtu = 0xffff; + cfg.ptype = &ip_packet_type; + if (avm_pa_dev_pid_register(ip_dev, &cfg) < 0) { + pr_err("%s: Cannot register avm_pa pid %s\n", + __func__, cfg.name); + } + } +#endif + dev_add_pack(&ip_packet_type); ip_tunnel_core_init();