Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2062982rwl; Thu, 13 Apr 2023 00:47:28 -0700 (PDT) X-Google-Smtp-Source: AKy350YGbR/+8gC1m7q5vk4+UI0dYGQMzgkf4u4IOeMxMn8jnQAXtTDsP5/8qF9VNWw1PSU5dEmO X-Received: by 2002:a17:906:c7d7:b0:94e:4843:a8e7 with SMTP id dc23-20020a170906c7d700b0094e4843a8e7mr2042121ejb.70.1681372048704; Thu, 13 Apr 2023 00:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681372048; cv=none; d=google.com; s=arc-20160816; b=BA/K9vrQSTA2tzmjRIc3RvS4oYAk3Bzj5e0MIuKvBWekjRFkELn1X8JTBMn33KlpcJ /aeZPVmYUvyWPQAbjp6s35d6NS3F9qf7uBZszJ0Mi+r1QrDGSaVBnTbF7DX/Nj5avXaC X92Ye68vo3OMV82ISqr8QBrLifpY/g/VbGr4/HwLz3Au5pF1XmUXToHjU9hWTz/j7rTz eT/guVw2xUtP5C01bAB+S98Cu4QoHN5VKF4wuuEUuwEQ64FXbbpOZAFjXA/JETeXxORc G473dgGuIQBc3nKyb8k0KYNWXcotdyy8IP0aV37OCPGOpGabL3ts4m1Ral8Y1ez5fkJU iwmQ== 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=u6pvCF6PSHGxDGcrJ1/HjUyNCIX/aSIbY6a90blB36M=; b=P+kscE897WuAVNDJQHv3EOJ+QaigHQvUsiukDT3RH4Cz4LgbKAbR7kRroMf7J6nXXi SIEACcxYe5pT6Lg/TqUpTIVCuJLi/U+0XCvEdK456L3OwyM8XKKd4VdLQjpAd1GMY8i3 V8pMrs1mi3EvIeV9Za8m3nqQn28QscY4DwlOvDFvmtQRXWQ8sPEDctRjGX9SVIiN57/l fdbnjIOxJGtLXiYpxN8BwEkymdOQ1dPziMMl3L48d61uJLWgCWfeoHDDKJl0PgqlKVyA R2/AjS5ruRgKTB+EIUfq51LV9m3g1dBmFyESj26QLDmZ8XdAs4kgfv0Pz3IwpjhlMNSb Lm4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cF63QVYb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 h14-20020a17090791ce00b0094a6f4da291si1119001ejz.421.2023.04.13.00.47.13; Thu, 13 Apr 2023 00:47:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=cF63QVYb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S229586AbjDMHqU (ORCPT + 61 others); Thu, 13 Apr 2023 03:46:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230085AbjDMHqR (ORCPT ); Thu, 13 Apr 2023 03:46:17 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEC596199 for ; Thu, 13 Apr 2023 00:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681371976; x=1712907976; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WB5FDYTcF4Otb3L3HZTEx2iwxNL53FvELfrlVnfRIlw=; b=cF63QVYbq0Dcfm21jexoBUKbbOPuGLS/Dn+i0FRW1/N6KUWKQbNm1O4N y4vneIU+TkAQCahHPxeuu+tK6L27ZNXd0jcywff8aCahuEw3LdivC9grD y3bClBbDj3FMVxno7ipMM+QfDxvkKSmD31qSSJ/dZwwHED3bsAAxhrHH6 dFeV7GFpx9E+bm+E2xf9x+BTDU96miFQdyrs8hJM52fR/w6jOVN/H3WHc IMf5oO3AM3+HY3nHNhD1h8YiRFMCCvtrUzulDfKwnQn2vgIzbHkjH4SzG jb4gywSFY0qqMjjRHJqE7vjxvwhnMdeeZlaamRegzSbd1M3goYRCqydVY g==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="323736117" X-IronPort-AV: E=Sophos;i="5.98,341,1673942400"; d="scan'208";a="323736117" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 00:45:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="833034857" X-IronPort-AV: E=Sophos;i="5.98,341,1673942400"; d="scan'208";a="833034857" Received: from apeled2-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.251.184.75]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 00:45:41 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Avraham Stern , Gregory Greenman Subject: [PATCH 15/15] wifi: iwlwifi: mvm: don't set CHECKSUM_COMPLETE for unsupported protocols Date: Thu, 13 Apr 2023 10:44:15 +0300 Message-Id: <20230413102635.a2a35286f0ca.I50daa9445a6465514c44f5096c32adef64beba5f@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230413074415.1054160-1-gregory.greenman@intel.com> References: <20230413074415.1054160-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,URIBL_BLOCKED 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-wireless@vger.kernel.org From: Avraham Stern On Bz devices, CHECKSUM_COMPLETE was set for unsupported protocols which results in a warning. Fix it. Fixes: b6f5b647f694 ("iwlwifi: mvm: handle RX checksum on Bz devices") Signed-off-by: Avraham Stern Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c index 5d803e537b00..31e1d0ccdec5 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c @@ -172,8 +172,7 @@ static int iwl_mvm_create_skb(struct iwl_mvm *mvm, struct sk_buff *skb, * Starting from Bz hardware, it calculates starting directly after * the MAC header, so that matches mac80211's expectation. */ - if (skb->ip_summed == CHECKSUM_COMPLETE && - mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_BZ) { + if (skb->ip_summed == CHECKSUM_COMPLETE) { struct { u8 hdr[6]; __be16 type; @@ -188,7 +187,7 @@ static int iwl_mvm_create_skb(struct iwl_mvm *mvm, struct sk_buff *skb, shdr->type != htons(ETH_P_PAE) && shdr->type != htons(ETH_P_TDLS)))) skb->ip_summed = CHECKSUM_NONE; - else + else if (mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_BZ) /* mac80211 assumes full CSUM including SNAP header */ skb_postpush_rcsum(skb, shdr, sizeof(*shdr)); } -- 2.38.1