Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp459016ybl; Tue, 28 Jan 2020 06:18:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwUnROILivllmsgFpxdX1qoXc4ooB1tcsvajnQ0iEI0UtleyFL32ryF56zD9o3WnuQQ1JXd X-Received: by 2002:a9d:60c4:: with SMTP id b4mr17110460otk.166.1580221097558; Tue, 28 Jan 2020 06:18:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221097; cv=none; d=google.com; s=arc-20160816; b=CM5EQOtkvcsAIFPKljifmsTHn0cJACbFW5nWCZVWP0hUr4b7NnP7HbT8CaQOgdkagu fZcJAwfUFz0S1L0NoTFXRLlCnrCQYKqB53QEgLBX7YzC/S3s9l0OkrVGeY3u9MXZXYjv yW4B0f9Cm+kvDPs4HEMRSTAPaguQv3m2LzV857UXe9heN/kalhxOnbMPj7nnPbdlogn8 wPmJGWq4m5yjuXocnNoGjuMGzpoOmzGUVgKPdAl/2lr5kIsNP67k7z540ldZmxFumFBS 44gS/dXyLwVwUn3duuQTS1ld4ZmKR7IVNobqqLq82vFTpr7oG6DXHVjZ9qT+iNFIopp+ 8q4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=x/QsXKPDZ+5RDI+8XXDb2Pdj5ps5a3r3nSjFNV8mJ5Y=; b=DM5bdryOIcwIFBrdehH0f9c+JpKryqdiVdn/A5uO7b4wP8/gpt4CXGjA+Vw9+lBEVh ndKkjJOAIEMq8mHH/61aKeh+tKjb8UED+cW0tRX949PhnRZFTyAXfY3ysW2clWfB9lvO L235oIot8hIp3JTV47gO0KIoSk+eSJfmfBsMLj1UYIWs2cK7SnndFb6or8Lu/CPSsuKp CApCrCiZ9HEEMz7Nbg2/oW5eFMAtP4qJ0ep44eGT/+KVu36owoO8X2oYJ30VXoObG1H/ epMh23tuSbvYbHLom0TaVY+0EtFEztrWBmhAqAXduP+th5bCImeeXebBuHU39xBSz2Eu rpVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RgXWdo1Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i124si4921833oif.214.2020.01.28.06.18.04; Tue, 28 Jan 2020 06:18:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RgXWdo1Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730454AbgA1ORJ (ORCPT + 99 others); Tue, 28 Jan 2020 09:17:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:40666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729986AbgA1ORC (ORCPT ); Tue, 28 Jan 2020 09:17:02 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DA3542071E; Tue, 28 Jan 2020 14:17:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221022; bh=GaDVV3VwrauqmkegIJ/emuVFKWof90dNpcNVJ88FvQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RgXWdo1YQJT8kCqigZ3Dtm13g93UPEhjMW+/3ushZWc15ZjpDJJ8tGGKesOKAqbmE swPpv4DMy8ZFfuSoTJcnjfSvD/fVVTxszRjGe1J62i9okANJRbTEBkctkW8LlHPEVB fQl/AOfiDGw35x3vVAdbUtPfZ6+UDioVazSij7Is= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sara Sharon , Luca Coelho , Sasha Levin Subject: [PATCH 4.9 057/271] iwlwifi: mvm: fix RSS config command Date: Tue, 28 Jan 2020 15:03:26 +0100 Message-Id: <20200128135856.885537816@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sara Sharon [ Upstream commit 608dce95db10b8ee1a26dbce3f60204bb69812a5 ] The hash mask is a bitmap, so we should use BIT() on the enum values. Signed-off-by: Sara Sharon Fixes: 43413a975d06 ("iwlwifi: mvm: support rss queues configuration command") Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c index 2ec3a91a0f6b6..bba7ace1a744d 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@ -106,12 +106,12 @@ static int iwl_send_rss_cfg_cmd(struct iwl_mvm *mvm) int i; struct iwl_rss_config_cmd cmd = { .flags = cpu_to_le32(IWL_RSS_ENABLE), - .hash_mask = IWL_RSS_HASH_TYPE_IPV4_TCP | - IWL_RSS_HASH_TYPE_IPV4_UDP | - IWL_RSS_HASH_TYPE_IPV4_PAYLOAD | - IWL_RSS_HASH_TYPE_IPV6_TCP | - IWL_RSS_HASH_TYPE_IPV6_UDP | - IWL_RSS_HASH_TYPE_IPV6_PAYLOAD, + .hash_mask = BIT(IWL_RSS_HASH_TYPE_IPV4_TCP) | + BIT(IWL_RSS_HASH_TYPE_IPV4_UDP) | + BIT(IWL_RSS_HASH_TYPE_IPV4_PAYLOAD) | + BIT(IWL_RSS_HASH_TYPE_IPV6_TCP) | + BIT(IWL_RSS_HASH_TYPE_IPV6_UDP) | + BIT(IWL_RSS_HASH_TYPE_IPV6_PAYLOAD), }; if (mvm->trans->num_rx_queues == 1) -- 2.20.1