linux/drivers/uio
Naman Jain 5fa1da972f uio_hv_generic: Add a check for HV_NIC for send, receive buffers setup
Receive and send buffer allocation was originally introduced to support
DPDK's networking use case. These buffer sizes were further increased to
meet DPDK performance requirements. However, these large buffers are
unnecessary for any other UIO use cases.
Restrict the allocation of receive and send buffers only for HV_NIC device
type, saving 47 MB of memory per device.

While at it, fix some of the syntax related issues in the touched code
which are reported by "--strict" option of checkpatch.

Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/20250102145243.2088-1-namjain@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250102145243.2088-1-namjain@linux.microsoft.com>
2025-01-10 00:54:21 +00:00
..
Kconfig uio: pruss: Remove this driver 2024-04-11 14:39:56 +02:00
Makefile uio: pruss: Remove this driver 2024-04-11 14:39:56 +02:00
uio.c uio: Constify struct kobj_type 2024-09-11 16:02:54 +02:00
uio_aec.c uio: add missing MODULE_DESCRIPTION() macros 2024-06-04 17:39:12 +02:00
uio_cif.c uio: add missing MODULE_DESCRIPTION() macros 2024-06-04 17:39:12 +02:00
uio_dfl.c uio: dfl: add vendor-specific feature id 2023-05-31 19:00:37 +01:00
uio_dmem_genirq.c uio: uio_dmem_genirq: Make use of irq_get_trigger_type() 2024-10-13 17:16:28 +02:00
uio_fsl_elbc_gpcm.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
uio_hv_generic.c uio_hv_generic: Add a check for HV_NIC for send, receive buffers setup 2025-01-10 00:54:21 +00:00
uio_mf624.c uio: add missing MODULE_DESCRIPTION() macros 2024-06-04 17:39:12 +02:00
uio_netx.c uio: add missing MODULE_DESCRIPTION() macros 2024-06-04 17:39:12 +02:00
uio_pci_generic.c Merge 50f09a3dd5 ("Merge tag 'char-misc-5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc") into char-misc-next 2021-05-21 09:48:31 +02:00
uio_pdrv_genirq.c uio: uio_pdrv_genirq: Make use of irq_get_trigger_type() 2024-10-13 17:16:28 +02:00
uio_sercos3.c uio: uio_sercos3: use device-managed functions for simple allocs 2020-12-09 19:58:54 +01:00