From patchwork Wed Oct 23 07:05:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Furong Xu <0x1207@gmail.com> X-Patchwork-Id: 13846607 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91187D2E01B for ; Wed, 23 Oct 2024 07:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XZgSPrHkP+5PHa4TM3CPdf/GMcXQ4aZTX0bTblaWKZw=; b=xTXPd40dPN2YO8GP43GQy6JFRS aTR5qh5ylvfyUcTCMSXv38G6XwU9nLmug6JmSD0r3Hw5mpPvhrNsODpnTWZZrKWNwPgk8FAe5vWWV XQkz7eDBU/9GxLe8VuEnbJ8kffC8QTGLJ3vxBME4Y91JozgbGn/vQj9mUdhKEZ8QuxjzoWNScEQ03 rJvzXYJZv2AeuNr39WfPS2M1upVdSKsOn+/rXOs0YoTnBH0qxat0gcpIc9RMeTfTOdOtQfPvxmZXA 8zLjSNWYDwSSZn0TfB5zL60+ittPrSB+bX3k2EB3r1uYLL9w/6spHcWYODcH7chJcBlGzN0V2Orad k3k3Kb6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3VnZ-0000000DNtd-0ZzE; Wed, 23 Oct 2024 07:28:53 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3VSD-0000000DK2V-0hxb for linux-arm-kernel@lists.infradead.org; Wed, 23 Oct 2024 07:06:52 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-20bb39d97d1so60380975ad.2 for ; Wed, 23 Oct 2024 00:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729667208; x=1730272008; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XZgSPrHkP+5PHa4TM3CPdf/GMcXQ4aZTX0bTblaWKZw=; b=jx4gCQPSB3A3NQhUL496EQviTaHoWWmBMPy7SWQInZVyNcnUGpnu6sl+HnaTb+Ixyy mGNNbVkz/JHNxirohoA8oXWeXUpzbsoS245FkWmH4+GmwETHuMCSBY+66t6Ux+visc53 QSYQ/rzu+uDiL9a4/vSS5q5EGtzmQDo/9dtxfjxR73pVfQoTcFNWdbnNazWdxvB4L/PU /zWoztAi8HMJD7kwrNsObBL4Ac/zwhCp6PuggyT1npVi18In/mEKRNZ3wY4qOrAikZB8 tdGAg7PCm/jTyOy/f4qLFlS4QjpXPW/z5+d3ysM6vkCntb54GRUADVsHXD2xoJztBK/t 1iew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729667208; x=1730272008; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XZgSPrHkP+5PHa4TM3CPdf/GMcXQ4aZTX0bTblaWKZw=; b=vm97//KdylvhhjI8t7mAvrxpBY+wBo7+lh+wQrB99xZcDp9mfCrrqm6s46pbM3iSkm hE6bvWQdx72xmdlNoCpmuZQZjKgpEKW9dL622rcbyMgKMyCiYAqrbCt9UBjBMhBGv7sb /CjW2OhGf1zc45UZOpDa9cOkYfooo2oWTO+W7UpAAe4WNaXlIO4JUsdPOEAwLxs0phIj k3gLCfKYju/XYdw00DzMOTlZibTyI1p+jnBNjL1kAOOoxZ2uOYwLSR15e0tV+cEL4fUN t0fULJ7sD1VPsyxPsK4eXkBSHyOQ7TJC4p9u+F2iiOYBhhNdu2s/xwAy7uH5FNkrq0Wj umfg== X-Forwarded-Encrypted: i=1; AJvYcCVFykz90b83akEkK7rzcKzPzd4TTV1uX1inN8Sktdy0uZcLe10ml3qc8s4yKLcmgbmtaXSurIqiaXNUxRrG41y0@lists.infradead.org X-Gm-Message-State: AOJu0YwGrAYapbcWWvrgsbOG8klAt3nhdFGHYRupGrLlAmr7TFQg+FUy U595A77jwOApB0Fte6ku8201UmsPNfhbgj/2ka84KVvFLq+/l7s0milCrg== X-Google-Smtp-Source: AGHT+IELOcrvReuVJG0FMMFGeSqbhWhh+ymRjXHqXoFCyW7Ap1f6pPPW/73rvH7E6LiAd4sPjI6cXQ== X-Received: by 2002:a17:903:22d1:b0:20c:cd14:a7f3 with SMTP id d9443c01a7336-20fa9e3cdf0mr20205475ad.22.1729667207634; Wed, 23 Oct 2024 00:06:47 -0700 (PDT) Received: from localhost.localdomain ([129.146.253.192]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0c167bsm51981745ad.140.2024.10.23.00.06.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 00:06:47 -0700 (PDT) From: Furong Xu <0x1207@gmail.com> To: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Vladimir Oltean , Andrew Lunn , Simon Horman , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , xfr@outlook.com, Furong Xu <0x1207@gmail.com> Subject: [PATCH net-next v3 6/6] net: stmmac: xgmac: Enable FPE for tc-mqprio/tc-taprio Date: Wed, 23 Oct 2024 15:05:26 +0800 Message-Id: <8ef55767b07be558f89e8a9959e24c87270ec451.1729663066.git.0x1207@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241023_000649_316692_0C5F7D39 X-CRM114-Status: GOOD ( 12.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The FPE on XGMAC is ready, it is time to update dwxgmac_tc_ops to let user configure FPE via tc-mqprio/tc-taprio. Signed-off-by: Furong Xu <0x1207@gmail.com> --- drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c index 75ad2da1a37f..6a79e6a111ed 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c @@ -1290,8 +1290,8 @@ const struct stmmac_tc_ops dwxgmac_tc_ops = { .setup_cls_u32 = tc_setup_cls_u32, .setup_cbs = tc_setup_cbs, .setup_cls = tc_setup_cls, - .setup_taprio = tc_setup_taprio_without_fpe, + .setup_taprio = tc_setup_taprio, .setup_etf = tc_setup_etf, .query_caps = tc_query_caps, - .setup_mqprio = tc_setup_mqprio_unimplemented, + .setup_mqprio = tc_setup_dwmac510_mqprio, };