[PATCH v2 09/10] bus/vmbus: store name in bus specific device

Bruce Richardson bruce.richardson at intel.com
Mon Jun 22 12:28:08 CEST 2026


On Thu, Jun 18, 2026 at 05:28:24PM +0200, David Marchand wrote:
> The device name is allocated with strdup() during scan and freed in
> several places. However, when this bus cleanup is converted to use the
> EAL generic helper, freeing the device object will require a custom
> helper to also free the device name (and for this, a cast will be
> needed).
> 
> Instead, add an embedded name array to rte_vmbus_device structure
> (char name[RTE_DEV_NAME_MAX_LEN]) which is sufficient for all VMBUS
> device names (UUID format: 36 characters, or shorter legacy format).
> 
> This simplifies the device freeing to a simple free() call.
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---

Seems reasonable to me.
Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list