Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4513941rdb; Tue, 12 Dec 2023 01:20:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZeNOFQFQ6hgiyWuj4IdLlRHa638iBcvH65DcRkK2RtUGhVOR+raSi8q6rwxNPj+1ZOJLn X-Received: by 2002:a17:90b:1bcb:b0:286:6cc1:3f23 with SMTP id oa11-20020a17090b1bcb00b002866cc13f23mr4581277pjb.90.1702372837229; Tue, 12 Dec 2023 01:20:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702372837; cv=none; d=google.com; s=arc-20160816; b=Cfs9Qo2MM6aJAo2BCVjzXP3lslfQTEagA1fFBe9UkCDGI0+y5ATFkMy0Rzirgs4MhT jSEcMSLFiNyPR7LkR8PY/YeyEUZUg4AdRz2PgJ7QCDzU7EKIhpaC7COxsJYsbIwpzzm1 sp748H8s81oITIVFGlDWSYHS+Ef77i2/i3qH5yoZ7UdmSzvxj39prjzk6syY9TAy2arT EQxI/Ht+S4NPFsmGy3MbcmhxFi3tYe8WQHwIrmxWqOYRJBAdWRnVyXu7aaTtBwHpwMRS dj2raich9gCJwjU1JkUxsDYlE2uNotFTatuQrFWQEASno6uRpdOvaMHBCgXoGRjR7MON kXjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rksCD0YvwRVPdr9cALicJG1jtcdwoAy/N1wXuToJ/sU=; fh=zi/4R2HOxSRdeHwF8NNcVEbjnizuGC029FpZ3TLNt1Y=; b=IZE2KQS3L3I953Gqg0Wu+oGUhHd17MfaDDlA3BIJhpDd82681faNFXqhAxprJ4AZh/ nRCd6vOV+PLnHNSdLTkXlawDk85/ZqBbhjRn2EyKvh5hYo0qu8D0mwvb63J/YWg8vLGT Ut0tU/O+3IC79NkRigpzRrSSif/eY3naoPooDKskcjQ9AYl23hmGARfZ2pN9cjWBraI/ oc0ptICubE3luhlo2vXqaPaYvn8+9FUE0Yhtd3kmIiWei3X/X15knPdwLLX2mpE8fs3w yCUCllVRxUScr+9QgGNaVJzOG/hMk0OdGYyDXSe8XN+MuD84sr5OhksQIszBu50Ej+aD cn3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JxT400n6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q7-20020a17090a68c700b002886a242d11si7614418pjj.130.2023.12.12.01.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 01:20:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JxT400n6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 254C180AC5B7; Tue, 12 Dec 2023 01:20:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346281AbjLLJUW (ORCPT + 99 others); Tue, 12 Dec 2023 04:20:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346304AbjLLJUO (ORCPT ); Tue, 12 Dec 2023 04:20:14 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FE03DB; Tue, 12 Dec 2023 01:20:20 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2ca0715f0faso75163131fa.0; Tue, 12 Dec 2023 01:20:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702372818; x=1702977618; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rksCD0YvwRVPdr9cALicJG1jtcdwoAy/N1wXuToJ/sU=; b=JxT400n6Ifdf+AWxMyE2fNIf0sFC3S0juv/30GItoXMujRL7pnYm4cDdxAUesZVbl2 hw4j9f/6kl9jBUmaOZE9grImZ1G7Eb8HJ54U0q0w1c58sjqUPOJ7pTFToeQT2EUO279A S1caps9sVMdkFBykM0usmt8MxrHjOyYXdHEffNle9p9KjTw6uJP2EqIFR8I2+m8bX1nP e6TJarUqrDbc5tv0+3HsisfuVoyF5c7hZwwX4tghlMSRXJcKmL4cwlp3II/UlfI25nOo uiIt8s/kWDEJZfuS9YMnUHRZEkh0ASyK6kq4ZTDcVHW9ZzUZMn5H9KZKg1yy9I3kMk1i Jkxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702372818; x=1702977618; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rksCD0YvwRVPdr9cALicJG1jtcdwoAy/N1wXuToJ/sU=; b=SFyuneQOKeycOFV3BqrXz5DeklizPaDf20zikgRcqULlHllEBACsuk2aEl4zN7Q9oG RITroujbCZXYRiyh0sU7bQrGwkxoqSuuI2kvpHuWJBdWuHHjtikbyPYSm4f2Z43CEqmE US7DQqZ3NyBie0uzgL8N40/ennXDOzOXcen+5HUd91CGTSOl2B0VHXEoCj8Mh5a9Q5lt zOO+QSwyABSW2e9oVRYXVDfO/isPUTCxJpN4PcqXskHWZxGK5uRRQ74VBMWEoN5xaMLF eDfJquyBcERx9nKIdhfsUv5dJ82gO/dDZCJYIn+s0/BNqKfR0XhG0LLohFq/EPfjOdwx /ZNg== X-Gm-Message-State: AOJu0Yxm3oMEEPr4T6bpvoIFFtmQRlaGP9hFfHpi1b+12Rq1OPHhAv+K aIJWg2K/F/heqmatImZZClQ= X-Received: by 2002:a2e:711:0:b0:2cc:1dc8:af0b with SMTP id 17-20020a2e0711000000b002cc1dc8af0bmr1600707ljh.36.1702372818014; Tue, 12 Dec 2023 01:20:18 -0800 (PST) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id ce26-20020a2eab1a000000b002ca00b027ccsm1447690ljb.123.2023.12.12.01.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 01:20:17 -0800 (PST) Date: Tue, 12 Dec 2023 12:20:15 +0300 From: Serge Semin To: Jakub Kicinski Cc: Jianheng Zhang , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Paolo Abeni , Maxime Coquelin , "open list:STMMAC ETHERNET DRIVER" , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" , open list , James Li , Martin McKenny Subject: Re: [PATCH net-next] net: stmmac: xgmac3+: add FPE handshaking support Message-ID: References: <20231211145944.0be51404@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231211145944.0be51404@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 01:20:36 -0800 (PST) On Mon, Dec 11, 2023 at 02:59:44PM -0800, Jakub Kicinski wrote: > On Mon, 11 Dec 2023 14:14:00 +0300 Serge Semin wrote: > > Although in this case AFAICS the implementation is simpler and the > > only difference is in the CSR offset and the frame preemption residue > > queue ID setting. All of that can be easily solved in the same way as > > it was done for EST (see the link above). > > > > Jakub, what do you think? > > Yup, less code duplication would be great. Highest prio, tho, is to > focus on Vladimir's comment around this driver seemingly implementing > FPE but not using the common ethtool APIs to configure it, yet :( Fully agree. If that required to refactor the currently implemented handshaking algo (looking not that safe and clumsy a bit), it would have been even better. Although I guess refactoring the code duplication could be done as a preparation patch anyway or as a patch which would convert the feature-specific callbacks to be suitable for the 802.3 MAC Merge layer. -Serge(y)