Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp573697rdb; Thu, 19 Oct 2023 12:27:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFGUq5vD5zpK+i4KQkh1n9JIvQp2LTvZGJTlzk6IbhpHYgXadaezr1j88N3YXtpTASl+im X-Received: by 2002:a05:6a00:2490:b0:6be:260e:a1da with SMTP id c16-20020a056a00249000b006be260ea1damr2851944pfv.21.1697743635499; Thu, 19 Oct 2023 12:27:15 -0700 (PDT) Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a21-20020a63e855000000b005859aa3da1esi254379pgk.492.2023.10.19.12.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 12:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UluT1c1U; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B4CD4808E669; Thu, 19 Oct 2023 12:25:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345878AbjJSTZs (ORCPT + 99 others); Thu, 19 Oct 2023 15:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233086AbjJSTZq (ORCPT ); Thu, 19 Oct 2023 15:25:46 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CCB1CA; Thu, 19 Oct 2023 12:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697743544; x=1729279544; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=MqlffJ6hIy93cVgO2S7lbQiCPhmX5DjnfT1jrdeg5+k=; b=UluT1c1UlGMXl91sWKDATEuDcHDP5k1/dIXbEzOMBX7dGZNPr/PtLmRp RWvuNQqcPYt1DirBSu2ahOGAO1Oiq++Ghil9+hFI4FmaRS2HZugKSU+7o TT76KSB9GwnG8h+n12pR/0iY4ZaeHhiLK12NpKJ+/uD+FW/BNDDlva00t b/fnhRstRcgiYM+wiMvr0VcanJfRFChvtbm2SHuV/xq8t68eRNp9XbMhl TnamkklEUiF0kfWuVX+QLuuCUBMjRw4FIfNjY3xvudVmrE9y6VosEW9Kf 10zNv2ZO+Cg6XmRReH3Xh9DdsTXu3PlSYXNmUv4I5TBQw+N5bm+2SEAQp A==; X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="450569585" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="450569585" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2023 12:19:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="792123809" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="792123809" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 19 Oct 2023 12:19:48 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 19 Oct 2023 12:19:47 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 19 Oct 2023 12:19:47 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Thu, 19 Oct 2023 12:19:47 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.41) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Thu, 19 Oct 2023 12:19:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AQlzY6vHNsa4Oonap809l+M/c8IrOrIBONLf8Fq5MzkBh7t13MKpI+xTsyt8YHRuC1Qf95R0NSjRTVKNxOIoUuuy6ipWSlJMHZwDysyA4QpkUBF+IFvuCIDPwAfsVVmVvc9hcutbjs7EArA8WcgkE0mW/XvVVWs2/5Jj+bdc/LlFUTEobe6Tmw5VU3bSk4OzLMn9AITLVnLddW6s/KRn5ybeTGFezuLHon3mp5RLdQ5zshPv5Aga5N85T+Gh+DhCFBWq5mcsczURRL1v8DNCdLAkYiqOs/Vi/BHUWZp31N4gBPnoUy6ZFZZnrg9TVIZPzBs3EB3WWODfxxxj95MULQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oLjLaDLWSsW0qT/PTe54e8yZ054k0shNTCkuj3ngx5M=; b=URyR9qMfVuKf/qwcyKwraXM6dzB7FVHNl76W0nN1ckgyWjLmW+PIA4m4rCCq2EAqe98sFqPygiWGZuIMG8JV7hZGRC04kJpiNu41JmX07ozpX7xZy7VkzEUu7adAjEBhyCZ1Vsxrbk89b8jSGaARxOrhwyYU8bDMVN8tnz1LapSbISvGUaMnzcjEctwtLtcvWbS3lkJG7b4RpQ0KbHb7j741KpBMeBPP9J5z76C6Yo53rUqU6K0oAQMUl1optLWuLYnde/PPK5vF9AT7Y0IKz4oGp5tGzW6YsVaN9b1u8dEsGTAwA5q3RhMdBDknsGuDFj8UHMysk/ElB08Hc4Qmbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) by DM8PR11MB5637.namprd11.prod.outlook.com (2603:10b6:8:33::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.24; Thu, 19 Oct 2023 19:19:44 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::34a7:52c3:3b8b:75f4]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::34a7:52c3:3b8b:75f4%4]) with mapi id 15.20.6907.022; Thu, 19 Oct 2023 19:19:44 +0000 Message-ID: <14fff2c8-010a-4fc7-b1eb-7af85e3868b5@intel.com> Date: Thu, 19 Oct 2023 12:19:42 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v2] i40e: Fix I40E_FLAG_VF_VLAN_PRUNING value Content-Language: en-US To: Ivan Vecera , CC: Mateusz Palczewski , Simon Horman , Jesse Brandeburg , "Tony Nguyen" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Przemyslaw Patynowski , Sylwester Dziedziuch , "moderated list:INTEL ETHERNET DRIVERS" , open list References: <20231019163721.1333370-1-ivecera@redhat.com> From: Jacob Keller In-Reply-To: <20231019163721.1333370-1-ivecera@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR03CA0228.namprd03.prod.outlook.com (2603:10b6:303:b9::23) To CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5089:EE_|DM8PR11MB5637:EE_ X-MS-Office365-Filtering-Correlation-Id: ef99838e-44b7-49c1-b537-08dbd0d85a14 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: t9/xWhL9N0BQ8jcdPt9vZ3BswjfWggXaTA6S+TaapabanXoLRG5upji4kOHzpi+bFHWCsiOChwhXucjNCmHZiOQpztZlXlshcCJ6TX1TlWAIoSD6vF+XP9nNECB6OtuSDU5vWVYSL0f3CT4okzbgDkwq4ncyBu9tNIWOiiuEuf2siuf7gmFeRAooXlrWiaRmUsU0sE3mKMKNY3XUhOKI5aB44O6MW5HP+YMVsINTFX9YD9WoVku2GZVVvoKKYMqHWFCICQaTagX2iqFx0uKzUzNQfkokBW83QDNcwMD6Rf7l/HOGifyXXXQMBVMjxQ4R/InMogEhvgy6yzsePUAcVpBLsGqe1kopfqvlGRMqe2Y+2ng76w0o5FO41WbqnTgKZp8LOf0j1hioX6HZuBth5j/empMl4i3xXC8NpWZeHk8MgcwSQXr2gCH4TAPiI2heZes+AESVE4UHVNxnXh5Dr+SKd+HA+b5WwXHQwDy5PbsFyaO2LBpxo4xnD4zA14QuxqfBdrJ9H6Z7/mA2c5XDlzTI2UsgtVLQPs4l7d3/dMVTVZ6XLckcqXkY+in/Hdy+g7GR52+J/aBJVTZBlvvi8o4QwL2FUckl5jokIfTrSoMDXUnXSo0N3+wK23cokkI7u5yuSWkld5Lwzs/DDbcXnA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5089.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(346002)(396003)(366004)(376002)(136003)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(6486002)(2616005)(478600001)(66556008)(66476007)(38100700002)(66946007)(53546011)(82960400001)(26005)(31686004)(54906003)(6506007)(6512007)(316002)(83380400001)(5660300002)(31696002)(4326008)(8676002)(2906002)(86362001)(8936002)(41300700001)(36756003)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?K1R6Y2p0c3ZqSU93K2k5V1JLMXB2YjFtMEV5UUE4SWhXQzVYbkhtbkJqOWF0?= =?utf-8?B?OTF2cjBadHdjczk3clptcDJuNVhKOGt6dk5lZjJXbUtSaS91cG9hazVLRlpH?= =?utf-8?B?Ulg1Zm1lY2FXMG1hdXRJVUVpaFJsZ0htYlFHellqMyttUzJJSmJ5Rlk0d0gv?= =?utf-8?B?eDRpalR1UHVzTnV0QmZlTHJraFpJd2ZWaXVtMEpaZDluVG9tTkRPckR6b2JX?= =?utf-8?B?c1A3Z3d6K29qbUVDazZXd2xSWWt6STlmOUJYZ3JtKzAzREhNM3h1UWVmTW1H?= =?utf-8?B?ZVAvS2pHL2pIbjNWaVVoamJydzM1UFp6NDNhNm42QldrcGZDSTZzY2xrOHlG?= =?utf-8?B?Q1o1d01jTEtONjhKbVNhV3BkWkl2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exchange-CrossTenant-Network-Message-Id: ef99838e-44b7-49c1-b537-08dbd0d85a14 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 19:19:44.7122 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FFPEx/kc+hA7cwoLcHqeo1pwEbVcUiYDh/cgUwLiZIrc5iD9rce1nlKzrPy7t6776/vxJZ9SotcGCE/i0eHmY7PnSMluLT4F6C+gUCRgEAo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR11MB5637 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 12:25:52 -0700 (PDT) On 10/19/2023 9:37 AM, Ivan Vecera wrote: > Commit c87c938f62d8f1 ("i40e: Add VF VLAN pruning") added new > PF flag I40E_FLAG_VF_VLAN_PRUNING but its value collides with > existing I40E_FLAG_TOTAL_PORT_SHUTDOWN_ENABLED flag. > > Move the affected flag at the end of the flags and fix its value. > > Reproducer: > [root@cnb-03 ~]# ethtool --set-priv-flags enp2s0f0np0 link-down-on-close on > [root@cnb-03 ~]# ethtool --set-priv-flags enp2s0f0np0 vf-vlan-pruning on > [root@cnb-03 ~]# ethtool --set-priv-flags enp2s0f0np0 link-down-on-close off > [ 6323.142585] i40e 0000:02:00.0: Setting link-down-on-close not supported on this port (because total-port-shutdown is enabled) > netlink error: Operation not supported > [root@cnb-03 ~]# ethtool --set-priv-flags enp2s0f0np0 vf-vlan-pruning off > [root@cnb-03 ~]# ethtool --set-priv-flags enp2s0f0np0 link-down-on-close off > > The link-down-on-close flag cannot be modified after setting vf-vlan-pruning > because vf-vlan-pruning shares the same bit with total-port-shutdown flag > that prevents any modification of link-down-on-close flag. > > Fixes: c87c938f62d8 ("i40e: Add VF VLAN pruning") > Cc: Mateusz Palczewski > Cc: Simon Horman > Signed-off-by: Ivan Vecera Reviewed-by: Jacob Keller