Thread (19 messages) flat view 19 messages, 4 authors, 2022-03-16

Re: [PATCH v7 3/4] vdpa: Support for configuring max VQ pairs for a device

From: David Ahern <dsahern@kernel.org>
Date: 2022-03-14 15:09:13

On 3/13/22 11:12 AM, Eli Cohen wrote:
quoted hunk ↗ jump to hunk
@@ -290,6 +295,14 @@ static int vdpa_argv_parse(struct vdpa *vdpa, int argc, char **argv,
 
 			NEXT_ARG_FWD();
 			o_found |= VDPA_OPT_VDEV_MTU;
+		} else if ((matches(*argv, "max_vqp")  == 0) && (o_optional & VDPA_OPT_MAX_VQP)) {
+			NEXT_ARG_FWD();
+			err = vdpa_argv_u16(vdpa, argc, argv, &opts->max_vqp);
+			if (err)
+				return err;
+
+			NEXT_ARG_FWD();
+			o_found |= VDPA_OPT_MAX_VQP;
 		} else {
 			fprintf(stderr, "Unknown option \"%s\"\n", *argv);
 			return -EINVAL;
new options require an update to the man page. That should have been
included in this set. Please make sure that happens on future sets.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help