Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp978890lko; Tue, 13 Jul 2021 14:20:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd7vA4nHkoFm4osA+Y9Q9yPnqWLEBrxxWqWawn36rLFqKorX5Id5FykXFZLTWX7F78gfXN X-Received: by 2002:aa7:db54:: with SMTP id n20mr8376175edt.21.1626211223402; Tue, 13 Jul 2021 14:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626211223; cv=none; d=google.com; s=arc-20160816; b=w+6z3ih+CeHvPhQnbRymNQdl13B/ceB2Vf+cfudyOQFphXSUuEYTtJy26gWejptDAE zsX6y1YpPcv7Hv2/4f6IM94Z/DcxecY7X/RtDOGSRC3LNd+Xvw4G4LJ89QPucO7rztYa NELLxpwxRa2upSBmxZ2gEaOpAXOecZwQOoYVuEyW+Kmy8p/z3T5xMRDk8Lgi7dLSaoJ7 +DSiluei92trEwawrtWiaNuf0Cui9Q5Xb00HYPbsJ3TOltXPgvemwvzFQYXt4DDfKm+1 42NVwmY7Z5lhWlwfpUfLmb3bZwfppUUBzwv3Y0DqT8JCUrWa60JZNJKlOZswF1WtBDPf ye3g== 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:date:subject:to:from :dkim-signature; bh=O5KXq/z7dZ/+GfJwFgmvdOMFBPu0TxASq5EsvM935Ms=; b=yjysgC0o0obb3Q94CV03xkqZwXRUz7ZAw6Jiimr4xbKGesNPD5+UpPnWa/3tkC3B+J rfol9BX0MzXLATAlfRIHFnj41meDTcKQRRBzF9maHc79ZsMiAS29tBsYx6sMKpsMAecZ ZDjAeyxKo89rtErU32JwiBEKb7RJiGLf3ifrCv3N1JcuXBkmfjr7QkhwxjOzFS84EieN zvBBFKE7mWIbTrWLfnnZxvy6mH+NjFoK2zm78HkZINzcNQiCooLWvrt/21JS6COKN31p oewOrtF0OlzWJfJE9N6zt/X357ElK2QrF7+Zgd1UknJvtuhb/Z36Qrdt1Zv7OBK5xfer /+VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GoymLoox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz21si8140202edb.62.2021.07.13.14.19.56; Tue, 13 Jul 2021 14:20:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GoymLoox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236329AbhGMVTR (ORCPT + 99 others); Tue, 13 Jul 2021 17:19:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:42233 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236178AbhGMVTQ (ORCPT ); Tue, 13 Jul 2021 17:19:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626210985; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O5KXq/z7dZ/+GfJwFgmvdOMFBPu0TxASq5EsvM935Ms=; b=GoymLooxi7Cb4xTb0sUVNMfZYBjl1l3J4UuHPcmMOecEEilCmlHIX6nNI7XpxVd//XLDnq 5DsrNn541Ax1PDWC5kvw4Pm5zrb7KdGHIcpb9sdcuRoRd7dUVftyzTWsz3tFsutlkfQmq3 Mym7xra4byCVeqHxiMpz2U/vAAohIC4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-220-NRkAjESkNuyGLyzUSDV6lg-1; Tue, 13 Jul 2021 17:16:23 -0400 X-MC-Unique: NRkAjESkNuyGLyzUSDV6lg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EE8121084F4B; Tue, 13 Jul 2021 21:16:18 +0000 (UTC) Received: from virtlab719.virt.lab.eng.bos.redhat.com (virtlab719.virt.lab.eng.bos.redhat.com [10.19.153.15]) by smtp.corp.redhat.com (Postfix) with ESMTP id 629B85D9DD; Tue, 13 Jul 2021 21:16:05 +0000 (UTC) From: Nitesh Narayan Lal To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-api@vger.kernel.org, linux-pci@vger.kernel.org, tglx@linutronix.de, jesse.brandeburg@intel.com, robin.murphy@arm.com, mtosatti@redhat.com, mingo@kernel.org, jbrandeb@kernel.org, frederic@kernel.org, juri.lelli@redhat.com, abelits@marvell.com, bhelgaas@google.com, rostedt@goodmis.org, peterz@infradead.org, davem@davemloft.net, akpm@linux-foundation.org, sfr@canb.auug.org.au, stephen@networkplumber.org, rppt@linux.vnet.ibm.com, chris.friesen@windriver.com, maz@kernel.org, nhorman@tuxdriver.com, pjwaskiewicz@gmail.com, sassmann@redhat.com, thenzl@redhat.com, kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, shivasharan.srikanteshwara@broadcom.com, sathya.prakash@broadcom.com, sreekanth.reddy@broadcom.com, suganath-prabu.subramani@broadcom.com, james.smart@broadcom.com, dick.kennedy@broadcom.com, jkc@redhat.com, faisal.latif@intel.com, shiraz.saleem@intel.com, tariqt@nvidia.com, ahleihel@redhat.com, kheib@redhat.com, borisp@nvidia.com, saeedm@nvidia.com, benve@cisco.com, govind@gmx.com, jassisinghbrar@gmail.com, ajit.khaparde@broadcom.com, sriharsha.basavapatna@broadcom.com, somnath.kotur@broadcom.com, nilal@redhat.com, tatyana.e.nikolova@intel.com, mustafa.ismail@intel.com, ahs3@redhat.com, leonro@nvidia.com, chandrakanth.patil@broadcom.com Subject: [PATCH v3 07/14] enic: Use irq_update_affinity_hint Date: Tue, 13 Jul 2021 17:14:55 -0400 Message-Id: <20210713211502.464259-8-nitesh@redhat.com> In-Reply-To: <20210713211502.464259-1-nitesh@redhat.com> References: <20210713211502.464259-1-nitesh@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver uses irq_set_affinity_hint() to update the affinity_hint mask that is consumed by the userspace to distribute the interrupts. However, under the hood irq_set_affinity_hint() also applies the provided cpumask (if not NULL) as the affinity for the given interrupt which is an undocumented side effect. To remove this side effect irq_set_affinity_hint() has been marked as deprecated and new interfaces have been introduced. Hence, replace the irq_set_affinity_hint() with the new interface irq_update_affinity_hint() that only updates the affinity_hint pointer. Signed-off-by: Nitesh Narayan Lal --- drivers/net/ethernet/cisco/enic/enic_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c index d0a8f7106958..97eb5bd62855 100644 --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c @@ -150,10 +150,10 @@ static void enic_set_affinity_hint(struct enic *enic) !cpumask_available(enic->msix[i].affinity_mask) || cpumask_empty(enic->msix[i].affinity_mask)) continue; - err = irq_set_affinity_hint(enic->msix_entry[i].vector, - enic->msix[i].affinity_mask); + err = irq_update_affinity_hint(enic->msix_entry[i].vector, + enic->msix[i].affinity_mask); if (err) - netdev_warn(enic->netdev, "irq_set_affinity_hint failed, err %d\n", + netdev_warn(enic->netdev, "irq_update_affinity_hint failed, err %d\n", err); } @@ -173,7 +173,7 @@ static void enic_unset_affinity_hint(struct enic *enic) int i; for (i = 0; i < enic->intr_count; i++) - irq_set_affinity_hint(enic->msix_entry[i].vector, NULL); + irq_update_affinity_hint(enic->msix_entry[i].vector, NULL); } static int enic_udp_tunnel_set_port(struct net_device *netdev, -- 2.27.0