William Tu
683b76fc9b
net/mlx5e: reduce rep rxq depth to 256 for ECPF
...
[ Upstream commit b9cc8f9d700867aaa77aedddfea85e53d5e5d584 ]
By experiments, a single queue representor netdev consumes kernel
memory around 2.8MB, and 1.8MB out of the 2.8MB is due to page
pool for the RXQ. Scaling to a thousand representors consumes 2.8GB,
which becomes a memory pressure issue for embedded devices such as
BlueField-2 16GB / BlueField-3 32GB memory.
Since representor netdevs mostly handles miss traffic, and ideally,
most of the traffic will be offloaded, reduce the default non-uplink
rep netdev's RXQ default depth from 1024 to 256 if mdev is ecpf eswitch
manager. This saves around 1MB of memory per regular RQ,
(1024 - 256) * 2KB, allocated from page pool.
With rxq depth of 256, the netlink page pool tool reports
$./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--dump page-pool-get
{'id': 277,
'ifindex': 9,
'inflight': 128,
'inflight-mem': 786432,
'napi-id': 775}]
This is due to mtu 1500 + headroom consumes half pages, so 256 rxq
entries consumes around 128 pages (thus create a page pool with
size 128), shown above at inflight.
Note that each netdev has multiple types of RQs, including
Regular RQ, XSK, PTP, Drop, Trap RQ. Since non-uplink representor
only supports regular rq, this patch only changes the regular RQ's
default depth.
Signed-off-by: William Tu <witu@nvidia.com>
Reviewed-by: Bodong Wang <bodong@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20250209101716.112774-8-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-04 14:32:34 +02:00
..
accessibility
acpi
ACPI: HED: Always initialize before evged
2025-06-04 14:32:33 +02:00
amba
android
binder: fix UAF caused by offsets overwrite
2024-09-12 11:03:55 +02:00
ata
ahci: add PCI ID for Marvell 88SE9215 SATA Controller
2025-05-02 07:39:10 +02:00
atm
atm: idt77252: prevent use after free in dequeue_rx()
2024-09-04 13:14:51 +02:00
auxdisplay
base
PM: sleep: Fix handling devices with direct_complete set on errors
2025-04-10 14:29:40 +02:00
bcma
block
nbd: don't allow reconnect after disconnect
2025-03-13 12:42:52 +01:00
bluetooth
Bluetooth: btrtl: Prevent potential NULL dereference
2025-05-02 07:39:19 +02:00
bus
cdrom
char
virtio_console: fix missing byte order handling for cols and rows
2025-05-02 07:39:26 +02:00
clk
clk: check for disabled clock-provider in of_clk_get_hw_from_clkspec()
2025-05-02 07:39:28 +02:00
clocksource
clocksource/i8253: Use raw_spinlock_irqsave() in clockevent_i8253_disable()
2025-06-04 14:32:29 +02:00
connector
counter
counter: stm32-lptimer-cnt: fix error handling when enabling
2025-04-10 14:29:39 +02:00
cpufreq
cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()
2025-05-02 07:39:25 +02:00
cpuidle
cpuidle: menu: Avoid discarding useful information
2025-06-04 14:32:32 +02:00
crypto
crypto: atmel-sha204a - Set hwrng quality to lowest possible
2025-05-02 07:39:30 +02:00
dax
dca
devfreq
dio
dma
dmaengine: Revert "dmaengine: dmatest: Fix dmatest waiting less when interrupted"
2025-06-04 14:32:29 +02:00
dma-buf
udmabuf: fix a buf size overflow issue during udmabuf creation
2025-05-02 07:39:29 +02:00
edac
EDAC/ie31200: work around false positive build warning
2025-06-04 14:32:33 +02:00
eisa
extcon
firewire
firmware
firmware: imx-scu: fix OF node leak in .probe()
2025-04-10 14:29:37 +02:00
fpga
fpga: altera-cvp: Increase credit timeout
2025-06-04 14:32:32 +02:00
fsi
gnss
gpio
gpio: zynq: Fix wakeup source leaks on device unbind
2025-05-02 07:39:17 +02:00
gpu
drm/amdkfd: KFD release_work possible circular locking
2025-06-04 14:32:32 +02:00
greybus
greybus: Fix use-after-free bug in gb_interface_release due to race condition.
2024-07-05 09:08:20 +02:00
hid
HID: pidff: Fix null pointer dereference in pidff_find_fields
2025-05-02 07:39:09 +02:00
hsi
HSI: ssi_protocol: Fix use after free vulnerability in ssi_protocol Driver Due to Race Condition
2025-05-02 07:39:18 +02:00
hv
Drivers: hv: vmbus: Don't release fb_mmio resource in vmbus_free_mmio()
2025-04-10 14:29:35 +02:00
hwmon
hwmon: (gpio-fan) Add missing mutex locks
2025-06-04 14:32:32 +02:00
hwspinlock
hwtracing
coresight: catu: Fix number of pages while using 64k pages
2025-04-10 14:29:41 +02:00
i2c
i2c: pxa: fix call balance of i2c->clk handling routines
2025-06-04 14:32:30 +02:00
i3c
i3c: Add NULL pointer check in i3c_master_queue_ibi()
2025-05-02 07:39:15 +02:00
ide
idle
iio
iio: chemical: sps30: use aligned_s64 for timestamp
2025-06-04 14:32:28 +02:00
infiniband
RDMA/rxe: Fix slab-use-after-free Read in rxe_queue_cleanup bug
2025-06-04 14:32:28 +02:00
input
Input: synaptics - enable InterTouch on TUXEDO InfinityBook Pro 14 v5
2025-06-04 14:32:29 +02:00
interconnect
iommu
iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid
2025-06-04 14:32:26 +02:00
ipack
irqchip
irqchip/gic-v2m: Prevent use after free of gicv2m_get_fwnode()
2025-06-04 14:32:25 +02:00
isdn
mISDN: Fix a use after free in hfcmulti_tx()
2024-08-19 05:33:42 +02:00
leds
leds: lp8860: Write full EEPROM, not only half of it
2025-03-13 12:43:06 +01:00
lightnvm
macintosh
macintosh/therm_windtunnel: fix module unload.
2024-08-19 05:33:34 +02:00
mailbox
mailbox: use error ret code of of_parse_phandle_with_args()
2025-06-04 14:32:30 +02:00
mcb
mcb: fix a double free bug in chameleon_parse_gdd()
2025-05-02 07:39:26 +02:00
md
dm cache: prevent BUG_ON by blocking retries on failed device resumes
2025-06-04 14:32:31 +02:00
media
media: cx231xx: set device_caps for 417
2025-06-04 14:32:32 +02:00
memory
memstick
memstick: rtsx_usb_ms: Fix slab-use-after-free in rtsx_usb_ms_drv_remove
2025-04-10 14:29:39 +02:00
message
scsi: fusion: Remove unused variable 'rc'
2024-12-14 19:44:29 +01:00
mfd
mfd: sm501: Switch to BIT() to mitigate integer overflows
2025-04-10 14:29:41 +02:00
misc
misc: pci_endpoint_test: Fix displaying 'irq_type' after 'request_irq' error
2025-05-02 07:39:25 +02:00
mmc
mmc: sdhci: Disable SD card clock before changing parameters
2025-06-04 14:32:31 +02:00
mtd
mtd: rawnand: Add status chack in r852_ready()
2025-05-02 07:39:16 +02:00
mux
net
net/mlx5e: reduce rep rxq depth to 256 for ECPF
2025-06-04 14:32:34 +02:00
nfc
nfc: pn533: Add poll mod list filling check
2024-09-04 13:15:04 +02:00
ntb
ntb: reduce stack usage in idt_scan_mws
2025-05-02 07:39:28 +02:00
nubus
nvdimm
libnvdimm/labels: Fix divide error in nd_label_data_init()
2025-06-04 14:32:30 +02:00
nvme
nvme: unblock ctrl state transition for firmware update
2025-06-04 14:32:28 +02:00
nvmem
nvmem: core: improve range check for nvmem_cell_write()
2025-03-13 12:43:10 +01:00
of
of: module: add buffer overflow check in of_modalias()
2025-06-04 14:32:25 +02:00
opp
oprofile
parisc
parport
parport_pc: add support for ASIX AX99100
2025-03-13 12:43:19 +01:00
pci
PCI: Fix old_size lower bound in calculate_iosize() too
2025-06-04 14:32:33 +02:00
pcmcia
pcmcia: Use resource_size function on resource object
2024-09-12 11:03:52 +02:00
perf
perf: arm_pmu: Don't disable counter in armpmu_add()
2025-05-02 07:39:09 +02:00
phy
phy: core: don't require set_mode() callback for phy_get_mode() to work
2025-06-04 14:32:33 +02:00
pinctrl
pinctrl: devicetree: do not goto err when probing hogs in pinctrl_dt_to_map
2025-06-04 14:32:33 +02:00
platform
platform/x86: asus-wmi: Fix wlan_ctrl_by_user detection
2025-06-04 14:32:28 +02:00
pnp
power
power: supply: max77693: Fix wrong conversion of charge input threshold value
2025-04-10 14:29:41 +02:00
powercap
powercap: call put_device() on an error path in powercap_register_control_type()
2025-04-10 14:29:36 +02:00
pps
pps: Fix a use-after-free
2025-03-13 12:43:19 +01:00
ps3
ptp
ptp: Ensure info->enable callback is always set
2025-03-13 12:43:11 +01:00
pwm
pwm: mediatek: always use bus clock for PWM on MT7622
2025-05-02 07:39:18 +02:00
rapidio
rapidio: fix an API misues when rio_add_net() fails
2025-03-13 12:43:28 +01:00
ras
regulator
regulator: of: Implement the unwind path of of_regulator_match()
2025-03-13 12:42:54 +01:00
remoteproc
remoteproc: imx_rproc: Skip over memory region when node value is NULL
2024-08-19 05:33:44 +02:00
reset
reset: berlin: fix OF node leak in probe() error path
2024-11-08 16:20:28 +01:00
rpmsg
rpmsg: glink: Propagate TX failures in intentless mode as well
2024-12-14 19:44:39 +01:00
rtc
rtc: ds1307: stop disabling alarms on probe
2025-06-04 14:32:31 +02:00
s390
s390/cio: Fix CHPID "configure" attribute caching
2025-04-10 14:29:36 +02:00
sbus
scsi
scsi: mpt3sas: Send a diag reset if target reset fails
2025-06-04 14:32:33 +02:00
sfi
sh
sh: clk: Fix clk_enable() to return 0 on NULL clk
2025-01-09 13:23:29 +01:00
siox
slimbus
slimbus: messaging: Free transaction ID in delayed interrupt scenario
2025-03-13 12:43:33 +01:00
soc
soc: qcom: smem_state: fix missing of_node_put in error path
2025-03-13 12:43:09 +01:00
soundwire
soundwire: stream: Revert "soundwire: stream: fix programming slave ports for non-continous port maps"
2024-11-08 16:20:25 +01:00
spi
spi: loopback-test: Do not split 1024-byte hexdumps
2025-06-04 14:32:28 +02:00
spmi
ssb
ssb: Fix division by zero issue in ssb_calc_clock_rate
2024-09-04 13:14:53 +02:00
staging
staging: axis-fifo: Correct handling of tx_fifo_depth for size validation
2025-06-04 14:32:28 +02:00
target
scsi: target: iscsi: Fix timeout on deleted connection
2025-06-04 14:32:29 +02:00
tc
tee
tee: optee: Fix supplicant wait loop
2025-03-13 12:43:23 +01:00
thermal
thermal/drivers/rockchip: Add missing rk3328 mapping entry
2025-05-02 07:39:16 +02:00
thunderbolt
tty
serial: sifive: lock port in startup()/shutdown() callbacks
2025-05-02 07:39:26 +02:00
uio
Drivers: hv: vmbus: Fix rescind handling in uio_hv_generic
2024-09-12 11:03:55 +02:00
usb
usb: usbtmc: Fix erroneous generic_read ioctl return
2025-06-04 14:32:27 +02:00
vfio
vfio/pci: Enable iowrite64 and ioread64 for vfio pci
2025-03-13 12:43:13 +01:00
vhost
video
fbdev: core: tileblit: Implement missing margin clearing for tileblit
2025-06-04 14:32:30 +02:00
virt
virtio
visorbus
vlynq
vme
w1
watchdog
watchdog: mediatek: Make sure system reset gets asserted in mtk_wdt_restart()
2024-12-14 19:44:44 +01:00
xen
xen: Add support for XenServer 6.1 platform device
2025-06-04 14:32:31 +02:00
zorro
Kconfig
Makefile