Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp285462imn; Thu, 4 Aug 2022 06:04:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YKnYR7wpAMrfhY019WtpVqy1KcqEMZ8Y5RIresVTY2ZpgW2J6YIqbqiOu0rhpXL5V7cQ2 X-Received: by 2002:a17:90b:1987:b0:1f3:2700:775e with SMTP id mv7-20020a17090b198700b001f32700775emr2035335pjb.54.1659618283370; Thu, 04 Aug 2022 06:04:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1659618283; cv=pass; d=google.com; s=arc-20160816; b=CNG7HiN/mMd1EpLimAnCi6cELQsGZpW4txsCuGDtI4qG9luDJhWYK9V4c4ZOsHhZsd qfW2JT4dk2jXWcemTm0VVg7j0siADM1hGz77G68l2JiBQyPTCqVHivY3HHvi1Gu2JMwL 1xtJSKeGwlg8L0ICJN8K/DVkarzwml/C4lZym9IATSNUns6kngUr0X+ti8Edn2g+kOjd PQtiueKDOsndXYdbKLJ/Byo7t2vIkvDHr3YzaqDUY1urxqqBO71WzF7Jlk0Sl2iA3nxv HqaYUSBJIwQV1XMOmYd9MCajCKGHNrBnPG3PQqCmUAxFBM1qZUTMp6D2aIl7xoEriyng e57g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=hAN9II9paxihWFFejoGMNnBI94A3JTRLhu0h2kZ1N1I=; b=RYWhsImpdKZqMgmKkwzfvv1Mmvqf6xetW68NIU/4gFWfm8s93Vbisno+ioQszUDpty uSTcSYSiu280EHEo8Wbx6eKLfu94Lv4qQxiog7KFGBiVvI9nREwErxGtfpi2I3JIv2LP b+arEGBhSt44z5Q5J2+4QmCt6nmX1Bgetrqc8s43Fw7gxV1dVHovC89JS0rlwvo4ND/C Pd4lxNe1t7xWsDp/au1JyR9efeFFgbhwcxAhMzWoDKANoLfbngiiNwXH6eSEZvu6oMI6 w/zV8s2LXNnZNfLHnntqPYf0nCumpRFFsEXn1/KGNdU6OguuudGFDP6xJkCcdmkyeyWL MKPA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BxFOxpgP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a6568c3000000b0041bc14ba237si1275722pgt.744.2022.08.04.06.04.29; Thu, 04 Aug 2022 06:04:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BxFOxpgP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239690AbiHDMyR (ORCPT + 99 others); Thu, 4 Aug 2022 08:54:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230140AbiHDMyP (ORCPT ); Thu, 4 Aug 2022 08:54:15 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D02641EAD6; Thu, 4 Aug 2022 05:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659617655; x=1691153655; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=55gLq/Evz7860X870V3xMl8C7NdTHRdmbsUo5zw4ovk=; b=BxFOxpgPftN73a/yzsKDrkPCHXfhTGLFxv+DzkVJXenRWXI7Tu+V1S/g dx5aiHx6Q/r/VNFFCRUv4vG52BHj+OPqOQjoNOHnq7Yz1YzmizAS7YKk7 2O6QLal1JBTJG3dwVzSG+Q8B6z5+61vDZYj1TUCIeZLGzFqvz1gQsZhr1 13xoxXB+pVmlEN9ijKFZgLQjLGr+43FKyfZL7sS5u14igO6RNyfdMk1zM XsKLFMf1ojELtlPsG8Lo+LApn7h2QUyxGdEgX4TxTHy4XXAce9fZruVHz fWedL2Hs41sSX7DH1Yxb/kBDkO/mb5+dK40BrXgzFQfS1sXcgBc4/vcc+ A==; X-IronPort-AV: E=McAfee;i="6400,9594,10429"; a="290698145" X-IronPort-AV: E=Sophos;i="5.93,215,1654585200"; d="scan'208";a="290698145" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 05:54:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,215,1654585200"; d="scan'208";a="729579380" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by orsmga004.jf.intel.com with ESMTP; 04 Aug 2022 05:54:00 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 4 Aug 2022 05:54:00 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.2375.28 via Frontend Transport; Thu, 4 Aug 2022 05:54:00 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.104) 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.2375.28; Thu, 4 Aug 2022 05:53:59 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QygraVTch9Rbe2F4c2smufCHxJBXoHCUYs0ACd5aoihlluczJX1B8eI3MAgMphr5FDOQkwVKfiePsciNpKS5Z9HkSAzopHaWNHsxfv+ZZYUriQIHsfqwucJeiIFIFooCKj+RFSdC2Hi3oOXxeyUqgARhCZMKQuCUtC7XFLpoYaB6vpkR+oqX/lCT/utZ/G1cC6+RsJTpIUcy+EIIxarbpxWnlzyet1Y9iFXAH9m0VG9Rl4oBW51Ur8Jw+DkILRWKnJfA3MK5ZRa17rTBmpTvSt4Nt1YUE8k3Uo3vOka0f6s18GwNM3drAdbvmRcCuFBuq9jiYCTnR6oRRiMAzH8+Wg== 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=hAN9II9paxihWFFejoGMNnBI94A3JTRLhu0h2kZ1N1I=; b=BHx1KcGmbFEdQRXsdqBKHYmjPVDhEue/nHmK4HaXKu5K0jT7aj2BFyZl+elm9UJ+eJnYAA6YEdaq2TQjV1+lFoh9YAQH9BFfZCCKjgio4Jyvyl2ENAbFGOmfS5pxtijnS8lN4danLELXQFl0QxDe5u5luhgvzjWZzIj86THUt/xPGMFALJBgadlNg77Ny5bq2rV4TGsF2d9NadJZoB+MJ0bXMs6wxKB93tjx8FkGVCbdBqITWOF8wI8kAzX/txTx7kWjmf4K6aYm0Pfh1M5Q1eZZqfAwhp1fB8ldNGYDqzjughApNjhfzBA0epu3KUaWDiBCTVymFKx7pZEyUdAt2g== 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 Received: from BYAPR11MB3367.namprd11.prod.outlook.com (2603:10b6:a03:79::29) by BL1PR11MB5239.namprd11.prod.outlook.com (2603:10b6:208:31a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.15; Thu, 4 Aug 2022 12:53:57 +0000 Received: from BYAPR11MB3367.namprd11.prod.outlook.com ([fe80::682f:e9fd:d1d7:f3b9]) by BYAPR11MB3367.namprd11.prod.outlook.com ([fe80::682f:e9fd:d1d7:f3b9%4]) with mapi id 15.20.5504.014; Thu, 4 Aug 2022 12:53:56 +0000 From: "G, GurucharanX" To: "Fabio M. De Francesco" , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , "John Fastabend" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bpf@vger.kernel.org" CC: "Weiny, Ira" Subject: RE: [Intel-wired-lan] [PATCH] ixgbe: Use kmap_local_page in ixgbe_check_lbtest_frame() Thread-Topic: [Intel-wired-lan] [PATCH] ixgbe: Use kmap_local_page in ixgbe_check_lbtest_frame() Thread-Index: AQHYi8qqEhC7uGL1skKc8LIYqnadyK2e6oNg Date: Thu, 4 Aug 2022 12:53:55 +0000 Message-ID: References: <20220629085836.18042-1-fmdefrancesco@gmail.com> In-Reply-To: <20220629085836.18042-1-fmdefrancesco@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 174daddc-a627-4616-304c-08da76186444 x-ms-traffictypediagnostic: BL1PR11MB5239:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /zZf3VwlmargIlCXWeQDHWYkRmHY+Py2jzzO1UAsENlxmbE9VjOjtmIllKlU96G3NbQjetPEnF2fD3IVkXwSAanGYP19IPVeFv4SMErMgH5QoB+ozAqKHpMavv3z482ZvI+LwIbamp1QI1ZiZxNnIbs0gI0vJiLPeVndkB00yq8KxyqQnZZQABzBECybqAM6ID4qIN1XVYL3kOQ+Mbnt38MzTky9uyowWVe8QZEturAVgrHWCFHkgtwkcgN/9kFMhCOkbu3TX/MLkS3r4CYsmohJan90J28pATpwUwe/W6VLIXg+7nUudjmo3mRB74zLYcCVl8UJiQwabfTP7/CYXtWyXk8CN9/QZ9W+quxqJFiDA8ihTK35fEFz4vcG4PHtuomSh6BbMbUwsSXGlAo9ZG2T4NCiTbpP9+2gqWSWVkvIIh/Arr/7uFqsT3paBNJ4avS2Exx1wMC6AqRsV39VLvG4G9C02l5MIn4IQLtqz91NQzrkdPXcN1Nnd235n+dOmwiYLNQtzJU2EsA2UgWP/q7T/1dHakOkKu2cp7WoStcKytxaqXBCngKZW6kzxSguIqVLRe/Z15tJSZX2FtuMpIu6R+F48kifaxrjsAMiC76vM66yQTLTGUJzBsoneQWqZDxf+52dqGSi0NXGh6TL8uWzXO8ykXcjm+e/teFc0c1f6nyg8Zzlj8wcq7NqF35Le6HjMGQc/+usBI6tucCT9uZBBMxLxrj37e7sqRLs8zKhwtstZOeHyXUV0Z/QkqDRNY6EWbKkNXVvlHDalbei6PWYxKIeSO/StDO4va8XNL43a7jOOrGVeo4WD7c+zaRMdJcURMvhfVHfLm25YE0vTA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3367.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(396003)(39860400002)(376002)(136003)(346002)(366004)(122000001)(71200400001)(38100700002)(186003)(107886003)(83380400001)(2906002)(33656002)(5660300002)(7416002)(478600001)(8936002)(921005)(55016003)(316002)(86362001)(52536014)(110136005)(9686003)(7696005)(6506007)(53546011)(26005)(41300700001)(82960400001)(38070700005)(66476007)(66446008)(8676002)(4326008)(64756008)(66556008)(66946007)(76116006);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1tJ8NSnRHfEI6B0bZwq/nRzj3xqG/RdCB3ysuaPasA1iQljSv7T8uFH8jNPi?= =?us-ascii?Q?8B1qTvFkRUNlKU9xGPKka+i3LiqhzFpolOb8A4bHlzXd2idwUPoL8x7LXjjA?= =?us-ascii?Q?4UUKPdR59yc5oq2Gtfz7XFRSo3rstsnJxGBsW3322YK/0ViYp3rrhzTYwRcO?= =?us-ascii?Q?qBGYwnoh1xfE0BXlwuvfqsXTWNEjmMvDa02K2ZSfxiL9AW4F73/6ErfprGoo?= =?us-ascii?Q?H4fZz2dK4ycQz989RCXGL/qz3M3EBBRg/PCrGV/jpFQgvDnL7THV7eEtYAr1?= =?us-ascii?Q?9x0Jprhsr/zL+RvabJyjnAvQWLjv9uLIFrgqbu0SXaUOo/c7eMqv/K9Tj3fV?= =?us-ascii?Q?IYkdNQUD+cXyHjrM7FMqi1uR3PLbrsTDP9nNpWwv73RQhXgekBaxNbp+VxvA?= =?us-ascii?Q?JMzR8F2+phQJaF0WyOEG6Akn1qx77LSsAgyWVYmByc3X4AFa6AWblyrXIIG5?= =?us-ascii?Q?nrhDEA+doQoQ41T6l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ascii?Q?Wg+laEkLV8t6BcmdxQANK20M2cMAmNomRS5orsLzFf2Ah6i2m3gK5dO+PaOH?= =?us-ascii?Q?pfuS0naVTt1giY/yr7sx+x5gzh60P5O5l7G40crpV9WzpadrtuRrvGreu/qL?= =?us-ascii?Q?iywVHumGJwa7b7dA8/NOYut2jLgeie2foDRDj1xGGinPf7i4PoV0WtMYYQAp?= =?us-ascii?Q?i5ffnwGzZwPCqVFByrJM3pbUJf4Gq/wVplML0w4H?= 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: BYAPR11MB3367.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 174daddc-a627-4616-304c-08da76186444 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2022 12:53:55.9517 (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: 71gLqE66xnscU00lFe+hYE7w3qqseyJWXi5OESpVq+SMn/atNLfHhqXCg0MsvsGCwm2bBoqW98ezFoSzgasO3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5239 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 > -----Original Message----- > From: Intel-wired-lan On Behalf Of > Fabio M. De Francesco > Sent: Wednesday, June 29, 2022 2:29 PM > To: Brandeburg, Jesse ; Nguyen, Anthony L > ; David S. Miller ; > Eric Dumazet ; Jakub Kicinski ; > Paolo Abeni ; Alexei Starovoitov ; > Daniel Borkmann ; Jesper Dangaard Brouer > ; John Fastabend ; intel- > wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux- > kernel@vger.kernel.org; bpf@vger.kernel.org > Cc: Weiny, Ira ; Fabio M. De Francesco > > Subject: [Intel-wired-lan] [PATCH] ixgbe: Use kmap_local_page in > ixgbe_check_lbtest_frame() >=20 > The use of kmap() is being deprecated in favor of kmap_local_page(). >=20 > With kmap_local_page(), the mapping is per thread, CPU local and not > globally visible. Furthermore, the mapping can be acquired from any conte= xt > (including interrupts). >=20 > Therefore, use kmap_local_page() in ixgbe_check_lbtest_frame() because > this mapping is per thread, CPU local, and not globally visible. >=20 > Suggested-by: Ira Weiny > Signed-off-by: Fabio M. De Francesco > --- > drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 Tested-by: Gurucharan (A Contingent worker at Int= el)