--- zzzz-none-000/linux-5.4.213/net/Kconfig 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/net/Kconfig 2024-08-14 09:02:12.000000000 +0000 @@ -26,6 +26,12 @@ if NET +config ETHERNET_PACKET_MANGLE + bool + help + This option can be selected by phy drivers that need to mangle + packets going in or out of an ethernet device. + config WANT_COMPAT_NETLINK_MESSAGES bool help @@ -60,6 +66,7 @@ menu "Networking options" +source "net/avm_pa/Kconfig" source "net/packet/Kconfig" source "net/unix/Kconfig" source "net/tls/Kconfig" @@ -68,6 +75,15 @@ source "net/smc/Kconfig" source "net/xdp/Kconfig" +config AVM_RECV_HOOKS + bool "Module hooks in for received packets (AVM)" + depends on AVM_ENHANCED + default y + help + This option enables the receive and early receive hooks for incoming + packets (in netif_receive_skb()). These are required for kdsldsmod to + do anything useful. + config INET bool "TCP/IP networking" ---help--- @@ -97,6 +113,9 @@ endif # if INET +config SOCK_DIAG + bool + config NETWORK_SECMARK bool "Security Marking" help @@ -331,6 +350,45 @@ with many clients some protection against DoS by a single (spoofed) flow that greatly exceeds average workload. +config SKB_RECYCLER + bool "Generic skb recycling" + default y + ---help--- + SKB_RECYCLER is used to implement RX-to-RX skb recycling. + This config enables the recycling scheme for bridging and + routing workloads. It can reduce skbuff freeing or + reallocation overhead. + +config SKB_RECYCLER_MULTI_CPU + bool "Cross-CPU recycling for CPU-locked workloads" + depends on SMP && SKB_RECYCLER + default n + +config SKB_RECYCLER_PREALLOC + bool "Enable preallocation of SKBs" + depends on SKB_RECYCLER + default n + ---help--- + Preallocates SKBs in recycling lists and the number of + SKBs are configured through CONFIG_SKB_RECYCLE_MAX_PREALLOC_SKBS. + This needs SKB_RECYCLER to be enabled. + The number of preallocated SKBs can be passed using + SKB_RECYCLE_MAX_PREALLOC_SKBS. + +config SKB_RECYCLE_MAX_PREALLOC_SKBS + int "Number of SKBs to be preallocated" + depends on SKB_RECYCLER_PREALLOC + default 16384 + ---help--- + Number of SKBs each of 4K size to be preallocated for recycling + +config ALLOC_SKB_PAGE_FRAG_DISABLE + bool "Disable page fragment based skbuff payload allocations" + depends on !SKB_RECYCLER + default n + ---help--- + Disable page fragment based allocations for skbuff payloads. + menu "Network testing" config NET_PKTGEN @@ -451,6 +509,18 @@ migration of VMs with direct attached VFs by failing over to the paravirtual datapath when the VF is unplugged. +config AVM_SK_TC_INDEX + bool "Store tc_index in struct sock" + depends on AVM_ENHANCED + depends on NET_SCHED + default y + help + This allows application to store a tc_index in the socket via + SIOCSET_TC_INDEX. Packets arriving on this socket will inherit this. + We need this to automatically give voice traffic better priority. + + Say y + endif # if NET # Used by archs to tell that they support BPF JIT compiler plus which flavour.