From patchwork Mon Dec 31 10:31:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sun Lianwen X-Patchwork-Id: 1019536 X-Patchwork-Delegate: akodanev@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=163.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.b="j0qdqErx"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43StsY0J1fz9s0n for ; Mon, 31 Dec 2018 21:31:59 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 00B043E6EFA for ; Mon, 31 Dec 2018 11:31:54 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) by picard.linux.it (Postfix) with ESMTP id 435513E6EE1 for ; Mon, 31 Dec 2018 11:31:51 +0100 (CET) Received: from m12-16.163.com (m12-16.163.com [220.181.12.16]) by in-7.smtp.seeweb.it (Postfix) with ESMTP id 0D71C200BA5 for ; Mon, 31 Dec 2018 11:31:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=hCC1X 6ERMF4G8IqUcfobuLddd2FBRCUDCjiDGM98X8I=; b=j0qdqErxzka823K8O6+rl MVzlId50ZnOXsOtsR+olgoruLXBnz7UYX4Z3t0AmcN8By381sE1Ktiu2m0UOrp6j ooA7KBRPcMhFfgB3IQC0qm4EVibUYL9aGDmnC5IL1FUz6rVm/fVruuiyYfx8rGxZ ldFflK1vOCQRzNcVvuCLlc= Received: from localhost.localdomain (unknown [122.226.185.199]) by smtp12 (Coremail) with SMTP id EMCowAC3HqQS8Clc7HCHAg--.40038S4; Mon, 31 Dec 2018 18:31:47 +0800 (CST) From: Sun Lianwen To: pvorel@suse.cz Date: Mon, 31 Dec 2018 18:31:26 +0800 Message-Id: <20181231103126.3679-1-sun_lianwen@163.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 X-CM-TRANSID: EMCowAC3HqQS8Clc7HCHAg--.40038S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrKryDuw15tFWUJrWxGF18Grg_yoWfZFbEgF 98Xrs7t345Zry7C34Yva90yF1xt3yFgrZ5XF42gw1fJrsrZa45CF97Cry7Jwn0gF98Zryx u347Z3y7Ar9IvjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8I4EtUUUUU== X-Originating-IP: [122.226.185.199] X-CM-SenderInfo: pvxqsz5ldq4vrq6rljoofrz/xtbB0RMurFkh2wZ8zwAAsW X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it Cc: ltp@lists.linux.it Subject: [LTP] [PATCH] network/busy_poll: Change the "ethtool --show-features to "ethtool -k" X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" To keep the same struct of "ethtool -i $(tst_iface)", change the "ethtool --show-features" to "ethtool -k". Signed-off-by: Sun Lianwen --- testcases/network/busy_poll/busy_poll_lib.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testcases/network/busy_poll/busy_poll_lib.sh b/testcases/network/busy_poll/busy_poll_lib.sh index 5270a1bbd..2a24ff262 100755 --- a/testcases/network/busy_poll/busy_poll_lib.sh +++ b/testcases/network/busy_poll/busy_poll_lib.sh @@ -22,8 +22,7 @@ busy_poll_check_config() fi if tst_kvcmp -lt "4.5"; then - ethtool --show-features $(tst_iface) | \ - grep -q 'busy-poll.*on' || \ + ethtool -k $(tst_iface) | grep -q 'busy-poll.*on' || \ tst_brk TCONF "busy poll not supported by driver" else drvs="bnx2x|bnxt|cxgb4|enic|benet|ixgbe|ixgbevf|mlx4|mlx5|myri10ge|sfc|virtio"