Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp618210ybv; Wed, 5 Feb 2020 11:22:09 -0800 (PST) X-Google-Smtp-Source: APXvYqy4MNZtNvT7jzdJ91djXWXinXpE9Vgd2pndp+I0yfayyDbnHKkvdXPmeeef0vK2O7KONFZW X-Received: by 2002:aca:37c3:: with SMTP id e186mr4246160oia.155.1580930528998; Wed, 05 Feb 2020 11:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580930528; cv=none; d=google.com; s=arc-20160816; b=agMAZsuR4ZC+aR999xVp/NGSTcW52Xhr5/Mu6tmGK89klfJAUU/Ddt0tH2oFta3rJe dJsFJDfS+9WksNjmfl/OOhNx8CtdBNMaFEqosHAtAKiycpdV/l3BsvDuYvODNoBxmeRe 14gs1MrFG1KihwDBgM7LwLj6srTGsU4ldLra3vrzivcmXyw+0zbokKVjJoNlkvRf2odz a/WJMI+zXDc3wXHz2Y4jhtCjwmwmZNYL77RMr2cXc64ehMrw0pOgyumce4iR8XlZ68O3 jzJ2bxHOY/kIPvhdiHb90xcubz+StxUyrR3U6PqOnnDAmEWSwgWQ/x3THrk/dYKmYdd/ M3tw== 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 :message-id:date:subject:cc:to:dkim-signature:from; bh=oR8zVIyJPPLtcbIaEesyxlzKUGtwe37C23vEgBL6VjQ=; b=JsIzI5HIFamGgLTttH4FGQ5HefP/G79+rJxl+E2Xpl9w6A+zFcgyySXROZEr3pd1rp ozxRcDCrWZKwSMmau2I98fbmSgHiGM17yr9jMvpSQcj7TcWLnilUT+kaMk+o2JqQBVdo 5H/9Sp7lMfHvjGgZOTfNwHkWV6dnKan8MMUXcQmwsiB7hhegGkgPBF2a1NcN3zvzBB9C yl+piioSefahxmypNe7vQexzYYaBRvrFoRxQNaAMXxdesWgms1ZAYjdZ4S3rlxaRfk0r if6M630UE6XxI17qthUm/HeFAlUIYxWloOEJ+nkjZHA2uu+UgOKXADYTVphjIUWkI/Lg ZvBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@c0d3.blue header.s=2018 header.b="f2/oKsD4"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 r1si271145otq.298.2020.02.05.11.21.46; Wed, 05 Feb 2020 11:22:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@c0d3.blue header.s=2018 header.b="f2/oKsD4"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727199AbgBETVf (ORCPT + 99 others); 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: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@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