From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36151C352A1 for ; Wed, 5 Feb 2020 19:21:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D4322072B for ; Wed, 5 Feb 2020 19:21:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=c0d3.blue header.i=@c0d3.blue header.b="f2/oKsD4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727486AbgBETVf (ORCPT ); Wed, 5 Feb 2020 14:21:35 -0500 Received: from mail.aperture-lab.de ([138.201.29.205]:46520 "EHLO mail.aperture-lab.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727116AbgBETVf (ORCPT ); Wed, 5 Feb 2020 14:21:35 -0500 X-Greylist: delayed 613 seconds by postgrey-1.27 at vger.kernel.org; Wed, 05 Feb 2020 14:21:34 EST From: =?UTF-8?q?Linus=20L=C3=BCssing?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c0d3.blue; s=2018; t=1580929879; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oR8zVIyJPPLtcbIaEesyxlzKUGtwe37C23vEgBL6VjQ=; b=f2/oKsD4u8CWbuveyA+cr1Cn3MuN6+uYKh6gv0Nm07gzKgM/MtcCWQnbFIJFD2IxP/XjUd PIAUqa2WGyb1TD4CIaiLYWX6g7erH1gWMuPB2gj6USmG3GyKOJZDUxObIqpIEh7NzciYm+ vNKiq04a4eUoRcbQTzDbgmjwoicaozyZ/YUrgrMiCKcfLZBdwjyWPrYtDTutj6F/7LM4fT aLVvuS6RSoBiQQEpUM5o8gKk3d+duyqJDfwfsp01aieu7AHNA7x+61wPfewyTfqgbWsESM lu9byc5nx1ai+ELzeE6iUYnVYG5/LF001YWdEICVhkKe/l7YvG/ZhW6wldblDg== To: ath10k@lists.infradead.org Cc: Kalle Valo , "David S . Miller" , Ben Greear , Simon Wunderlich , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Linus=20L=C3=BCssing?= Subject: [PATCH] ath10k: increase rx buffer size to 2048 Date: Wed, 5 Feb 2020 20:10:43 +0100 Message-Id: <20200205191043.21913-1-linus.luessing@c0d3.blue> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=linus.luessing@c0d3.blue smtp.mailfrom=linus.luessing@c0d3.blue Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Linus Lüssing Before, only frames with a maximum size of 1528 bytes could be transmitted between two 802.11s nodes. For batman-adv for instance, which adds its own header to each frame, we typically need an MTU of at least 1532 bytes to be able to transmit without fragmentation. This patch now increases the maxmimum frame size from 1528 to 1656 bytes. Tested with two ath10k devices in 802.11s mode, as well as with batman-adv on top of 802.11s with forwarding disabled. Fix originally found and developed by Ben Greear. Link: https://github.com/greearb/ath10k-ct/issues/89 Link: https://github.com/greearb/ath10k-ct/commit/9e5ab25027e0971fa24ccf93373324c08c4e992d Cc: Ben Greear Signed-off-by: Linus Lüssing --- drivers/net/wireless/ath/ath10k/htt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/htt.h b/drivers/net/wireless/ath/ath10k/htt.h index 4a12564fc30e..6a2b5e10e568 100644 --- a/drivers/net/wireless/ath/ath10k/htt.h +++ b/drivers/net/wireless/ath/ath10k/htt.h @@ -2220,7 +2220,7 @@ struct htt_rx_chan_info { * Should be: sizeof(struct htt_host_rx_desc) + max rx MSDU size, * rounded up to a cache line size. */ -#define HTT_RX_BUF_SIZE 1920 +#define HTT_RX_BUF_SIZE 2048 #define HTT_RX_MSDU_SIZE (HTT_RX_BUF_SIZE - (int)sizeof(struct htt_rx_desc)) /* Refill a bunch of RX buffers for each refill round so that FW/HW can handle -- 2.25.0