On Thu, 17 Feb 2022 21:35:59 +0530
Srikanth Kaka <srikant...@oneconvergence.com> wrote:

> +/*
> + * GUID associated with network devices
> + * {f8615163-df3e-46c5-913f-f2d2f965ed0e}
> + */
> +static const rte_uuid_t vmbus_nic_uuid = {
> +     0xf8, 0x61, 0x51, 0x63,
> +     0xdf, 0x3e,
> +     0x46, 0xc5,
> +     0x91, 0x3f,
> +     0xf2, 0xd2, 0xf9, 0x65, 0xed, 0xe
> +};
> +
> +extern struct rte_vmbus_bus rte_vmbus_bus;
> +
> +/* Parse UUID. Caller must pass NULL terminated string */
> +static int
> +parse_sysfs_uuid(const char *filename, rte_uuid_t uu)
> +{
> +     char in[BUFSIZ];
> +
> +     memcpy(in, filename, BUFSIZ);
> +     if (rte_uuid_parse(in, uu) < 0) {
> +             VMBUS_LOG(ERR, "%s not a valid UUID", in);
> +             return -1;
> +     }
> +
> +     return 0;
> +}
> +
> +/* S

Since this code is copy/paste from the Linux version,
could you please put it in either common paraent directory
or in a new place unix/?

Two copies means bugs have to be fixed twice.

Reply via email to