Re: [PATCH v2 1/3] Drivers: hv: vmbus: Introduce table of VMBus protocol versions

2019-10-14 Thread Andrea Parri
> > @@ -244,20 +232,18 @@ int vmbus_connect(void) > > * version. > > */ > > > > - version = VERSION_CURRENT; > > + for (i = 0; i < ARRAY_SIZE(vmbus_versions); i++) { > > + version = vmbus_versions[i]; > > > > - do { > > ret = vmbus_negotiate_version(msginfo,

RE: [PATCH v2 1/3] Drivers: hv: vmbus: Introduce table of VMBus protocol versions

2019-10-12 Thread Michael Kelley
From: Andrea Parri Sent: Thursday, October 10, 2019 8:46 AM > > The technique used to get the next VMBus version seems increasisly > clumsy as the number of VMBus versions increases. Performance is > not a concern since this is only done once during system boot; it's > just that we'll end up wi