On 12/1/21 9:22 PM, Parav Pandit wrote: > @@ -233,6 +254,15 @@ static int vdpa_argv_parse(struct vdpa *vdpa, int argc, char **argv, > > NEXT_ARG_FWD(); > o_found |= VDPA_OPT_VDEV_MGMTDEV_HANDLE; > + } else if ((matches(*argv, "mac") == 0) && use strcmp; we are not taking any more uses of matches() for parameters. > + (o_all & VDPA_OPT_VDEV_MAC)) { > + NEXT_ARG_FWD(); > + err = vdpa_argv_mac(vdpa, argc, argv, opts->mac); > + if (err) > + return err; > + > + NEXT_ARG_FWD(); > + o_found |= VDPA_OPT_VDEV_MAC; > } else { > fprintf(stderr, "Unknown option \"%s\"\n", *argv); > return -EINVAL; _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization