From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 879FFEB64D8 for ; Tue, 20 Jun 2023 10:01:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4094D4099D; Tue, 20 Jun 2023 10:01:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 4094D4099D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1687255284; bh=Nmh/12kFrgHePKqHPyLclkitjccObV9siISzOLpdKw4=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=HJmITInetOfSFtpBkwsSjrxNWD0szQS3YOzHw+8evjzXWjYKLPWdmvpCixN+LvdtO fkRtz0azgq/ofeVVPZl+lej3JBQHYVLwJf2CBJKKqvgfFv5fBlXDE09djSExBR9SvS 03ScH5q2o6RfArxVOdAidH3t+UKZFl04ZqxhwP8qr7ah2lFqCv3Jz766FP8v1B90HJ 28D8Llb+NV62SbwDnY/42yhFTiKNufIFhnep3RtXdwew/TpuzCYQIc0UZ3qiVyKymX PcyNEmVh9QAkVc/J2KwVsi2A23JKFWxc1dCnfcWIe9XrulPxGUPdSkc1Xh0ZsL2cnl dKPaiVOR29bxA== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 231zvSRbGVAj; Tue, 20 Jun 2023 10:01:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 1E076418C5; Tue, 20 Jun 2023 10:01:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1E076418C5 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 71B301BF39E for ; Tue, 20 Jun 2023 10:00:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 447046125C for ; Tue, 20 Jun 2023 10:00:59 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 447046125C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nyXa7x4IRgPD for ; Tue, 20 Jun 2023 10:00:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 85B7E60D59 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by smtp3.osuosl.org (Postfix) with ESMTPS id 85B7E60D59 for ; Tue, 20 Jun 2023 10:00:58 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="358688397" X-IronPort-AV: E=Sophos;i="6.00,256,1681196400"; d="scan'208";a="358688397" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 03:00:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="664227302" X-IronPort-AV: E=Sophos;i="6.00,256,1681196400"; d="scan'208";a="664227302" Received: from dpdk-liulingy-2.sh.intel.com ([10.67.119.34]) by orsmga003.jf.intel.com with ESMTP; 20 Jun 2023 03:00:55 -0700 From: Lingyu Liu To: intel-wired-lan@lists.osuosl.org Date: Tue, 20 Jun 2023 09:59:53 +0000 Message-Id: <20230620100001.5331-8-lingyu.liu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230620100001.5331-1-lingyu.liu@intel.com> References: <20230620100001.5331-1-lingyu.liu@intel.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687255258; x=1718791258; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U5HpYoyKV3E7hVshY/z3xjfSj9l1/Y/ffPoIQ0SRbdo=; b=ISRasS4FcGIjsbFu3dYOrzTRVVe4YvsrKJKjWRb9HwpTViGBRHz4WAWn dEO2tH+Rp9srN2rB5eTw0C6vKuLm9l3rooHpWmHSlM+dZADMg2JzSWxo+ XszfVvKYBdUO+KDpCVURHZwaLIUIdL+gvO/858eVMJu8e2w3RAovBWurJ BNfcEV9rBTyg4JWkZVQJbDZXKbrL3Yxkb4TbG+dkJmqVlIqUsatRky9ps pOpqfciquja9LZvr7jtAAUoN0poE4UkJC152EiHDhcilurDNIUTV6TZYd New9pFhdoMKZG5lXgJr6AxnGqn6enNcnBTW12xVxwONLwiUtHK6QFHmh5 g==; X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ISRasS4F Subject: [Intel-wired-lan] [PATCH iwl-next V1 07/15] ice: do not notify VF link state during migration X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kevin.tian@intel.com, yi.l.liu@intel.com, phani.r.burra@intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" PF driver will notify VF link state when replaying virtual channel commands GET_VF_RESOURCE and ENABLE_QUEUES. Block PF driver to send message to VF if it is migrating. Signed-off-by: Lingyu Liu Signed-off-by: Yahui Cao --- drivers/net/ethernet/intel/ice/ice_virtchnl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/intel/ice/ice_virtchnl.c b/drivers/net/ethernet/intel/ice/ice_virtchnl.c index ce8afceb5a8e..9c860663a012 100644 --- a/drivers/net/ethernet/intel/ice/ice_virtchnl.c +++ b/drivers/net/ethernet/intel/ice/ice_virtchnl.c @@ -233,6 +233,9 @@ void ice_vc_notify_vf_link_state(struct ice_vf *vf) struct virtchnl_pf_event pfe = { 0 }; struct ice_hw *hw = &vf->pf->hw; + if (test_bit(ICE_VF_STATE_REPLAYING_VC, vf->vf_states)) + return; + pfe.event = VIRTCHNL_EVENT_LINK_CHANGE; pfe.severity = PF_EVENT_SEVERITY_INFO; -- 2.25.1 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan