Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp703020rwb; Thu, 8 Dec 2022 01:40:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4uYe5WN3W6D7ftxs9y7N8ux0iXRvCpJr6z+hKGSrWb5X4VlVhsR0VIhNo66iPX86xxrSM7 X-Received: by 2002:a17:906:240f:b0:7c0:f7b0:fbbb with SMTP id z15-20020a170906240f00b007c0f7b0fbbbmr12937206eja.266.1670492458594; Thu, 08 Dec 2022 01:40:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670492458; cv=none; d=google.com; s=arc-20160816; b=XYI2gaZA4IEAVBVe2aCh5pCEiEZIGz/YAsRdSko+hHVUhsJypejksW+5K21VAkMZfo tgqJsptK7S0cwg7IXKA7w838aKTdyYWwdPW+eiHDaGyxgXUSyWtkHrZZGL8EDTt5IVNx MCtg5jASoBFtPvPJqz1HrucKKh55hx9KU7XTik4a6zMHT8c9xO05OLHTZLLdffANxjE9 UleLWcTR6GQ+Z2DVvMLtN7SZ3drEB5OiTTeam9ibPGmrCi7MrZk3+1R4NGFqb1OFzbMm NRM+u1wCSRcuXAMaZvFyiBCULTHB4tMB1Iu5tZmXnkd7CVQTfFr1zMTl4iXjHR33o/X/ opGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1R2dyYxzFhTIG+A8uIWMszimPhlmvmzOf72P/mWZG20=; b=C64UxNJ5qv9Hi/TUQY9guYfxeATr6iQosayMpHrSt3DwSxrSgSZUu5ASbwt+P4HmHh BE2u7m5fw73VUuF0dhjAf+azwEP+ermAFl2IQRgxmswGqoG4y2H/RolW0dtNPKuFgLpf a060fSWxSlSlujA/c7cTIa4x6QLUi5hMfBSEvaDq/DQPiEW8XrP+l7B6ptqtC1AsYRHm /EW1KUQ/Z52QIsfa7BzGUpjIw7PFBOBXDX2LcGcxmhiIZzXBqs9qBfDhNd+YqOb2N49s uCddRADMs1fQMuQ5VanO6b30sBfFfeGvkT82W/3e9goMmXVrIALIM/i3nEGmc/1y1Kau XuQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=WWzaQC5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c23-20020a056402121700b0046aaf5398c8si5541871edw.174.2022.12.08.01.40.41; Thu, 08 Dec 2022 01:40:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=WWzaQC5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229709AbiLHJZ3 (ORCPT + 72 others); Thu, 8 Dec 2022 04:25:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbiLHJZX (ORCPT ); Thu, 8 Dec 2022 04:25:23 -0500 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33D355E3C6; Thu, 8 Dec 2022 01:25:22 -0800 (PST) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id E53C7121; Thu, 8 Dec 2022 10:25:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1670491520; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1R2dyYxzFhTIG+A8uIWMszimPhlmvmzOf72P/mWZG20=; b=WWzaQC5FSCThOD80qrlOnaDg5TEe90uAYe9upqXMtTsWHeZ6xq37w6pbdVjNevmxxqv+lx yfnO/ipjt1LPdDxrqPFh1vyz1Gfps5GR1FETtCt67iXNoWvzCsTNmI57u1+uWTNZy04Lfp zv99DXRcq7a+AlqsGYYzcGLN3HLx1RL3d9zaXXOGUh2JuVH9+lX+IZgkv2ziHbdyNIPRgT nXD1nubC7NPIR4q3Zt3bzzt3yBE+cxFxckF6XdUTq0olqnkumOs4zcXMFt1WLEqilkBWDz /+uA0B312rzUUcPnVUMY71cE48bQiXnHa4XDpiYgtp65KrqH+eRVpVTXy0aBqQ== From: Michael Walle To: horatiu.vultur@microchip.com Cc: 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, olteanv@gmail.com, pabeni@redhat.com, richardcochran@gmail.com, michael@walle.cc Subject: Re: [PATCH net-next v3 4/4] net: lan966x: Add ptp trap rules Date: Thu, 8 Dec 2022 10:25:11 +0100 Message-Id: <20221208092511.4122746-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221203104348.1749811-5-horatiu.vultur@microchip.com> References: <20221203104348.1749811-5-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Hi Horatiu, > Currently lan966x, doesn't allow to run PTP over interfaces that are > part of the bridge. The reason is when the lan966x was receiving a > PTP frame (regardless if L2/IPv4/IPv6) the HW it would flood this > frame. > Now that it is possible to add VCAP rules to the HW, such to trap these > frames to the CPU, it is possible to run PTP also over interfaces that > are part of the bridge. This gives me: # /etc/init.d/S65ptp4l start Starting linuxptp daemon: OK [ 44.136870] vcap_val_rule:1678: keyset was not updated: -22 [ 44.140196] vcap_val_rule:1678: keyset was not updated: -22 # # ptp4l -v 3.1.1 # uname -a Linux buildroot 6.1.0-rc8-next-20221208+ #924 SMP Thu Dec 8 10:08:58 CET 2022 armv7l GNU/Linux I don't know whats going on, but I'm happy to help with debugging with some guidance. -michael