Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6013303iob; Tue, 10 May 2022 08:28:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjzhixx//kNo4h9ehByKzNAqbB9FMCiH5lxO9FBfUiXUgNHkzPalK5MT52X3QMfXQNIgXb X-Received: by 2002:a17:90b:384d:b0:1dc:a631:e356 with SMTP id nl13-20020a17090b384d00b001dca631e356mr532561pjb.82.1652196503213; Tue, 10 May 2022 08:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652196503; cv=none; d=google.com; s=arc-20160816; b=BOimy/UvN3HCj15OBPIwJI4VYpeOhQESP782equx7rwiliaoipbbbvkNsmB/dS4lKE si/wMIKNoOe9k1dF4u0MX6IoFTxw/ea76DV85A3pqXRhdtm0fd+XP+UtYKd6PomaTlbW aVYp+Sls0ckloBxGMdJyphRrSQkfGBfv1+ierpGsChXt7dbbmZhhbGFmfHq/tTieUAzc dt1PbmisZKkF+phyYdspnG/TioTs6f2FpCk0QSbaPUu5Wm0l6nIdA+V5pEtaKALMnymS zqHJxQoxc3zYgeb+WqG/9q7Lu/nMCpQ80n8OUz8Auf9OigAGNqLMTTWB9BEkiyYjcm5x GjLA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wRl0FSQvIsvU0ovS5wQSFr+bD6ub5jHGQ9uU4X+fEi8=; b=aJ2psNQBEKqWh0014bVvsVFo29gyPUkACLLPSydPcQYH0RIurJ4S9GDmi9N2LW/zAb 2ISaVVH4MsTZksx1tc5kQyUO+2prmKU3o3O3RrV8XSeZBQheYOuldwgpdVqbqlUaRyT0 TT2Arpjk8bp6V3VeSrG+CBmNot/PPk79hXZg9Ej/JhfSfFxl3i6jfOO/9GKWyUG4/d6d rXFPyZTT7JhsLSituq+SM3I9DM9QLK2qiFmPofGrn833f0OnhhFz/152cDp22UwKrGJa h05DPSEAlkVzznKq0gcplcBqRqj41/cN+qNOtiNJ9zQAlgFxXdbuKWipUi4tykdhP50O Gceg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KvgYP1V9; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bh5-20020a056a02020500b003c1833574eesi18908278pgb.11.2022.05.10.08.28.06; Tue, 10 May 2022 08:28:23 -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=@linuxfoundation.org header.s=korg header.b=KvgYP1V9; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244538AbiEJOBH (ORCPT + 99 others); Tue, 10 May 2022 10:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245125AbiEJNid (ORCPT ); Tue, 10 May 2022 09:38:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4094E244F24; Tue, 10 May 2022 06:27:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C8A81615C8; Tue, 10 May 2022 13:27:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA0D3C385A6; Tue, 10 May 2022 13:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652189233; bh=YmCIwfczu1mXcczkqwoETbSEQm5ZZgmkMLoLZWVLehw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KvgYP1V9xCLzqVv6Kc8UAvyDWIOV5JJjKnHsnljLp/yS/SYLPHwNz9lIXUI8gz+ok /wylx/0/4nAPfQVdvl34A2GHgIUCXYwD/qjxDGgLxnAFbtKK6ZbvGY0IbkO0DCFR+o IDZfridahsvocdSR/IbG75s1UwQ8j2Sv97VbPtSk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Oltean , Ido Schimmel , Jakub Kicinski Subject: [PATCH 5.10 54/70] selftests: ocelot: tc_flower_chains: specify conform-exceed action for policer Date: Tue, 10 May 2022 15:08:13 +0200 Message-Id: <20220510130734.447328140@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130732.861729621@linuxfoundation.org> References: <20220510130732.861729621@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: Vladimir Oltean commit 5a7c5f70c743c6cf32b44b05bd6b19d4ad82f49d upstream. As discussed here with Ido Schimmel: https://patchwork.kernel.org/project/netdevbpf/patch/20220224102908.5255-2-jianbol@nvidia.com/ the default conform-exceed action is "reclassify", for a reason we don't really understand. The point is that hardware can't offload that police action, so not specifying "conform-exceed" was always wrong, even though the command used to work in hardware (but not in software) until the kernel started adding validation for it. Fix the command used by the selftest by making the policer drop on exceed, and pass the packet to the next action (goto) on conform. Fixes: 8cd6b020b644 ("selftests: ocelot: add some example VCAP IS1, IS2 and ES0 tc offloads") Signed-off-by: Vladimir Oltean Reviewed-by: Ido Schimmel Link: https://lore.kernel.org/r/20220503121428.842906-1-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh +++ b/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh @@ -185,7 +185,7 @@ setup_prepare() tc filter add dev $eth0 ingress chain $(IS2 0 0) pref 1 \ protocol ipv4 flower skip_sw ip_proto udp dst_port 5201 \ - action police rate 50mbit burst 64k \ + action police rate 50mbit burst 64k conform-exceed drop/pipe \ action goto chain $(IS2 1 0) }