Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp550867lqm; Wed, 1 May 2024 08:33:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1BcTdd+LhQtRhu5szKDPvmjdzRm2FGWIeV+F7AjbYi2cI+Zg6UwnUEaX0/Fntl/9GU2GmEKkdvvkmmkX3113meZQ1dLcL7C7bPf4HiA== X-Google-Smtp-Source: AGHT+IGCkckTckPyn7Ez1LQpz6YOik7Fm0tXV5/AjCqdCVbpsSul4/ir8Bza1ASIQzbPE7/ET2sx X-Received: by 2002:a17:906:b351:b0:a59:3d94:19b6 with SMTP id cd17-20020a170906b35100b00a593d9419b6mr1910490ejb.73.1714577603579; Wed, 01 May 2024 08:33:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714577603; cv=pass; d=google.com; s=arc-20160816; b=hrOmnvCgXRV/37iTUIiaJFTN2ExSX6hbkPbnjuHv3K7mheBtqtyOe4os19gdK0gojs xMJhePUTAL3ALLe6uRxGjN9YeF1ALdEo/llhWENV3gXutAGkX5YzTzea9b68YEEmCe0P Q5gET1yttkK36bQv9zJsghFBy8AQu3V6+5T39IY1ycbSsaqu9wJziVJnb2iHbIqV4ycv jT/47b9Mcxrd38wZ+Y43uZKTA4QRccAXR5+l3kflonDnMypitidOCK5qn4WL+qazCWSt M4LaxZJY+pBTwD8Vi9jaGd1ET6iCjQISP65kJiZ8f6ZMS4MlE8yw36y1VilCReGG4XcF eDhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Xr2TVv1YywLgVTPqg2VeEacJyKr5M4Q8Fh9yFEFUuPE=; fh=MXpRb+qYoRMa4ictyuhMTLUj5XkG3YqjkpdP7qrLvaA=; b=DtuIHf+yoaMIMsCOVKkKb0NCsvm6zTbSfCdVwxgzlXBzKg8Nt5A7HS3Dmas9vTb7eZ 9ZBnAR3Fvw4fIN8mu/U+eHQOs/nDfo+WrgWBaUCmfsBUjKI/PqP/yOslYzlx65RLR26g HlqK0jzGSWMItv+8vNldAneVW03bjfQR3SAubq9amEWvLyoWsBZJe6r6wz2aWwclCmKi NLCw/nIwMyYzv+L4jvScObFfwhSEpWBMAR6EkA5YzfR1+p4QiWHWipN95SfvkyfJv66w fRPMdQHL2y7FximEwqMRRGgehVLarEJOsHsREMPb4culXUPK4uoT2nUPf6WT0zg+CGo2 FmTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ehRJ8Np1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165462-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z1-20020a17090655c100b00a51dfabe269si16388284ejp.545.2024.05.01.08.33.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 08:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165462-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ehRJ8Np1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165462-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4FD971F25C2E for ; Wed, 1 May 2024 15:24:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6F0212FF75; Wed, 1 May 2024 15:19:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ehRJ8Np1" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DCE7A12F58F; Wed, 1 May 2024 15:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714576744; cv=none; b=C3tVLq71KWSkZKqfCV1lpp8DJFUGGBxtXQqgMt0QnNrSbHq/y+fHNkbGjnPwmc6NA+uGIkbYclTW+wTPkckKIM8cLZmS/+sXEjaF9xN4Pg/oFldonUAuOLaPVR8RXa6l6NZUj8stFu+1inSzhSJAYpNurayDezc22guol8V72nA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714576744; c=relaxed/simple; bh=ODOt5F2jmlQNOAtHuc9ZH0qnQBxpoOZ+nGaBsWattgA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bjmOcvgGrkpiaZiEetYq3E7QES0a5o41ke0RVpTlgTOI+WceLNfK3xk18yGK6bT2zJTWY3hlxSA5hXenXvekkKv7ZjZkkgE4rmbN/DbanyPsW64RkTl+cmJonLmgsGrDRohzPTtIzTLTgLO5zpRL3uOjrKNRnbOnKzdbQOuVDyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ehRJ8Np1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9B24C072AA; Wed, 1 May 2024 15:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714576743; bh=ODOt5F2jmlQNOAtHuc9ZH0qnQBxpoOZ+nGaBsWattgA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ehRJ8Np1mBScJdT5V1GmRfk0V/zG9p7ZMk4iaxIOrH7Kt5EXAlCHIlOoURGmNkWGJ ZNHOy5iJSy0z+wmupcHRtCOU9da+as4ZsqwYNvHebxQStZ0w4SL3uYs2hM99Yjd1B7 hrFb9gx+dElj/OZ7PGpBPna6dlePvokisra5LC/er99gZ6PENVUdYTVLmfZ6Qysvha s8lc0iPjzGkcS7Q7dM8XKEewDTMzhjD/GUrw2P3P1OTL1VMF8u2QfJWq7PATfwV4C2 jNLctVNY8f/Az+FbVK0rKADZC1tX/D2S5awFr05wrFoJAUsXHdWTvyirVmhUHndeNA 725TnEOgKTtcw== Date: Wed, 1 May 2024 16:17:26 +0100 From: Simon Horman To: MD Danish Anwar Cc: Dan Carpenter , Andrew Lunn , Jan Kiszka , Niklas Schnelle , Randy Dunlap , Diogo Ivo , Wolfram Sang , Vignesh Raghavendra , Richard Cochran , Roger Quadros , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, srk@ti.com, r-gunasekaran@ti.com, Roger Quadros , Vinicius Costa Gomes , Vladimir Oltean Subject: Re: [PATCH net-next v5] net: ti: icssg_prueth: add TAPRIO offload support Message-ID: <20240501151726.GU2575892@kernel.org> References: <20240429103022.808161-1-danishanwar@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240429103022.808161-1-danishanwar@ti.com> On Mon, Apr 29, 2024 at 04:00:22PM +0530, MD Danish Anwar wrote: > From: Roger Quadros > > ICSSG dual-emac f/w supports Enhanced Scheduled Traffic (EST – defined > in P802.1Qbv/D2.2 that later got included in IEEE 802.1Q-2018) > configuration. EST allows express queue traffic to be scheduled > (placed) on the wire at specific repeatable time intervals. In > Linux kernel, EST configuration is done through tc command and > the taprio scheduler in the net core implements a software only > scheduler (SCH_TAPRIO). If the NIC is capable of EST configuration, > user indicate "flag 2" in the command which is then parsed by > taprio scheduler in net core and indicate that the command is to > be offloaded to h/w. taprio then offloads the command to the > driver by calling ndo_setup_tc() ndo ops. This patch implements > ndo_setup_tc() to offload EST configuration to ICSSG. > > Also move icss_iep structure and it's dependencies to icss_iep.h in > order to access iep->def_inc from driver files. > > Signed-off-by: Roger Quadros > Signed-off-by: Vignesh Raghavendra > Signed-off-by: MD Danish Anwar Reviewed-by: Simon Horman