Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3344550rwb; Wed, 30 Nov 2022 19:48:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7OPOh9R4FkeRDf48sK0+da0JOIS8k32A2ZYHnUhyQsJetgOZr2+K43xxxlSJ7saIR5UFxB X-Received: by 2002:a17:907:7f8e:b0:7bb:52b2:4162 with SMTP id qk14-20020a1709077f8e00b007bb52b24162mr28194553ejc.608.1669866496145; Wed, 30 Nov 2022 19:48:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669866496; cv=none; d=google.com; s=arc-20160816; b=TkC6k4DFXZvGGk/1Pp4oWTIMh7L6LTt231yYqobssM5FXUAVqUb5x7leOm1iBuew7k 8N6p+uFlSsuUA+6cLx36W68oUNc3DXdYULjaotdyC/FkSw6DP8UxwD5bp83Gc03iJbfH R0SMd8hMJ39a9C9w/nvgwyk8Yv5PBdzDT6QoyMWesv6g2NGaPf2a0sgl2E82OvjX505E hWVSC/2Aj84QbdA+n1gh8thwaJ+41V1VnRf9fBBkIHg0UGrkQYXqW2c046FRLOcmFlxF 5QrCxcDtDbaxl0VLDjrfYHt7lHqPBhxfkTfiEOmtdRGuTucDoCm+qG1zCW04euj2wSlb +x5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=rY7C8DvQQakpC+/BidE9qqdUpI9wBubm2VA4u3PfMdk=; b=RStte29U7q+wFuBYnRSYaWF0zB3j29ydbshwAvKdcwV7nzChMnR3n2Y6IHpNHWJopy 3nMo+inh7N5omxnuBycaXgp1v2PdytIR1T6xWdEJ1HI2IMfanorMNVtJaGcqAYV3EPhP D0CXm7yjYErE4+zPo9fSm50V+LdMEdtVAJARGQ8Ly/InF1B1ZJEPoDnFA8rJMS86eA3A +QnXjfggh/qxyu0i39VgD7rjrfWyu0fScOrXl2Lq0itR1puP0RXC5vlJgt9TpS3R66Ba wP+kLWJdFUcFzJlxwA01Qv1Px7+DjCgbc+xLoA8SCm8aP1nZk3PJY30bkCG//I4MT2S1 +Q3Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id tz14-20020a170907c78e00b0078e1d213812si2386322ejc.184.2022.11.30.19.47.56; Wed, 30 Nov 2022 19:48:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbiLADLC (ORCPT + 82 others); Wed, 30 Nov 2022 22:11:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiLADLB (ORCPT ); Wed, 30 Nov 2022 22:11:01 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C9BE743879; Wed, 30 Nov 2022 19:10:57 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Dx9vA_G4hjR30CAA--.5787S3; Thu, 01 Dec 2022 11:10:55 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dxr+A9G4hj9AUjAA--.22044S2; Thu, 01 Dec 2022 11:10:53 +0800 (CST) From: Tiezhu Yang To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: net: Use "grep -E" instead of "egrep" Date: Thu, 1 Dec 2022 11:10:48 +0800 Message-Id: <1669864248-829-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8Dxr+A9G4hj9AUjAA--.22044S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWruFWrur1DGFy3tF1xGFyUKFg_yoW8JF13p3 y8GwnrKr1rJFyjyF4UWF4SqF4fKan3ZF48WrWrGrnrZrs8J3WxXFySgF47AF47WrWDXws5 Z3s29ryruan8A3DanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b3AYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l n4kS14v26r1Y6r17M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E 87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82 IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAFwI0_Jrv_JF1lx2Iq xVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r 1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY 6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67 AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuY vjxU4s2-UUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 The latest version of grep claims the egrep is now obsolete so the build now contains warnings that look like: egrep: warning: egrep is obsolescent; using grep -E fix this using "grep -E" instead. sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests/net` Here are the steps to install the latest grep: wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz tar xf grep-3.8.tar.gz cd grep-3.8 && ./configure && make sudo make install export PATH=/usr/local/bin:$PATH Signed-off-by: Tiezhu Yang --- As Shuah suggested, this patch should go through net tree tools/testing/selftests/net/toeplitz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/toeplitz.sh b/tools/testing/selftests/net/toeplitz.sh index 0a49907..da5bfd8 100755 --- a/tools/testing/selftests/net/toeplitz.sh +++ b/tools/testing/selftests/net/toeplitz.sh @@ -32,7 +32,7 @@ DEV="eth0" # This is determined by reading the RSS indirection table using ethtool. get_rss_cfg_num_rxqs() { echo $(ethtool -x "${DEV}" | - egrep [[:space:]]+[0-9]+:[[:space:]]+ | + grep -E [[:space:]]+[0-9]+:[[:space:]]+ | cut -d: -f2- | awk '{$1=$1};1' | tr ' ' '\n' | -- 2.1.0