From patchwork Thu Dec 1 03:10:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 28178 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp55619wrr; Wed, 30 Nov 2022 19:46:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DYLuIIUAS5AtQGXC5ewyrN4xf3ifNRbxclNyrbCq/OF/xfP7nNCIIDSENAbvNugCwyQBC X-Received: by 2002:a17:906:882:b0:7ad:e161:b026 with SMTP id n2-20020a170906088200b007ade161b026mr49469033eje.760.1669866404084; Wed, 30 Nov 2022 19:46:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669866404; cv=none; d=google.com; s=arc-20160816; b=yLyF7aMhHWFkNdoZfOBqIa7SMrto9l1Z7gKFW7gjRNeF4mM59ZBFfs9oAPtiEPKC81 JvvFCefyIfeYt6zA5Ly8Ufz4Gljkw4mz68ko/2E6Tr7scRBX2BciZdxkIA9C2H1Wxvio 3bKssFhQNfCFQRNizOxFwynvLAXCYv0rpUbjzKZQq7at4Sea2J0K3Z05qlVj/pISxraK koVYcwmaJrVp9UTsnKCd2iz6sxTtGGjkVEnKH+4Q/qBIeTjmC0g93q1QpI+uGBNkicpt zHMGk2D2+WT5VY6p1q2Rr6eNk/dNpxOsODgm/XtuvNrBFeascVdMu5byO1u0hJb7ZPYH VDqQ== 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 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.46.20; Wed, 30 Nov 2022 19:46:44 -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 + 99 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750981834544677396?= X-GMAIL-MSGID: =?utf-8?q?1750981834544677396?= 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' |