Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1754694rdb; Sun, 19 Nov 2023 08:54:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkscoyuR0yWzWTuRHPijYGc1b8Hj+I4bpjHXz+Xd1Z6UbDsfRfGDCOl39Ui1BUgBT2zI77 X-Received: by 2002:a05:6a20:840e:b0:187:bc51:2ea3 with SMTP id c14-20020a056a20840e00b00187bc512ea3mr4128888pzd.57.1700412886647; Sun, 19 Nov 2023 08:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700412886; cv=none; d=google.com; s=arc-20160816; b=jAug6n7c9iFxTVfASbGuyscLywuJO4S9TpvTHKUx+R33l8EXQF40DWiblxghyn/kY9 V5Fz24AVzalC0atNusOxFbC4oCAUWGzlOGCC3senVihFXluUzou3Rc7K2N8kHfnqZ6LC zPYDTFn4IiE/iMNrCtY+tB6Gfk5g2CCTdpzf4q7P/BKMJcnIFyx8XAQ734vWXBSJGsMF trizaNGx4Ptei9Eqgp9qR8Yfw/ukZ/f2KzHUb63V4BXbkCsRbYb8nAA9eoIg2SpeUJsB 2I4Z+nJY/GqoqAOYlSgNAIY0/zMJHDTIwkwa9wZOzqe2YJvSk+74L5TtnKCHSUCJo8Xs bWOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=gUS1v3wNMMoGJxYMVaBxxhfLYqoOUIyNu6oyB8+7CoY=; fh=PenYQja8fSc0Xook5jSMHfMR8aOh66vqTE96y1EmhO4=; b=t514VZh3ELorRGbQsIFbQgispH3Q/5HlFFhS3b/uo2giy6nhnmmlWv7xQfNozZklE5 RT6SxrLn40/1xfPWi7PdFM7bLvrf9/psg1v4A/qQpds/N3i2Yvb/IdhJg5Jj1TLB0LnK suPZUfE/Xu4P+lGFacZbZumoU2VUBLWFsmdkQCgd8CuJnk5+tOCEDvzMDgC7ImmCanPP GOOSd6eJOKjOxU0d41LtDEdgciBz39NWKFXeFicfOtzMuSpbcPQ8PBQFDf3344M5l/wf 3UuMPixDdn2bP/AMe2hwOSpsuVvNVw9h5y6MPFC3JeCUSOJ9rdFUqjvvGyp1eh7gPDuR aiKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=wbzQOQcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id jg12-20020a17090326cc00b001c20db25108si6024382plb.41.2023.11.19.08.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 08:54:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=wbzQOQcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5A77780A776C; Sun, 19 Nov 2023 08:54:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231435AbjKSQyC (ORCPT + 99 others); Sun, 19 Nov 2023 11:54:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231434AbjKSQyB (ORCPT ); Sun, 19 Nov 2023 11:54:01 -0500 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44C14128 for ; Sun, 19 Nov 2023 08:53:56 -0800 (PST) Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-3574f99d236so13800015ab.2 for ; Sun, 19 Nov 2023 08:53:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700412835; x=1701017635; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=gUS1v3wNMMoGJxYMVaBxxhfLYqoOUIyNu6oyB8+7CoY=; b=wbzQOQcXZjPccipsqkggz9I7/TGZ7HrYMG6u5StgQPR/7lrAu0oK1CDxNdjYo4dFNM yz1XWPaVCXhAXfPE1QRk8aGqqtYvJXdDpWNvt6l6hRjXt0jEadYcIhFqmRL6t8VsdsJD 7uglHbQUC4YRD3y9WUKVp2ePcZIMB5oVH2mNNXegVVj9JRGCXFjO3v5qAlZ+XCI+45a9 ZeRAJsEo/YP/l0XJm7xCjt7z0U/8IsYwGvSN0zUMXGnUmXPGR1AANwHwFOrWt0GcJ5LC CInrVPuCDy0PcjfaTcOfVaXtit6hmJl+SBVckbveiuZor29rZfzKAtGLq0FiS/a/VkA7 dwwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700412835; x=1701017635; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gUS1v3wNMMoGJxYMVaBxxhfLYqoOUIyNu6oyB8+7CoY=; b=REjS+lVFvOq/gE35NhAj0+hymgopLnBbu9GzKpbFt1DUbT3X6EIyi8Sz0/RfglIavg 5FMm36VlpfFhGHtDF6/PBlVFBSRb1T3fjqVgpixa7VmoGaqRHT+VYuCXY0DdevImGXdr x7SWWpeagXjotqlpW/bVGWJnFonFnSy/03tVCWtun34ORx2TEnI8CDT+DexZFEXmb0e6 ij9G/DwoPf30PJCec9lpFljameOJ97kTz9W2WYy+6oo/pBndWD2rkC73bwTFwBJREH7J AMvaRuaDEE44r3KHzQQM5dcNbTdhdYpnGLqK0qeaCSUFuG6WVAjOKR88RH0koDzhpwWz ChHQ== X-Gm-Message-State: AOJu0Yyq/AFv+kn6c4bg3nkufIUh0ajVrIEYekhaXRG9p7CC5yMeVaYr yaaJzHrdd6Vig4VdZynWhRwrCQ== X-Received: by 2002:a05:6e02:154f:b0:357:6bd2:b2ad with SMTP id j15-20020a056e02154f00b003576bd2b2admr7366973ilu.22.1700412835617; Sun, 19 Nov 2023 08:53:55 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id fh6-20020a056a00390600b0069343e474bcsm4537415pfb.104.2023.11.19.08.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 08:53:55 -0800 (PST) Date: Sun, 19 Nov 2023 08:53:53 -0800 From: Stephen Hemminger To: Haiyang Zhang Cc: linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, kys@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, davem@davemloft.net, linux-kernel@vger.kernel.org, Long Li , stable@vger.kernel.org Subject: Re: [PATCH net,v5, 3/3] hv_netvsc: Mark VF as slave before exposing it to user-mode Message-ID: <20231119085353.757792c1@hermes.local> In-Reply-To: <1700411023-14317-4-git-send-email-haiyangz@microsoft.com> References: <1700411023-14317-1-git-send-email-haiyangz@microsoft.com> <1700411023-14317-4-git-send-email-haiyangz@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 19 Nov 2023 08:54:44 -0800 (PST) On Sun, 19 Nov 2023 08:23:43 -0800 Haiyang Zhang wrote: > From: Long Li > > When a VF is being exposed form the kernel, it should be marked as "slave" > before exposing to the user-mode. The VF is not usable without netvsc > running as master. The user-mode should never see a VF without the "slave" > flag. > > This commit moves the code of setting the slave flag to the time before > VF is exposed to user-mode. > > Cc: stable@vger.kernel.org > Fixes: 0c195567a8f6 ("netvsc: transparent VF management") > Signed-off-by: Long Li > Signed-off-by: Haiyang Zhang Acked-by: Stephen Hemminger