opnsense-src/sys
Eric van Gyzen 3ca4a33903 bge: tell debugnet there are 2 rx rings, not 1,024
debugnet provides the network stack for netgdb and netdump.  Since it
must operate under panic/debugger conditions and can't rely on dynamic
memory allocation, it preallocates mbufs during boot or network
configuration.  At that time, it does not yet know which interface
will be used for debugging, so it does not know the required size and
quantity of mbufs to allocate.  It takes the worst-case approach by
calculating its requirements from the largest MTU and largest number
of receive queues across all interfaces that support debugnet.

Unfortunately, the bge NIC driver told debugnet that it supports 1,024
receive queues.  It actually supports only 2 queues (with 1,024 slots,
thus the error).  This greatly exaggerated debugnet's preallocation,
so with an MTU of 9000 on any interface, it allocated 600 MB of memory.
A tiny fraction of this memory would be used if netgdb or netdump were
invoked; the rest is completely wasted.

Reviewed by:	markj, rlibby
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D35845
2022-07-18 16:05:18 -05:00
..
amd64 Rework how shared page related data is stored 2022-07-18 16:27:32 +02:00
arm Rework how shared page related data is stored 2022-07-18 16:27:32 +02:00
arm64 Rework how shared page related data is stored 2022-07-18 16:27:32 +02:00
bsm Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
cam Delay GEOM disk_create() until CAM periph probe completes. 2022-07-14 16:17:36 -04:00
cddl stand: Add blake3 support to boot loader 2022-07-08 22:57:59 -06:00
compat Implement shared page address randomization 2022-07-18 16:27:37 +02:00
conf vm_pager: Remove the default pager 2022-07-17 07:09:48 -04:00
contrib zfs: fixup build on powerpc64le 2022-07-08 18:52:14 -03:00
crypto OpenSSL: Regen assembly file for OpenSSSL 1.1.1q 2022-07-05 12:06:50 -04:00
ddb ddb: add _FLAGS command variants 2022-07-05 11:56:42 -03:00
dev bge: tell debugnet there are 2 rx rings, not 1,024 2022-07-18 16:05:18 -05:00
dts sys/dts: Remove MIPS files 2022-05-20 17:11:27 +01:00
fs cd9660: Use ANSI (c89) prototypes 2022-07-17 08:14:49 -04:00
gdb ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
geom Clarify when GEOM utilities exit with success or failure. 2022-07-16 10:26:51 -07:00
gnu bwn: eliminate dead writes in BWN_GPL_PHY 2022-05-04 09:32:59 -04:00
i386 i386: fix pmap_trm_arena_last atomic load type 2022-07-18 18:43:39 +00:00
isa isa: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:59 -07:00
kern sched_ule: Ensure we hold the thread lock when modifying td_flags 2022-07-18 15:52:27 -04:00
kgssapi kgssapi krb5: Remove unused variables. 2022-04-06 16:45:29 -07:00
libkern libkern: Fix a typo in a source code comment 2022-06-05 08:57:26 +02:00
modules ice(4): Add ice_rdma.c to module Makefile 2022-07-12 18:30:19 -07:00
net IPv4: experimental changes to allow net 0/8, 240/4, part of 127/8 2022-07-13 09:46:05 -05:00
net80211 net80211 / LinuxKPI: 802.11: add Control Trigger Subframe information 2022-06-17 22:55:13 +00:00
netgraph ng_ubt(4): Probe USB Bluetooth per USB interface and not per USB device. 2022-06-03 10:49:17 +02:00
netinet tcp: Undo the increase in sequence number by 1 due to the FIN flag in case of a transient error. 2022-07-14 03:18:19 +02:00
netinet6 netinet6: fix interface handling for loopback traffic 2022-07-10 12:47:47 +00:00
netipsec ipsec_encap: setdf is only used for INET. 2022-04-13 16:08:21 -07:00
netpfil dummynet: check for ifp on all PROTO_LAYER2 packets 2022-07-11 22:07:11 +02:00
netsmb smb_smb_treedisconnect: eliminate write only variable mbp 2022-04-04 22:30:57 -06:00
nfs nfs: skip bootpc when vfs.root.mountfrom is other than nfs 2022-05-31 16:07:27 -03:00
nfsclient
nfsserver
nlm sys/nlm: Use C99 fixed-width integer types. 2021-12-28 09:42:42 -08:00
ofed ofed/infiniband: fix ifdefs for new INET changes, fixing LINT-NOIP 2022-07-18 08:02:01 -05:00
opencrypto crypto: Validate return values from CRYPTODEV_PROCESS() 2022-07-01 11:09:39 -04:00
powerpc Rework how shared page related data is stored 2022-07-18 16:27:32 +02:00
riscv Rework how shared page related data is stored 2022-07-18 16:27:32 +02:00
rpc krpc: Fix NFS-over-TLS for KTLS1.3 2022-05-15 11:51:56 -07:00
security mac_veriexec: Authorize reads of secured sysctls 2022-06-29 10:48:01 +02:00
sys Implement shared page address randomization 2022-07-18 16:27:37 +02:00
teken teken: color #3 is yellow not brown - use TC_YELLOW as the name 2022-03-12 09:17:29 -05:00
tests routing: add IPv6 fib validation procedure. 2021-08-16 23:04:01 +00:00
tools firmware: Map '@' in filenames to '_' in symbols. 2022-06-14 10:50:51 -07:00
ufs Additional check for UFS/FFS superblock integrity checks. 2022-07-16 10:31:52 -07:00
vm Rework how shared page related data is stored 2022-07-18 16:27:32 +02:00
x86 x86/iommu: Eliminate redundant wrappers 2022-07-16 18:05:37 -05:00
xdr sys/xdr: Use C99 fixed-width integer types. 2021-12-28 09:43:26 -08:00
xen xenbus: improve device tracking 2022-06-07 12:29:53 +02:00
Makefile Fix 'make cscope' with ALL_ARCH defined 2022-01-07 11:53:52 -04:00