Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp843960rdb; Fri, 26 Jan 2024 12:25:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdLWxJQi7z0Vjk24ASG65AO9he0bLmGzCJaJpijvWEA2T2TWTepDYVHRqECCvBuiV/jFoi X-Received: by 2002:a17:90b:714:b0:294:ae26:abb with SMTP id s20-20020a17090b071400b00294ae260abbmr471685pjz.9.1706300742987; Fri, 26 Jan 2024 12:25:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706300742; cv=pass; d=google.com; s=arc-20160816; b=NfXo4P+rZaBZhK4ydvfjYA7kZu0sY6tgACXspNI8zuv3EAFaYjwr2ssTC744qLA+ab bR+l41CO5ShU6BlixMknobXAo2egL9uAhSspxpZvGiUVCIyi9Ilxo+SkHa5rcRmun3WH 3KdSNu3qDsrt/OUIXZEnPX6xYpTFM1TQEzB7cPnUBthGvsXaMDM6O3bX0VjpqjZ7+qLf I2kQi+K2UcgmZVlG24XWBYlz5UB6B09BiAyQMWPA7NAxOTrVulpo1z1QmvfT9sbpRhfn JEtCxF55+Qhf+qCq+qkSyf3vo0SgETJtm/lWs2LFKeCMpnDGNhCrRSsuf7kssVs508CW dkDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=x8oebQaftQNT6LeEHr7TKK0RzE3dlOdRvYdiT9hpg60=; fh=8pp1+8p0pcBDwVood45PjIsXZtYZSNzDMz/t3/zOQ/4=; b=qWgU0jPI4ssn7Vk6yCfcn5tOuwNwjAsFIpcHqBCmIvUprdJ6Fv59Oj0iBcxtd6NTFZ QxpkpkxkQy8JZBRZlu5ZU9BH7JverMaRxtekBpVC70WidLojYeGlLocPk3BaTTZt9wDv nj+pX4/Dke9NdPABxwa+hB1S+1m14+6bgO4FCR0x4jJ5t3biSoauBfbI4Yo2D3yFXnzj J/AVuHzh9wxPN3dEyjPGIOI6x+YmtafRFE8EJ3RllSsS/28lVqiN4NvCr77MaS9yBl0g NWxHOHeEx67QCehSBlt3xHgwZ/cCAABlySBRunqC6v1uxN6+9aKZxpW823dQ5Eq13crN THKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=J64cU7AZ; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-40623-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n11-20020a17090ade8b00b002904d0c0a1bsi1652091pjv.152.2024.01.26.12.25.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 12:25:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40623-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=J64cU7AZ; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-40623-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 38FFA288A2D for ; Fri, 26 Jan 2024 20:24:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4559022F1E; Fri, 26 Jan 2024 20:24:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="J64cU7AZ" Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A12022EE8 for ; Fri, 26 Jan 2024 20:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706300682; cv=none; b=bAocQUcWP+Dtm5rbz9ecXSErlUbTpEk4w1Y1xtuUC8o+KRsCAz3HA5Wj0ytCW01wg4tFDIidi/ZKZz/df86oj666rpGIltz+O7w2mEyRMfRq+pg9bjmKbKhezQkWiCZT37YvVWR19DFzguNf3JHHnDYP7TWXmXLy0TfqGkfwxkk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706300682; c=relaxed/simple; bh=aacVZUW/5mGUDYhkkYBJUGL/Gh8Ctd/YyoFEal95FVc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=c28j2h97Ugx/qlv1PbCElQ+HIbnojF4mLUBvlURoiWmM81ZEAmAclRW3c5bnlBZZCKfM1ElqnspjTc1V+bYMr3D26Crq4L89N2RgL1eAdYbya0DkQ8InTSAJo229BXzckZejVe5h+4LvnYuMpCfodw/tktQul4EGw5gqhThAXqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=J64cU7AZ; arc=none smtp.client-ip=91.218.175.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <9f8343c3-7403-4346-9973-1b4421e3ad7d@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1706300677; 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: in-reply-to:in-reply-to:references:references; bh=x8oebQaftQNT6LeEHr7TKK0RzE3dlOdRvYdiT9hpg60=; b=J64cU7AZQmfIOteP1Arx1fIFb/l+unLnQLiVc+IckZodSv/fH3ql/JCtI81f4qbE5AsP17 ROb9SXlR92gYbuPHBDIXPDL4wxR3Cc1Y+h0jmiucTF/uSLsONdhB3B3JNMj2k5jl50vCpa hT3rq4jcrGqua93Dtgvvn4I1yp+6Ll4= Date: Fri, 26 Jan 2024 20:24:29 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v2 2/2] net: stmmac: dwmac-imx: set TSO/TBS TX queues default settings Content-Language: en-US To: Esben Haabendal , netdev@vger.kernel.org, Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Maxime Coquelin Cc: Rohan G Thomas , "Abhishek Chauhan (ABC)" , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <379f79687ca4a7d0394a04d14fb3890ce257e706.1706256158.git.esben@geanix.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: <379f79687ca4a7d0394a04d14fb3890ce257e706.1706256158.git.esben@geanix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 26/01/2024 09:10, Esben Haabendal wrote: > TSO and TBS cannot coexist. For now we set i.MX Ethernet QOS controller to > use the first TX queue with TSO and the rest for TBS. > > TX queues with TBS can support etf qdisc hw offload. > > Signed-off-by: Esben Haabendal > --- > drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c > index 8f730ada71f9..6b65420e11b5 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c > @@ -353,6 +353,10 @@ static int imx_dwmac_probe(struct platform_device *pdev) > if (data->flags & STMMAC_FLAG_HWTSTAMP_CORRECT_LATENCY) > plat_dat->flags |= STMMAC_FLAG_HWTSTAMP_CORRECT_LATENCY; > > + /* Default TX Q0 to use TSO and rest TXQ for TBS */ > + for (int i = 1; i < plat_dat->tx_queues_to_use; i++) > + plat_dat->tx_queues_cfg[i].tbs_en = 1; > + > plat_dat->host_dma_width = dwmac->ops->addr_width; > plat_dat->init = imx_dwmac_init; > plat_dat->exit = imx_dwmac_exit; Reviewed-by: Vadim Fedorenko