From mboxrd@z Thu Jan 1 00:00:00 1970 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 62E02C4332F for ; Fri, 9 Dec 2022 14:57:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XV8QR1+vGfIYXJswxkqb33mCpzu+LP8Rw0eNvm9dPX8=; b=M71wrqrY1tjfsd cKSM0ib6zsxMkHDeDdQgs8qvsUVwm6p1hkr9ZxHDFx6Xo0ZUqkDf/iXg0+kqLp4eoYEaJX1ujeG36 e18r7ygRS3u6+Mp/tIRMiAX0Bz1NPkgW9mG7SBcFNti+GYa9YrnLfPeVOaHPm/YVXMsY3LBqEVC97 igsqOcTbZTJsD137boL494LVPFmxz56ISrxl71azAmDNOraqBuGY5rUdP1Sb/VZfaEtek/UG64rTq XwR6pCNJwJ1vM7sNn3tlF6UL25UrbMiqJYkNj6+OcxGhJeBQWZTt2y17xmcwtiuGknrzlDemjNlMY gZTu2PA3e9CkdHdyqelA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3ent-008g5D-Ea; Fri, 09 Dec 2022 14:56:45 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3enq-008fxp-Ka for linux-arm-kernel@lists.infradead.org; Fri, 09 Dec 2022 14:56:44 +0000 Received: by mail-ej1-x629.google.com with SMTP id n20so12173668ejh.0 for ; Fri, 09 Dec 2022 06:56:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=38seMM65FTVG2HrDf+A2e48QjUk8/7Rk1mythBxtZzM=; b=jZiDRSNJH45vEpidZG95Qi0B90Y544oJZSeGoGPYzjh0+BoD8Ir2voKoJks/UKi7d8 XirgTC1iZI7wYxPxpHCsnAbvByEVx3Dk5BoxlIn4KK16MfxUv2eQ7ekNpOjAuTPp4Uzv 7kbGZM63IFmmnLnpW2iP2vsXWlQdnBLz/O+qbUNUdAk4fnpS0c4DsdgfCMNJjATt35wR C5XUurKR70rI/TXtCldutKk8LM6OIOvmHhBriw89p5wkyOlYX0jk2Tu7wdO1wQwyx7Kg u7s8JeZ2WhVDW1UuPpOdvqujeLDxN486RTKs7CN0++2M+BAXy2F4QUcreGZDvIribplb fDTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=38seMM65FTVG2HrDf+A2e48QjUk8/7Rk1mythBxtZzM=; b=roX3f6T7Ys1mbm1q++Y9IQpFem6yYChZxe0pV4SsvT1Uj0MvoCD4mNcZu46XehReuj R3S/n8/NcnvA4AXe7YrXT+aaA4bZfs6SySPF0JSytGTIY+1YyVc/9t/b30HezX9iUZrg QhJoIa7YkoVBzhfRtTNd/HNoiGnDulcZnbj3XUMXke/KNk0qrIJvWizIttLdRAa4bqVP vo86oJy4o3b2z0UJ8dcogbPQyp8wb2XEhNB5KCyq5iLk6jwlkqw1GSoG20JMVXCwETZj E7fiNSkZXPa+iUfC2uBZ4GQBUyf+kHLTwDEmdhC6wIHgIBs7POoYyhJeONvA/d5lWYVO LTGg== X-Gm-Message-State: ANoB5plY3ma7N94gJJb8NvE3AMlt/3QkJrt22ZbNzlInsAnpErvnlR9O yP1ZL8zaZjBAVMPCJ+nocPs= X-Google-Smtp-Source: AA0mqf67+z8t6p2hbugUD1aLy9UVgh8X/vuQodI8ozIgYtuhnaU1E2Wnmyl+qdU+VHGvbZHKEwJmqA== X-Received: by 2002:a17:906:8241:b0:7be:1ce1:ce3d with SMTP id f1-20020a170906824100b007be1ce1ce3dmr4689369ejx.66.1670597800295; Fri, 09 Dec 2022 06:56:40 -0800 (PST) Received: from skbuf ([188.27.185.190]) by smtp.gmail.com with ESMTPSA id b1-20020a1709063ca100b007adaca75bd0sm26310ejh.179.2022.12.09.06.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 06:56:39 -0800 (PST) Date: Fri, 9 Dec 2022 16:56:37 +0200 From: Vladimir Oltean To: Horatiu Vultur Cc: Michael Walle , Steen.Hegelund@microchip.com, UNGLinuxDriver@microchip.com, daniel.machon@microchip.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, lars.povlsen@microchip.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, richardcochran@gmail.com Subject: Re: [PATCH net-next v3 4/4] net: lan966x: Add ptp trap rules Message-ID: <20221209145637.nr6favnsofmwo45s@skbuf> References: <20221208130444.xshazhpg4e2utvjs@soft-dev3-1> <20221209092904.asgka7zttvdtijub@soft-dev3-1> <20221209125857.yhsqt4nj5kmavhmc@soft-dev3-1> <20221209125611.m5cp3depjigs7452@skbuf> <20221209142058.ww7aijhsr76y3h2t@soft-dev3-1> <20221209144328.m54ksmoeitmcjo5f@skbuf> <20221209145720.ahjmercylzqo5tla@soft-dev3-1> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221209145720.ahjmercylzqo5tla@soft-dev3-1> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221209_065642_734360_AD3EBD47 X-CRM114-Status: GOOD ( 17.81 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Dec 09, 2022 at 03:57:20PM +0100, Horatiu Vultur wrote: > The 12/09/2022 16:43, Vladimir Oltean wrote: > > > > On Fri, Dec 09, 2022 at 03:20:58PM +0100, Horatiu Vultur wrote: > > > On ocelot, the vcap is enabled at port initialization, while on other > > > platforms(lan966x and sparx5) you have the option to enable or disable. > > > > Even if that wasn't the case, I'd still consider enabling/disabling VCAP > > lookups privately in the ocelot driver when there are non-tc users of > > traps, instead of requiring users to do anything with tc. > > I was thinking also about this, such the ptp to enable the VCAP > privately. But then the issue would be if a user adds entries using tc > and then start ptp, then suddently the rules that were added using tc > could be hit. That is the reason why expected the user to enable the > tcam manually. I don't understand, tc rules which do what? Why would those rules only be hit after PTP is enabled and not before? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel