Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5116728rdb; Sat, 16 Sep 2023 03:52:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHA9v+ELdszUQ8cCGPZUYu1KeDC1X1EIzbfFmD5AOjWzN6dKvWppsA9B28jaixWLNYfzjff X-Received: by 2002:a17:902:ce8b:b0:1bf:3378:6808 with SMTP id f11-20020a170902ce8b00b001bf33786808mr4467494plg.56.1694861559559; Sat, 16 Sep 2023 03:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694861559; cv=none; d=google.com; s=arc-20160816; b=wHXhBi3qYx2/tca1fHUDr45YUfzmShO6MKLYbU44d6zq58ovfYCr/R55SMGbkkG9di eQLSd1PXgipQUBBIa2ah0kv9d+UsViIZQaEeOfoBWuxWtkfZJs5sqLeDzOOxwTsnOhh4 GkHTKFYplPsLcuaK2LIG3Ug6zE8LQQBIY+dXnBKaDN72n4NshOhVmSuay7W7/Q3R9Nb3 zExERnTmvKkQTiKsUz94ppUdfCs41EcUj3w9/t+//FebIXyT5iRLyKlg3BrpVTj8x1qB kd39bA9TQCI9/wv0U8qjLwGrc3pjrGhcQABwCv82HpD5Iv8pVE1mcAGAgMuUxToQeoai 1f9g== 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=tFJhYmSWgV7cTk/qBLBSDvk5jQBUFDGwIkFqGEjQH9M=; fh=T6y/oS++RIYqEuqxIx2phDO2xU+34wOH47oi8kJGCZk=; b=gN5/heeRgqeunuz8jN0wAbiyCV3XjX7OKLL3dMqpeqdpP1X5IHZp0xo+omj/Idi6iu JBrqCLdDCxA4M7M67B8lb94bnRCHUFA9m3p4qatdRTtwlD+RPiuElEYe6xXMXM/0sUl3 uUa2EV2AnD6QWlKN//HiXMX0Rsw0liFEp8eAveJBFC2Ss5CCcp6h3Lp99LL7EP1iTTaB xOyZikhWm1/+xf4bh92Wf/EpofqD7INN56zIMlLEcufL2Syj7j9AxSpsJjosDvQ6O1j1 BL4K0IVrIIifAWYWG4B077++majvHC2ot8VLix3+kKYisJeTycgAQGfnpYc+UkgmAXpg NgDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KmpOE9e3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z13-20020a1709027e8d00b001c3671d3151si63303pla.92.2023.09.16.03.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 03:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KmpOE9e3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 949A0813A596; Wed, 13 Sep 2023 04:57:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240570AbjIML53 (ORCPT + 56 others); Wed, 13 Sep 2023 07:57:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240561AbjIML51 (ORCPT ); Wed, 13 Sep 2023 07:57:27 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59ABF1996 for ; Wed, 13 Sep 2023 04:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694606243; x=1726142243; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aiXmj+uG6HKGop26odIuD1SeEcGV0UbuMzMHwA8FLzU=; b=KmpOE9e3c89LLwaCqU2P5vTuwKfOWaiNKHxEaDJsWUZvjbR3IUQUEIvA JV/iaEXwfO78iteLTrXy4YiwUdeZzU/tIihPWV7fokohvFFxKrDGlSFXi vlh45QE1gu5oV8CkpuMz9Q53voSfwJkoUgwbhdkUwPpV216/h7SfDebVa sGZ0oIbkErk62ewXQrZHX/1yk3HW3zoxN7WSxZUCZxZJPRdySY+LXD2Ag sNSaEaQZzte/TQB0yM/Ch0HNaLIZ28RXXVsz+CMWzPNIb+01/nRahjTyN /Van23KjG2fYMAmzTkoLkJUOHkTaVOCCA4qkmTVYo5ljSKAWybtWlGg5A A==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="368903033" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="368903033" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 04:57:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="737470949" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="737470949" Received: from ggreenma-mobl2.jer.intel.com ([10.13.17.40]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 04:57:20 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Emmanuel Grumbach , Gregory Greenman Subject: [PATCH 06/15] wifi: iwlwifi: mvm: log dropped frames Date: Wed, 13 Sep 2023 14:56:42 +0300 Message-Id: <20230913145231.c2f02fecf66f.Ib472f9fd92856c6e5b5a99b68fdca0f694a531e9@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230913115651.190558-1-gregory.greenman@intel.com> References: <20230913115651.190558-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 04:57:29 -0700 (PDT) From: Emmanuel Grumbach When we drop frames we want to have something printed in the logger. This won't be printed by default of course. Signed-off-by: Emmanuel Grumbach Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c index f0e0b91880a2..42d69f557e71 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c @@ -376,8 +376,10 @@ static int iwl_mvm_rx_crypto(struct iwl_mvm *mvm, struct ieee80211_sta *sta, */ if (phy_info & IWL_RX_MPDU_PHY_AMPDU && (status & IWL_RX_MPDU_STATUS_SEC_MASK) == - IWL_RX_MPDU_STATUS_SEC_UNKNOWN && !mvm->monitor_on) + IWL_RX_MPDU_STATUS_SEC_UNKNOWN && !mvm->monitor_on) { + IWL_DEBUG_DROP(mvm, "Dropping packets, bad enc status\n"); return -1; + } if (unlikely(ieee80211_is_mgmt(hdr->frame_control) && !ieee80211_has_protected(hdr->frame_control))) @@ -2562,6 +2564,8 @@ void iwl_mvm_rx_mpdu_mq(struct iwl_mvm *mvm, struct napi_struct *napi, iwl_mvm_rx_csum(mvm, sta, skb, pkt); if (iwl_mvm_is_dup(sta, queue, rx_status, hdr, desc)) { + IWL_DEBUG_DROP(mvm, "Dropping duplicate packet 0x%x\n", + le16_to_cpu(hdr->seq_ctrl)); kfree_skb(skb); goto out; } -- 2.38.1