From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3D0A6A0C46; Tue, 31 Aug 2021 09:09:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05D3940687; Tue, 31 Aug 2021 09:09:45 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 890E440141; Tue, 31 Aug 2021 09:09:42 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10092"; a="205635463" X-IronPort-AV: E=Sophos;i="5.84,365,1620716400"; d="scan'208";a="205635463" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 00:09:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,365,1620716400"; d="scan'208";a="509847727" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga001.jf.intel.com with ESMTP; 31 Aug 2021 00:09:41 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 31 Aug 2021 00:09:41 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 31 Aug 2021 00:09:41 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Tue, 31 Aug 2021 00:09:41 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.175) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Tue, 31 Aug 2021 00:09:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C4FZtk2j/BWVliokQSg+Gkk0Aci+Mhyb35wyD+0+M5QUez38f60Yr6QoHeSbStNa30dNp4VPdPAkFURur2zGkGqfXRo1KuMW7nBYPDPx/wxEt6PbaRj1yTcx1m22F2pnrSQdbBdoojLDWWXSP7Ca3o+mE3xHWvDR8Ue8iF5E0L1eb8EeAjajKXGCYtIDUynS/LvSFfG6EGLgW/anNunRot7Z98p3LEgO1gyjovoQmxpyZY7eRgys9Zo+Ry+mvxux5N8F4rApnNLxREXv/2O8t5ss14oPh3Uw0pls7HFMYR4zzbGOaX5Z7IFTauCoofpIMchvM0l5q/4TIJ/tgfpPjw== 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-SenderADCheck; bh=lsnHyG8n71pHdIq74JWoLdLDAYrl/PMba2gQb6mono8=; b=BzsU/msNpMRumsnqSAb+U+LeQpnXz+a28oUuQvt4hDlab4+j2dgOjByaV4SHrnCEsS4So90DUIY2Mj31NhsiAkwUrZApokZUeSNayz6k+bHQMsapWfvSVXQRJJcdBWaQTtMhft2aAA9KuCdSDp1utEJZwz04WJXMOoVLsu/Gi2kOYcZ17em0ZEaOBE4H30x4sn3fmPkTiEdJY/6kqTmWGLrJBDs6NqAxb7oxCBQhk+SpTzFhpFgyj+XEAnfjYU0/Pd22OFhhH/2lKeSazfe4sp1hE1kQDTvxHb7qmLdILb2tSr8bc9TT+VJ4oVgLIcQgm00bBlo3JuO9tttnXTOUvQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lsnHyG8n71pHdIq74JWoLdLDAYrl/PMba2gQb6mono8=; b=aA4F5y+W+tAsEbRRhGsl6+Rgwyiae/rDYkhhB+2uAZW3Fj22lCvtvO/e+5UXyp07xkZXMgpARkR4o8j/vUfQCa1xLKel+iE5AZQgcObRJhpO7+ezKAA34AgVPXtWNgl81nzf8S17g9MacDet3uaOfgzE77FYlxxvaGMxxM+nyDM= Received: from BN8PR11MB3795.namprd11.prod.outlook.com (2603:10b6:408:82::31) by BN7PR11MB2530.namprd11.prod.outlook.com (2603:10b6:406:ac::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.20; Tue, 31 Aug 2021 07:09:38 +0000 Received: from BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::f93f:9c9f:be17:ba75]) by BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::f93f:9c9f:be17:ba75%3]) with mapi id 15.20.4457.024; Tue, 31 Aug 2021 07:09:38 +0000 From: "Wang, Haiyue" To: "Yu, DapengX" , "Yang, Qiming" , "Zhang, Qi Z" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v3] net/ice/base: get PF ID of VF's parent Thread-Index: AQHXnjZd3vsUKDi1xU6YK9R2z3bBoKuNMcng Date: Tue, 31 Aug 2021 07:09:38 +0000 Message-ID: References: <20210831065417.545339-1-dapengx.yu@intel.com> <20210831070333.549371-1-dapengx.yu@intel.com> In-Reply-To: <20210831070333.549371-1-dapengx.yu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.0.76 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5edcdb0a-6095-4f46-f6cc-08d96c4e4bab x-ms-traffictypediagnostic: BN7PR11MB2530: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:341; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0zOodqj/DM9l9vXRbLhhnpaew/CWo+t0JsAdpRnRrK3CaQeAOoijF7qmEF9hH6sHQtvo/+Y/XuvYaenAzi1ffAQcFgRgcSRYqHoeQoURkWdZ/3k2LUgUmIZDFBBmw4dxwKQM+Q168nrr3KvCRFwlUEyRqCq4XB89+/LztdwN19jxDOz23w2a7q35xxJY+j6i18KzcjnlJ4mO1FxtZwGb8djDNVWyfHDQZVc/8gqxQlqHmSpugQpRPZEgvprwjzppwUmeuUXv7crxBXUiNBHxqBlvEJPZkexKGcuL3E4u1havJuZQQEyd/Vr2xU18gWpSIGnz04Rt9g2AOYFVT9xp0BAFoTq3y6iZZXkOEGU5VZpzeoz92xmLxXPdMtmrA+NNZ395Akd2Nz+0ooLyKCwglQUT59uxugO1GKN2Mnz6JsNVdqQ+hSUdCk1BGwrx+BblLJhK4aYyuCExvunSjc+aw/VqbHQiITSf0RQQV0EIikA7rsN2UjFEuC+eJE6s1YCN3oORjIywF0fNr84JAHYOc/MyvUbaCqlwHS92El3xpiFVt5xT96fgBDegFJpj+BuDX9gYuozNYH9oPJdFduA7L9uGKxVsgGlsfwjGkmBCrPiMXh86q/hdwQEfOpPljagMvK4jnlB0pKhc7c1SCXwhpjH7yn/B/D587DgO7LDdLdG4IWs1c+nUM2FaqU56BXwUv0+WBFINmQcJYSdeYOgKww== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR11MB3795.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(376002)(346002)(366004)(396003)(71200400001)(2906002)(6506007)(4326008)(8936002)(53546011)(5660300002)(66446008)(66556008)(64756008)(66476007)(122000001)(316002)(52536014)(478600001)(4744005)(54906003)(33656002)(66946007)(38070700005)(76116006)(186003)(55016002)(6636002)(86362001)(7696005)(450100002)(9686003)(26005)(38100700002)(83380400001)(8676002)(110136005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?l16cXFNzyFBUfUDQbolUr26H63kdH4AoUB+d09Zi+MmOwngdJkgGZVSP5dB9?= =?us-ascii?Q?e7QLYv1ZUMz5NDA8+Q58RQFIu/DF1oTRTKrVkv5PNYoKKFGRgmhg2Quu5a58?= =?us-ascii?Q?CyZbiCeQYoViocnS5E8xTEp77r5l+xp5QJ7Io9Y2Xsx9SRmbwGZELUSiMEvu?= =?us-ascii?Q?yxGeG41Sn4VXA4yZEO4eoSrGlBuGhh8KixH46riujZ1BEWyep9LzqgiNOVRD?= =?us-ascii?Q?Oe1O0EeOrNAJpZOSArRCa2BMqIEvv4d22iQi1Rt3iMzncafuZZf5FegK+gZz?= =?us-ascii?Q?aUD2Nb2sRzSC4UQnS/gFYx76MQwtDiqcY1YoVArTZ/4ClO2o5rYoJkjtHrv9?= =?us-ascii?Q?x0qFwL/6xjeDnALC1ETWpC+AhyQJJWX4FQScWrad6r5ZboEmCFnJExhpg528?= =?us-ascii?Q?9NAoo129oPTV/gPZIrT72JAkXaJuz2cE6TaXhQwYl8cgyJ9feJXAzVd9I/73?= =?us-ascii?Q?9sdjI0sVNRkvNHLUAwfXGJKUFM0/t4Oe0qrMvXpbqaOE/4h/gkmk4JeKGEuY?= =?us-ascii?Q?+OoKlk32tVk08jS5NfFHXhRXpcguEvbHMLjQCqRg5M0Lz1LR2FSFmoOiHDI/?= =?us-ascii?Q?6Oel+T5TT92KMyVWLXjsZ1R6DKdWIOZWoc1TL27ApnwkmDfc8xXIhKFDUWb/?= =?us-ascii?Q?c8aM9/8OgcLmFYrO8hd0eBXY0J8dz+8TzJ1b9kfB5iorLr2G4q8ONvMVzFO1?= =?us-ascii?Q?We6GgS2yDexbDkIaSufUuQkhGQtJceFGP1ajEc2uTTuVCzCSc+6BlheTYawu?= =?us-ascii?Q?YqeoxBQJTeQ4RUfkHJmWg4Pzf93QG3c741VcDPZhYrqZQpkhaHRUcGHlQE6m?= =?us-ascii?Q?IhUMTve9+9+JqKBCcaAuVmpC5XQzBNXcxZqtiUfiB/56SeyA9COwifqttjZL?= =?us-ascii?Q?K670NvO5h05T60msN61oLjD+GlNg6BoUyHN2b6Q9sR7sICeC4HIdjkRGh34b?= =?us-ascii?Q?X870+irDKsG9f7v1VXdMvnypQRRT2jCXhVATEHMcXzE2mjRDUN+bKdZy0HLz?= =?us-ascii?Q?Uyor41kdSwi5Tt1/SmbjOKOKc/DlcIJ1aB1cKhAD/CEgZb0s8zWAvSmdd1qO?= =?us-ascii?Q?nd7MxxbiK4y3QbMBjlRX3R7B9BuzxlVaI7v36L22qvsiaHYpzbPxOlVkJqsm?= =?us-ascii?Q?4PKAe0aNQ6G0no2nhTpKWjUHBtl4cDTnZ6q2NharSZCSba1/jfrDq0wZgmMH?= =?us-ascii?Q?txecGMvao2b1SAfupnHFHdTFOv3lIExyoMyEw7YOxvAyGHk+oocWfeFungPV?= =?us-ascii?Q?QuVgbIhkQEuR7a3+z1L57ABhbM7V50uqAjqIAzJSrfXVcvKmjQBqCmC8vn2b?= =?us-ascii?Q?yeY=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3795.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5edcdb0a-6095-4f46-f6cc-08d96c4e4bab X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2021 07:09:38.0686 (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: S9WKyLOd94t2MwP4yxnbROJEQxOf9ECxsAnKuNJmWGo/EpMgP9ee0emKVqAN3pweCVilUIAbbww1z8qXwk9CDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2530 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3] net/ice/base: get PF ID of VF's parent X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Yu, DapengX > Sent: Tuesday, August 31, 2021 15:04 > To: Yang, Qiming ; Zhang, Qi Z > Cc: dev@dpdk.org; Wang, Haiyue ; Yu, DapengX ; > stable@dpdk.org > Subject: [PATCH v3] net/ice/base: get PF ID of VF's parent >=20 > From: Dapeng Yu >=20 > In original implementation, if DCF is created on PF1, the PF ID is > still 0, but not 1. Without the right PF ID, the ACL will not work. >=20 > This patch makes VF to get its parent's physical function ID. >=20 > Fixes: 0b02c9519432 ("net/ice: handle PF initialization by DCF") > CC: stable@dpdk.org >=20 > Signed-off-by: Dapeng Yu > --- > V2: > * Simplify the code and commit message of V1 > V3: > * Fix V2 code defect > --- > drivers/net/ice/base/ice_switch.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 Acked-by: Haiyue Wang > -- > 2.27.0