From patchwork Thu Jun 15 13:33:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagi Grimberg X-Patchwork-Id: 9788879 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4DC8060384 for ; Thu, 15 Jun 2017 13:33:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 408F725D9E for ; Thu, 15 Jun 2017 13:33:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3534728613; Thu, 15 Jun 2017 13:33:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, URIBL_BLACK autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E10A225D9E for ; Thu, 15 Jun 2017 13:33:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752438AbdFONdY (ORCPT ); Thu, 15 Jun 2017 09:33:24 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:53857 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752434AbdFONdY (ORCPT ); Thu, 15 Jun 2017 09:33:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LFOVDa3idVx4txBwl7TsS1i3LYBwuDhOqXBGpVDhJis=; b=QWoSgJPDTa7qmlLEavQgUUL19 XF2sN2dshyOQes0JmvhzWQo56lz2lNz0+O8s3zeuSOg385IJ2Wa4UtU1i4Uym1uvLqHKsVyPRy7iH ySlPXuF8XdfOtXCFO7hsWECojlEFNyut6ri2m6+q74r4wmEmhGzIoeeNA16h+oTz9l4WvLIJQZ0f2 O7JA6ZpXTND6FY/cw7SpcOdz6GJU4sgKMLeJ1XUdImqjtP1hziv8041sbQe0vS1UEH8pb4ZVKuTEO dOw2i5P7e9Go9jtYnErbV6kvRokXzRn9TR5SHuaT6RQdLrd8yV/AUw42+3LZxsUKWKsaFTggINaZ4 fu7w1WlKQ==; Received: from bzq-82-81-101-184.red.bezeqint.net ([82.81.101.184] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1dLUtm-0005Yw-Fl; Thu, 15 Jun 2017 13:33:22 +0000 From: Sagi Grimberg To: Doug Ledford , linux-rdma@vger.kernel.org, Saeed Mahameed Cc: Christoph Hellwig , Leon Romanovsky , linux-nvme@lists.infradead.org Subject: [PATCH v5 for-4.13 2/7] mlx5e: don't assume anything on the irq affinity mappings of the device Date: Thu, 15 Jun 2017 16:33:09 +0300 Message-Id: <1497533594-11579-3-git-send-email-sagi@grimberg.me> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497533594-11579-1-git-send-email-sagi@grimberg.me> References: <1497533594-11579-1-git-send-email-sagi@grimberg.me> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP mlx5e currently assumes that irq affinity is really spread first irq vectors across device home node cpus, with the new generic affinity mappings this is no longer the case, hence mlxe should not rely on this anymore. Signed-off-by: Sagi Grimberg --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 2a3c59e55dcf..1e344b445a47 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -3733,18 +3733,8 @@ void mlx5e_build_default_indir_rqt(struct mlx5_core_dev *mdev, u32 *indirection_rqt, int len, int num_channels) { - int node = mdev->priv.numa_node; - int node_num_of_cores; int i; - if (node == -1) - node = first_online_node; - - node_num_of_cores = cpumask_weight(cpumask_of_node(node)); - - if (node_num_of_cores) - num_channels = min_t(int, num_channels, node_num_of_cores); - for (i = 0; i < len; i++) indirection_rqt[i] = i % num_channels; }