Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3550161pxv; Mon, 19 Jul 2021 03:02:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4HlXygKVd8BBnxg8C3xtvLEHnhBXsXFXP1d4jouIbWxQtcg8WaVn5k6Y/XHc7sPkj3VJd X-Received: by 2002:a17:906:ee9:: with SMTP id x9mr26066997eji.44.1626688971113; Mon, 19 Jul 2021 03:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626688971; cv=none; d=google.com; s=arc-20160816; b=0acDntyLOHl2AHPV20ZF9msc799WLCFHj91NNd6WlCwaQJ3Ykgf/7bf/qDZKNV5CXL Vb5X34HdOkl9jbQkDSAOVNJNDeEftzlM3UVKkgz6GQkGymzpqGraGnfmzaaLSAHMl4bS 2ye4bzI/0G4LxCK3+1gPnDOACo7d10Fv/CPxAkd/Wgtkd4Rd2jLklSy0/YIXww7aBPZT 5KdqXjuM7KHHbRT8wOy1lc3xVj6FoA7FmJNqwPWSETO6L8FbKm+3CBJEn5+SVaoBTZq8 jNj2kvbOHFj+t793ogSvEDdAUj4xwWMp1B5tpfj9UuPHT4LFx8+6UQfLfbMOzRvUGdgL KK1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dj2Pkj4697WEBKUdTIRcLnCnShjS53dNXfzQ6fBbXxk=; b=Q5EephSZswaZtStWNgW9MCGTmuPr1SXYDhffqkUdHROZh86yS41Lr79MoYGnUtON4z zZZ1Lg99EWR4ErgG+ZsOWkV9lQEqobb1avqLQVCSP0Ywdp0Nc1Ku3ViPp+nmzXqtsBVg lYTxkHV0j55ivnkp/ttq5LLPjA/Og8G89BXLA0NMKhHUQUmSG03YbF+v8L04WP1ZruIq 9mzD4WCdQr/LK5RNe/WPFrhSlHLvRDUEPif+KN4hEifP8CniPSqm1iwN5Vi0r3YBmERi e3fLL/XrvuZkBlnl6OlNYq34hOYnERHBghydxTStufZL84bMeoZ6MzDgFIGo5d6mCY7O 3oag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bs1xjmd4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj22si19308415ejb.18.2021.07.19.03.02.28; Mon, 19 Jul 2021 03:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bs1xjmd4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235643AbhGSJUv (ORCPT + 99 others); Mon, 19 Jul 2021 05:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235172AbhGSJUu (ORCPT ); Mon, 19 Jul 2021 05:20:50 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B026C061574 for ; Mon, 19 Jul 2021 02:05:33 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id jx7-20020a17090b46c7b02901757deaf2c8so11799495pjb.0 for ; Mon, 19 Jul 2021 03:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dj2Pkj4697WEBKUdTIRcLnCnShjS53dNXfzQ6fBbXxk=; b=bs1xjmd4PHfTEyV3tlkBGLYlk6CUL15nfckKPruC9/iyNosMEuf3lCLLZw7UL/Temd P0QJzpXI17S0giZ8in4sM9pgBI12j5Y0aFV4AY7Kcz2T9Jj0atqgkyAZ9cntrMsXL9ph VLcwYQINfCjWUvLOonL1E5MsjA750sMABlRcGaHlCNqJjcPy2OkRo/MHPz2ORykqHcV5 GbLjuDGi8qUXZIcuyXa0OqoROj0apbwTaEfYfnCL+SNOISHR6be9StFfsZo1g4fDlCIL Eu/3/yitq2OvHSxWi2oJN7albQbWKkUWGvr2rT7nF32hRo2Rh2vULpLk+Y7571A+tLu2 XnhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dj2Pkj4697WEBKUdTIRcLnCnShjS53dNXfzQ6fBbXxk=; b=Ino5GRNejHv/zhNUsybdt6Epka90JqB0yTudLJytGN0CoWI3QttrwD7JU5qdtmfHKz 3h8l7HS/eAdVqUrpkddRilqLYylkGl9FUQNWZ28KCGjwx3+z5TsR9o7rq5AHhPXVrSP9 fA92LgNGZ1P0b6iu7WIlaOyZ85TTJkDn2wTiD1IfGshh0SG7fHBf4UZWgP4ITOAdtWpk r81KWpoXldy6qIoo1aOp39gURsnOzVyIC+MSQTO0YxvL/hx+pYPaZhWwxIpkGw/Mc/wB iWBcF2ApwT8F/t+Zs6Vc2T6aEl38y0fawaYrFTMMh7sKjJW/FTFATfd3oCqBrxecobEi c43g== X-Gm-Message-State: AOAM530NTH8TUiZwJ/RnitzPhiR3vhtZqbFNfMv4/TK3atPzHQRahkAB ANW63r5SZL9kj0RL/ZO1i8lf5CqzJ5Fz13k8Zz7IIQ== X-Received: by 2002:a17:90a:5892:: with SMTP id j18mr24424949pji.18.1626688889508; Mon, 19 Jul 2021 03:01:29 -0700 (PDT) MIME-Version: 1.0 References: <20210714211805.22350-1-richard.laing@alliedtelesis.co.nz> In-Reply-To: <20210714211805.22350-1-richard.laing@alliedtelesis.co.nz> From: Loic Poulain Date: Mon, 19 Jul 2021 12:11:26 +0200 Message-ID: Subject: Re: [PATCH] bus: mhi: pci-generic: configurable network interface MRU To: richard.laing@alliedtelesis.co.nz Cc: David Miller , Network Development , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, On Wed, 14 Jul 2021 at 23:18, wrote: > > From: Richard Laing > > The MRU value used by the MHI MBIM network interface affects > the throughput performance of the interface. Different modem > models use different default MRU sizes based on their bandwidth > capabilities. Large values generally result in higher throughput > for larger packet sizes. For my interest do you have some numbers here highlighting improvement? > In addition if the MRU used by the MHI device is larger than that > specified in the MHI net device the data is fragmented and needs > to be re-assembled which generates a (single) warning message about > the fragmented packets. Setting the MRU on both ends avoids the > extra processing to re-assemble the packets. Re-assembly is quite free since it's about chaining buffers (no copy or re-alloc). > > > This patch allows the documented MRU for a modem to be automatically > set as the MHI net device MRU avoiding fragmentation and improving > throughput performance. I would be interested in some numbers (throughput, CPU usage...) since I've not been able to test that at very high throughput for MBIM. The default MRU has been set so that MHI packets fit into 4K pages, for faster allocation. As you said, that causes more MHI transfers but there is Interrupt Coalescing at hardware level, which mitigates overhead. Regards, Loic