Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4840003pxv; Tue, 27 Jul 2021 18:37:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzslQKuUrj6RxB+cI1Kl1FSmSPLDXWf1wXOJRbI+a844Sa7T/RlSmUBuG3bd5KyP3/obTIB X-Received: by 2002:a17:906:688c:: with SMTP id n12mr1390767ejr.322.1627436259247; Tue, 27 Jul 2021 18:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627436259; cv=none; d=google.com; s=arc-20160816; b=MJAd2v3QjtRrupRBfW94ctW4AuZb6oWnbG+PdDgJf1pwT6N1uBQjmv1RzCai7ai0NL rIGfI2BQU8nV3AnqdjsT/XZNCeTn85M7+D8Tf0hIaPIPos1dgqJH7KckokovC6qoSnQ2 /9uQ7t2xBVGgosqpI72b6a06JP9UZB9TAGKqh157c/p4rB75BjeJlpLl+x7AqEtt4QTz iXboFJxvF3bgkOOXSlogwCVSTRVloNaenJGHFVP26YxDsdW4/1z3NO1yTUTT66Lzdaiq Ws7jqfpIJeBQtUKCh/hz4gJesyDp/f+iVrPZo6G/BRM1CZ5tFGyGWXg3P3/fp0nIT7N2 aj0A== 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=ESeIPTS91F+xbzWWUrKYtYdUuWj/eolcxwSojut3luM=; b=lQsZjj0f3AsVGmnaG+eq9nIA/rFCTQk/1lIxjxMGhJfQDep9w+daOAY62n+soehFwo ZfuX5jchvul4EIS79Hnytq97wD7nEhogaFQAPoV/jjaLNS968y55KRnXeaVRShOvWQV8 FrbPwR8vfWCwJffHB382RlV+Dwk2gpcUOD8dS1bMYrc0PI3QisCfRAl+4aOCZlxfdz7d ZWbxWl2v2WvAHonJ7y6w3j3+GHxH4OuDJuNIEAlaha08bi/Tsnul1aWSUD4VYkkW5i4r fff/xF3V4yXt7knuWg5JzJzoUx2RFWtEzHykSZVl1UClIqbZVvhMKdVp9rJYg3dvQVog kbyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G2TUjLjc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si5001425ejj.523.2021.07.27.18.37.16; Tue, 27 Jul 2021 18:37:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G2TUjLjc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234793AbhG1BeI (ORCPT + 99 others); Tue, 27 Jul 2021 21:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbhG1BeH (ORCPT ); Tue, 27 Jul 2021 21:34:07 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCFC4C061757; Tue, 27 Jul 2021 18:34:05 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id w10so272822qtj.3; Tue, 27 Jul 2021 18:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ESeIPTS91F+xbzWWUrKYtYdUuWj/eolcxwSojut3luM=; b=G2TUjLjc0k83E9TVyRVmaRadsAn7Z8GEiOcjHLnLA0Frqk8DfTnwMEhc+ziwiXkj1S eZEZaFVelfaK0J4qjW9gAPtkRM5j1Ay6onxio9CQ80kuyfMzbwLiDHCbWxSAxgna8Z7/ xMDP2G0GM2QH6s80y83cPiFt5ED2mm8RfYvNuL7hJImg1m0R54RIzJ1wTx5Fj4pYkBBx zBy2IR/lxtS9wsDX1rnHJDMvN5euXKZcWHFU9PHc/VJugX29+hTxjCXMxelWgixdq1GC kF7+jEXxcxpfT7Izt+RuXjxZHDO1k2PxO/S9T13wozIYVLL4HvwvPn0uCkrFmLJZb48z IQrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ESeIPTS91F+xbzWWUrKYtYdUuWj/eolcxwSojut3luM=; b=KHo0MtGupeu15fF3F68Mr7hUr1gedzlcXkthTPHP9X11tG5yC5Ln0hZxYBKPHYOP9T 0kNdQrcfE++XayHOCYuSUImWMYa1J4Z62mDLG25oz1mSKLnuJ/KhZ20f8ZN23GSVY221 Gg0xb6x0QjPqz/JC71+3WZS1mviXkOLoiM9bmnTtNsodsBeCXvpO1ukfcoh6F2SqwH2m N9qmprrwH5EFl7Qzs2dH29mlN562xl90MtStEadC+Iexo7dq2zK0Rgk0EZ05gN+vwbD4 XTnYJhbFnCAP4EOtMlj0KDlOcB2b4doXbWVTkzqdJA5i4CkMunh5HtneTnXTsaOU9bIb zAiA== X-Gm-Message-State: AOAM5306Uw9dI2BPTUFPPe32kzNF66Li4jZrnMbJSXOCFY8FK0z6p0J0 c1fbKFAkJN2mlyGeP6mKJw== X-Received: by 2002:ac8:110e:: with SMTP id c14mr22267122qtj.76.1627436044968; Tue, 27 Jul 2021 18:34:04 -0700 (PDT) Received: from bytedance.attlocal.net (ec2-52-52-7-82.us-west-1.compute.amazonaws.com. [52.52.7.82]) by smtp.gmail.com with ESMTPSA id n5sm2741054qkp.116.2021.07.27.18.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 18:34:04 -0700 (PDT) From: Peilin Ye To: Shuah Khan , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Cong Wang , Peilin Ye , Peilin Ye Subject: [PATCH RESEND net-next 2/2] tc-testing: Add control-plane selftest for skbmod SKBMOD_F_ECN option Date: Tue, 27 Jul 2021 18:33:40 -0700 Message-Id: <1a2701d93dece40f515a869362be63ae03abbe93.1627434177.git.peilin.ye@bytedance.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peilin Ye Recently we added a new option, SKBMOD_F_ECN, to tc-skbmod(8). Add a control-plane selftest for it. Depends on kernel patch "net/sched: act_skbmod: Add SKBMOD_F_ECN option support", as well as iproute2 patch "tc/skbmod: Introduce SKBMOD_F_ECN option". Reviewed-by: Cong Wang Signed-off-by: Peilin Ye --- .../tc-testing/tc-tests/actions/skbmod.json | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json b/tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json index 6eb4c4f97060..742f2290973e 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json @@ -417,5 +417,29 @@ "teardown": [ "$TC actions flush action skbmod" ] + }, + { + "id": "fe09", + "name": "Add skbmod action to mark ECN bits", + "category": [ + "actions", + "skbmod" + ], + "setup": [ + [ + "$TC actions flush action skbmod", + 0, + 1, + 255 + ] + ], + "cmdUnderTest": "$TC actions add action skbmod ecn", + "expExitCode": "0", + "verifyCmd": "$TC actions get action skbmod index 1", + "matchPattern": "action order [0-9]*: skbmod pipe ecn", + "matchCount": "1", + "teardown": [ + "$TC actions flush action skbmod" + ] } ] -- 2.20.1