Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp574312pxb; Fri, 3 Sep 2021 08:28:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL6QwVQtQe6vs7ytVKmWGFeOCBY4V/BASCU1RHOvTO89FTXZgKnv0Z4Ocu9royje8l1/pQ X-Received: by 2002:adf:c411:: with SMTP id v17mr4839838wrf.160.1630682897082; Fri, 03 Sep 2021 08:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630682897; cv=none; d=google.com; s=arc-20160816; b=CDx+fzgSjUTBRcpBlqhtRipd6UOfQLi79A1YDGaKlcoFdg0u/k4nRX/BRKeTzcC34e zhrn7Ae/m1cgsRVS10EbfRfFqCXLWOk9HfHV90Rui1iR/+ZyLwxr9w2Y6I1y0qkQe/K5 vWUORIKggIvKcUVU9XRQch2WlsjfUGsrw34VSVhZGWZ9xt0CdheQh57awjXCIuNUo2Cl rbKPyVmExZcE6h2RJIcyn/RDujIX6zwyYXs8VK39/45glmmy2L74peK+fQhD2+uPw35v 1i8SYlna/wnEUt0L+hKY1YZO1BXcAQDyQ3lIq1WiF9yOwbUlYA86fN4Hy8E+41q9cclF wm6g== 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:cc:to:from :dkim-signature; bh=J9NGBS2kCr9ghVesZ7zV6rjuMpoTkhfRKssnzMwknq4=; b=PcYE7J4+doGIIpgxzFu7O9VdVhtFvbICKPOQ1vgdz8XteyNs0HjbxREHeYgOk3GkLx mVnC21dqTIwDNPeSRybk/Nl2KiK0UNE5Ocl1WnVr2JNyBXXIT4ITBtR1o5dCe7M2CjKw BQ1Fl35d55Io4xfGN0HLGHZQeHeAFY0HNv9wlwz2cgv8xWRYz84M4qSV3X2ulbnjhWhl W1VLTXhMZx6k0qGKU2DcEZIdzVXTPGZZ/LTB2AaC5NdmIXFoZPhIP2Sk/oHYSqXsrz/S 0LWuE+J/ELQa8tMcbLAsvo/kwYSJC0pDxjkZqpZ1WBzpbigFvgnkul7LqBVvFWufe47G FPsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LmVlq5rg; 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 w13si7400048ede.389.2021.09.03.08.27.53; Fri, 03 Sep 2021 08:28:17 -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=LmVlq5rg; 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 S1349811AbhICP1F (ORCPT + 99 others); Fri, 3 Sep 2021 11:27:05 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:60173 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349776AbhICP0w (ORCPT ); Fri, 3 Sep 2021 11:26:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630682752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J9NGBS2kCr9ghVesZ7zV6rjuMpoTkhfRKssnzMwknq4=; b=LmVlq5rghXyXI5Fv+bERCa8TjaUKblOHiCWInQVvqufK5KzxWHVPIsHQM5HD7UaFoRV3bo rMgbAPn6r1PjkFzsH6DDo0gA3wCJJBq5W82bH6ZyQRU6J5rODIAX2mh5iEfjz+RMMKLnVb kvL6VE0je52Ty+oqA262M6eqeJZ8+XQ= 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-156-XLEU-nOUOJmddA_g5yIbIw-1; Fri, 03 Sep 2021 11:25:50 -0400 X-MC-Unique: XLEU-nOUOJmddA_g5yIbIw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A3FC5800FF3; Fri, 3 Sep 2021 15:25:48 +0000 (UTC) Received: from virtlab512.virt.lab.eng.bos.redhat.com (virtlab512.virt.lab.eng.bos.redhat.com [10.19.152.206]) by smtp.corp.redhat.com (Postfix) with ESMTP id D6DCB6E0B0; Fri, 3 Sep 2021 15:25:43 +0000 (UTC) From: Nitesh Narayan Lal To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-scsi@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, ajit.khaparde@broadcom.com, sriharsha.basavapatna@broadcom.com, somnath.kotur@broadcom.com, huangguangbin2@huawei.com, huangdaode@huawei.com, mtosatti@redhat.com, juri.lelli@redhat.com, frederic@kernel.org, abelits@marvell.com, bhelgaas@google.com, rostedt@goodmis.org, peterz@infradead.org Cc: nilal@redhat.com, jesse.brandeburg@intel.com, robin.murphy@arm.com, mingo@kernel.org, jbrandeb@kernel.org, akpm@linuxfoundation.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, 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, tatyana.e.nikolova@intel.com, mustafa.ismail@intel.com, ahs3@redhat.com, leonro@nvidia.com, chandrakanth.patil@broadcom.com, bjorn.andersson@linaro.org, chunkuang.hu@kernel.org, yongqiang.niu@mediatek.com, baolin.wang7@gmail.com, poros@redhat.com, minlei@redhat.com, emilne@redhat.com, jejb@linux.ibm.com, martin.petersen@oracle.com, kabel@kernel.org, viresh.kumar@linaro.org, kuba@kernel.org, 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, tglx@linutronix.de, ley.foon.tan@intel.com, jbrunet@baylibre.com, johannes@sipsolutions.net, snelson@pensando.io, lewis.hanly@microchip.com, benve@cisco.com, _govind@gmx.com, jassisinghbrar@gmail.com Subject: [PATCH v6 07/14] enic: Use irq_update_affinity_hint Date: Fri, 3 Sep 2021 11:24:23 -0400 Message-Id: <20210903152430.244937-8-nitesh@redhat.com> In-Reply-To: <20210903152430.244937-1-nitesh@redhat.com> References: <20210903152430.244937-1-nitesh@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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 Reviewed-by: Christian Benvenuti --- 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