Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2815896pxy; Tue, 3 Aug 2021 16:24:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGtpsu694VY6vgSA0GJOEDpMUMdTATxaUMqK3FuoyddklDLE37con8ErxFUdJMCkuzrDa8 X-Received: by 2002:a17:906:5959:: with SMTP id g25mr22389797ejr.243.1628033056142; Tue, 03 Aug 2021 16:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628033056; cv=none; d=google.com; s=arc-20160816; b=wcg9lDqU5QfKa3myzf6n6+4qTyLy2k09yPaspWecVvljBDAXQBYPjP9EYxMC26eMDP xUZeV1uCo6AkaKpk0TswO3W6QnZi2LXGWCqVnZDvabHlyNAUvEK6fL9cwMXMDg5Vmp2X ZVoa0Jykt95hInVIM69VOE0dCkbkm/qcGNdd6O+Hye/Y9cDhZdIYA/hpqoszlOQKfUFn +9u5MI59I2WiUY9lXX/VmRZmTU1MErBI1HjUecv2HlAOv4SpLwaSWphU1x2jNpdNQcnp U+5Fdq94bBrJtw0OJOPCXPVe5+ljUlGh1VrUMi94JK9hWYC9zdPL6P+9WgajBd/Q2F51 11pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=M+6JKKf52HVxLfHy469OKCbdB/YMhbbhQWcIdOqleVw=; b=rQ/l3j6SErDJ4AwQuG00pzzUnw0sMA/+XBtO+pwRUUUpdd2wakYcVUHy8YQ0R56lnI xDcUlSYLlgqHyb0IEyZ/zoThjGu8pmbXm2pYIqYJtQbsGoB+tWRuHDFSUf2U9/dJUF1E z2dZPkH+M7pWT9qvEqw351CMJO4pEi8O50Nti7fO2vcX6pHtPxGqjpyTb8UYKCmdITQR Dbq8oD3jOPXs/RmgEEEDOgQTgcxreatC2jjQcH3D5EOoOfnckBDaiZ/PyQm462jd6HOi EsyrPROqSsq0akut8XkgCf+YvDnaj9UhrDPNcMum/ibqMIehG0zv8GxXiisQ84AMaCrG KXTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GqAK/nN5"; 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 ka17si234253ejc.609.2021.08.03.16.23.53; Tue, 03 Aug 2021 16:24:16 -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="GqAK/nN5"; 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 S232515AbhHCWVk (ORCPT + 99 others); Tue, 3 Aug 2021 18:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbhHCWVj (ORCPT ); Tue, 3 Aug 2021 18:21:39 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2D18C061757; Tue, 3 Aug 2021 15:21:26 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id e2-20020a17090a4a02b029016f3020d867so813156pjh.3; Tue, 03 Aug 2021 15:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M+6JKKf52HVxLfHy469OKCbdB/YMhbbhQWcIdOqleVw=; b=GqAK/nN5486TcHJjWMdZkgyfnxp3LUyPktr4rN/+JjFlwDTMYBEsBxeDDAzcw+sGBL +jgkqhjB4PDxNMbn3w4qCSMrups0bFgD2OmG7P2OSdK3Hrqsjkl4g/3qf8cpP3R0PZG9 jwA734tjghQtz/1kJwOCDwymO26kX9d/90hEYvA9laYoLoTkYGYgwdzQKyAmMMswuyTN MpnxXaxczvr4qeuvdwXIXoRVUtIZGHdH0GuKs2Dw4mjlf1gyxUcxHG60TJ4zHs47XIux WOKzxCHNYC8zx8y5mOn8QrlxRyDvRxYG4dXS5on9gR2RRj6wTjsB2KBB7/8yhb/t4/xB mCZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M+6JKKf52HVxLfHy469OKCbdB/YMhbbhQWcIdOqleVw=; b=c8LzxlssrsZilCvvR05cnmcdnGr/HmTwjUvWrvdXhgkqmHKDtHZ0dYoUabXQ/SlcOS n0Opem8xBi4Z4kM+eEkSB8Cy65kV9dreg82I81faCB+xmpyQtaWOudBSP712d26McQBv z1DNyv3M2IvmB8KOlh+Hn5+R53q3vd6lFgVNqTM4UzFIPiVfk69M92mlz9qct5O2e+Qu 9BLkXVsQxut87JpI25akmKgjXKyPUQE4m07BbxhpNnalgs5EK4lP6Fwiyr4893kWZkuP FE/zLrXgXnLqT8FGDeXRYYlbQFOfDVoC0nuffU0HsbCkwKzI7bnpJVRMDECGkySEw90K pHhg== X-Gm-Message-State: AOAM530vFvUJwc+BR+mI91bO95CmsIJ/LKzACCU7rR4IBQeSXX1Rblef Fk/ELS29m1shV35kyrGlNYNe5MPh5zIGdHX9tds= X-Received: by 2002:a17:90a:b10f:: with SMTP id z15mr15450178pjq.56.1628029286315; Tue, 03 Aug 2021 15:21:26 -0700 (PDT) MIME-Version: 1.0 References: <20210803123921.2374485-1-kuba@kernel.org> <20210803221659.9847-1-yepeilin.cs@gmail.com> In-Reply-To: <20210803221659.9847-1-yepeilin.cs@gmail.com> From: Cong Wang Date: Tue, 3 Aug 2021 15:21:15 -0700 Message-ID: Subject: Re: [PATCH net-next] tc-testing: Add control-plane selftests for sch_mq To: Peilin Ye Cc: Jakub Kicinski , Shuah Khan , Jamal Hadi Salim , Jiri Pirko , "David S. Miller" , Linux Kernel Network Developers , "open list:KERNEL SELFTEST FRAMEWORK" , LKML , Lucas Bates , Cong Wang , Peilin Ye Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 3, 2021 at 3:17 PM Peilin Ye wrote: > + "setup": [ > + "echo \"1 1 4\" > /sys/bus/netdevsim/new_device" > + ], > + "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq", > + "expExitCode": "0", > + "verifyCmd": "$TC qdisc show dev $ETH", > + "matchPattern": "qdisc pfifo_fast 0: parent 1:[1-4] bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1", > + "matchCount": "4", > + "teardown": [ > + "echo \"1\" > /sys/bus/netdevsim/del_device" > + ] > + }, Like I mentioned to Peilin, I am _not_ sure whether it is better to create netdevsim device in such a way. Maybe we need to create it before these tests and pass it via cmdline?? Lucas? Thanks.