Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp461972rwi; Mon, 31 Oct 2022 03:52:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wyi2R/dVUtTQ8GhRodc9QoRp5OgtOOEI91a3wyKqYPFLPsd4o6hRbBut3kq0v31zY2VX2 X-Received: by 2002:a17:902:efc7:b0:187:c49:5a0a with SMTP id ja7-20020a170902efc700b001870c495a0amr10327793plb.97.1667213550243; Mon, 31 Oct 2022 03:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667213550; cv=none; d=google.com; s=arc-20160816; b=d7tsrhy2gsq/FIYYLVWmHLQGKOZZAhtkN8h669SVrBXsTEFN7x4S1ErPivXoLWKAqg MbQjHSgIDrjNdqpJoc3r7iobiWD+AsWx7+X9vbboP25BT0RuuuYAwbcMggMKZ4BD4Op3 6jm/1DlKNVwqVSjYJ0o8tugIYEb7EBuJQPl12lZbNbAMRNsvinr5bIVXVBpOraurmaAp UtlefojyBB/UkxvYeqxdb40HutBVnlDuhk/nfLM6o9h/1SEwkxTA06yoYZHKwWzDwymP DE8MLD6Ob2DjPYBWmTYeXL/yhJmIMaahsUjRluDqFK6YLWaGCdIPfNyR5+g7IkWuC5ox EVGA== 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:organization:message-id:subject:cc:to:from:date :dkim-signature; bh=mLyuDMVnPMQLxfqSCOA6WKTcHcZPNlbCeVpGI+Kz9Mc=; b=TGvz1gr64hgjB7rfQGBtH2om/M4HvYpwjwPx6jRDRohm1KFuzK6BTNBdQbTyUYc16a IWtU8YdnfVEU2weqNbvscjClZqR5TF4zjL1i/2Ey8X8RA/qeZa/7276hk9RCHrgKvV+A wYpZcSC2L8Kpg4R3M8pwfTC5HnyqIDCN1bOIl8ucGGci8YKgn1NZ6mmsgG0rzAXVefSA UtCOcPRMerVSL1Ud9azkF2X+0/Ezoc8DWySv3lY8rp/B3ICNR+AVYjv8DtzhB0X5+Egz 7q2643TScEnIZEG7VxiFMtejtcYr0LU5HbL+ooubjJ6iymv23vdpBRcQD+vkvYsCX6SL Z/Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bbpjQCMN; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a6541ca000000b0045287c1978esi7609118pgq.402.2022.10.31.03.52.17; Mon, 31 Oct 2022 03:52:30 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=bbpjQCMN; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbiJaKoQ (ORCPT + 98 others); Mon, 31 Oct 2022 06:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbiJaKoO (ORCPT ); Mon, 31 Oct 2022 06:44:14 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08D6AD98; Mon, 31 Oct 2022 03:44:13 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id k8so15386331wrh.1; Mon, 31 Oct 2022 03:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references :organization:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=mLyuDMVnPMQLxfqSCOA6WKTcHcZPNlbCeVpGI+Kz9Mc=; b=bbpjQCMNu35fkuIAQRiS6l6lItaINBwkOH6pRZO/wK8bLbu+dwSy6VF6GCeWHX9hg6 SwInEK3dqS2xCRBmIngFPtYXUjHEgEKYCp9TdOuNqINjDLwoYT1PWeDABJuChodF3IHp 1NH3eF043snO92fCIe/xfrlP2QjrnXfE6ADMzLisTR8a2zs873kkjx65WpDL7ZSJegsf avtTuBdElqIdxouCje9IphNPjX+3ApEvyd8chxTyN4nQfLOKwaDL4UgMF+eqCPgdA7nQ QA2stDqxwk4LbU+wE0VVX3z/3Jk6G8q7TUk9vburWit49AhpyPRUkE9jyfdyyav/YzhD WbyQ== 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 :organization:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=mLyuDMVnPMQLxfqSCOA6WKTcHcZPNlbCeVpGI+Kz9Mc=; b=JeywMZ1cxCrOk9kbrhlhzwyVCVv3xI3i1Chh+DwF/Lsa+blw80Zq8XHWViSyHtG31j uTxTR1OY4KMa6xwGYZUY3m3wCFTxnNwkUULFJ+gRfjDuD9eO7AUWr1btVP0LhBDrrF6M IuOD/IlWi7AtliA8Hibci3kOFxJWJNW4JvZyK5qEY/nl/Tbg77np7QurXWcdRcyvp6m4 ChWyyKZB1vEpoV0bj18LxucT/atmGVJ4Yp/LT07gIsvAXNSrY9avahT1Eyyu322DAUJR FYEF3CvfWv63jNFc2X7Ud6MCqdJVoj768L1jP6C3WoI5qMWyiRlxvk4E6anjfm+4s5F+ UaRA== X-Gm-Message-State: ACrzQf2slWdAcjeoJH4PRx3XLcOyk+dxjq8PY1T/guKBRe0JU0GR/NM0 dNiPDo2QOCed02KGVB5p3mw= X-Received: by 2002:a05:6000:887:b0:21e:24a0:f302 with SMTP id ca7-20020a056000088700b0021e24a0f302mr7315795wrb.466.1667213051475; Mon, 31 Oct 2022 03:44:11 -0700 (PDT) Received: from wse-c0155 (static-193-12-47-89.cust.tele2.se. [193.12.47.89]) by smtp.gmail.com with ESMTPSA id q8-20020a05600c46c800b003b4868eb71bsm6447707wmo.25.2022.10.31.03.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 03:44:10 -0700 (PDT) Date: Mon, 31 Oct 2022 11:44:09 +0100 From: Casper Andersson To: Steen Hegelund Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , UNGLinuxDriver@microchip.com, Randy Dunlap , Russell King , Wan Jiabing , Nathan Huckleberry , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Machon , Horatiu Vultur , Lars Povlsen Subject: Re: [PATCH net-next v2 2/5] net: microchip: sparx5: Adding more tc flower keys for the IS2 VCAP Message-ID: <20221031103747.uk76tudphqdo6uto@wse-c0155> Organization: Westermo Network Technologies AB References: <20221028144540.3344995-1-steen.hegelund@microchip.com> <20221028144540.3344995-3-steen.hegelund@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221028144540.3344995-3-steen.hegelund@microchip.com> 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_NONE,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 Steen, On 2022-10-28 16:45, Steen Hegelund wrote: > - IPv4 Addresses > tc filter add dev eth12 ingress chain 8000000 prio 12 handle 12 \ > protocol ip flower skip_sw dst_ip 1.0.1.1 src_ip 2.0.2.2 \ > action trap I'm not able to get this working on PCB135. I tested the VLAN tags and did not work either (did not test the rest). The example from the previous patch series doesn't work either after applying this series. tc qdisc add dev eth3 clsact tc filter add dev eth3 ingress chain 8000000 prio 10 handle 10 \ protocol all flower skip_sw \ dst_mac 0a:0b:0c:0d:0e:0f \ src_mac 2:0:0:0:0:1 \ action trap This example was provided in your last patch series and worked earlier. My setup is PC-eth0 -> PCB135-eth3 and I use the following EasyFrames command to send packets: ef tx eth0 rep 50 eth smac 02:00:00:00:00:01 dmac 0a:0b:0c:0d:0e:0f IPv4: tc qdisc add dev eth3 clsact tc filter add dev eth3 ingress chain 8000000 prio 12 handle 12 \ protocol ip flower skip_sw dst_ip 1.0.1.1 src_ip 2.0.2.2 \ action trap ef tx eth0 rep 50 eth smac 02:00:00:00:00:01 dmac 0a:0b:0c:0d:0e:0f ipv4 dip 1.0.1.1 sip 2.0.2.2 Same setup as above and I can't get this to work either. I'm using tcpdump to watch the interface to see if the packets are being trapped or not. Changing the packets' dmac to broadcast lets me see the packets so I don't have any issue with the setup. BR, Casper