Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5609354ybp; Tue, 8 Oct 2019 05:47:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOSXJfa+Ilcm8ZbZZe+YigLLTxGlD7NeUsPxEjuKAP639blM93mj45c+qulUuPIGcIPqAR X-Received: by 2002:a17:906:1f57:: with SMTP id d23mr29204041ejk.103.1570538841003; Tue, 08 Oct 2019 05:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570538840; cv=none; d=google.com; s=arc-20160816; b=U2p+ruKvaJqENQEZ3yqTpBxxS3NRw67ZooJc5zPf7j4jT7guV7U+qa+EVPYTEIlqaI b04D6GSuotUxIQgs0GHsKqyc2EqUfff+FFidh85wqQcm9zEZfwLQMBR5o2yz8YO/Dk7V /tkjWGvAUBh+oy5a1cEpqj2Lz9WaEwmFjIigxiw85YCfJyhcIr97+ybZrxQ+Yc2iKNXg dWY2RsAHR9WY3CIq5kc9mQlB/ubwZvLEF4dX/sn/PjhnKvARtmry1IkRNP6w3otrGSWe 59IQdT9fow6zzFTe+yupLr3zYJP70IgcjRLdWmrhcJfFGSxmbejxNOXUrmn3HdMoH6bV i98A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9yDaroMsm4CI8Hh6QbGq4eORn4M7okAkDA4uXKpP/5g=; b=MPn1UAvDtFSQNC3fdc7c46HXGHy+lsuci5YZTkPOyrGI18JR8SfiKEqubgTRIAlpeF px3KtpMGRA4ZDuPt9Z5dSsEkZu2x25KRWxZLk44ErsF9Pa1bKJeRGe/17J6PDWIUa9Lr NKGVUFZYqhh5fjr2N2HmN6zhOsJFcOz1lyXa6nrqpdRRntlYji+DDa3BNrLm/AmsmM9j IO17M6JsWNjqYHRta8OkREgtjV5FAGqa0KcHIdrUOsc3EbdoGFS9boGDHg7V33en6G+Q 9tZjz32/lGO847Qo8g7tW9o1OwQq4YAH5QR8J+oq4fqAzLpMSJsGlO3megRRy80Qmuvp +cXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="DW4NaB/A"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21si8730514ejq.343.2019.10.08.05.46.57; Tue, 08 Oct 2019 05:47:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="DW4NaB/A"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730964AbfJHMpB (ORCPT + 99 others); Tue, 8 Oct 2019 08:45:01 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51380 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730888AbfJHMpA (ORCPT ); Tue, 8 Oct 2019 08:45:00 -0400 Received: by mail-wm1-f67.google.com with SMTP id 7so3006819wme.1; Tue, 08 Oct 2019 05:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9yDaroMsm4CI8Hh6QbGq4eORn4M7okAkDA4uXKpP/5g=; b=DW4NaB/AIYOc2OYd1jDzN+WSSZhSWViSKulHRS296tJZThyC2l1ToOSmlK1uW+oYu+ 0ej0xkLc2SbSjEGg+KCB1Y5tu6sxXBJAhSVEvRsERBorE1aut2R920zwPcKrSoCSlKpg 7AkeniV7nnEZ1WWw58IBhj6cH6H0paJE+5TgmbKIGoAjajSATP8QOSITJO5lYYD7HV1F 2oqwu0LvipExIo23f+6sM9+dO9/pBJuZKz34yVEUaoe13YqErUNoK3uRJ9bl1KnfCpPi Qhdh/vBVO+xksZOme3XsSMWmQu7Bo3Z9/5ZyAjT12l5NCitMCSToLAKRrKgfBLO+K6RC 803g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9yDaroMsm4CI8Hh6QbGq4eORn4M7okAkDA4uXKpP/5g=; b=THszsfMIObJzxfsZwWgJv7Nn+V0pkcWYxFe/vR6Z3xUGzUMJNuzmDRlCVJZCdQFujZ KvYqHjwrmHqAgCgEiBxZ1X2Rx9kZQ0SLGZ9mc3Un1WAWnQ7HWLieKnx+SG4jtJ4vDLw4 Q6hkmxxA0FGXE2wknN4BImONal+u/I2hj1MmtCZGLFPGi9f0gST+9anA4twPckGIx6/e w+bd1413/jrgV4vsVRAODmWVj/Nt2t7gsm/e/TYugF/kluazOkZ/4esf5DJCL2HqmWgv 6jdv+05QOTVelXGROfMBqlod0dRmXo0tkOAXa4knrhEvip5gjn/r4mpTVI48rPcQab1K 0T3g== X-Gm-Message-State: APjAAAVlXC9/SBe0ewftkMNnzqV5O2JnIwxFl5T0lOId+yaKcVsejMec YhWy21G3RXdJKbtCOf2jVYo= X-Received: by 2002:a1c:c90e:: with SMTP id f14mr3613571wmb.5.1570538698456; Tue, 08 Oct 2019 05:44:58 -0700 (PDT) Received: from andrea.guest.corp.microsoft.com ([2a01:110:8012:1010:c584:959a:923b:9ec]) by smtp.gmail.com with ESMTPSA id e3sm3416147wme.39.2019.10.08.05.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2019 05:44:58 -0700 (PDT) Date: Tue, 8 Oct 2019 14:44:52 +0200 From: Andrea Parri To: Vitaly Kuznetsov Cc: linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, "K . Y . Srinivasan" , Haiyang Zhang , Stephen Hemminger , Sasha Levin , Michael Kelley , Dexuan Cui Subject: Re: [PATCH 1/2] Drivers: hv: vmbus: Introduce table of VMBus protocol versions Message-ID: <20191008124452.GA12191@andrea.guest.corp.microsoft.com> References: <20191007163115.26197-1-parri.andrea@gmail.com> <20191007163115.26197-2-parri.andrea@gmail.com> <87eezo1nrr.fsf@vitty.brq.redhat.com> <20191008124052.GA11245@andrea.guest.corp.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191008124052.GA11245@andrea.guest.corp.microsoft.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > IIUC, you're suggesting that I do: > > for (i = 0; i < ARRAY_SIZE(vmbus_versions); i++) { > version = vmbus_versions[i]; > > ret = vmbus_negotiate_version(msginfo, version); > if (ret == -ETIMEDOUT) > goto cleanup; > > if (vmbus_connection.conn_state == CONNECTED) > break; > } > > if (vmbus_connection.conn_state != CONNECTED) > break; This "break" should have been "goto cleanup". Sorry. Andrea