Re: [PATCH v2] uio_hv_generic: Add a check for HV_NIC for send, receive buffers setup

From: Wei Liu
Date: Wed Jan 08 2025 - 02:28:18 EST


On Wed, Jan 08, 2025 at 05:26:58AM +0000, Michael Kelley wrote:
> From: Naman Jain <namjain@xxxxxxxxxxxxxxxxxxx> Sent: Thursday, January 2, 2025 6:53 AM
> >
> > 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@xxxxxxxxxxxxxxxxxxx>
[...]
>
> Reviewed-by: Michael Kelley <mhklinux@xxxxxxxxxxx>

Applied to hyperv-next. Thanks.