From patchwork Mon Aug 14 05:09:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darrell Ball X-Patchwork-Id: 801083 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=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QYw+PAmd"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xW3dh74Gjz9s7g for ; Mon, 14 Aug 2017 15:12:40 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id AA604898; Mon, 14 Aug 2017 05:10:38 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id B038140A for ; Mon, 14 Aug 2017 05:10:34 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id A3ED3E0 for ; Mon, 14 Aug 2017 05:10:34 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id 123so8762532pga.5 for ; Sun, 13 Aug 2017 22:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=dLCpg8JPZbQvBBVwm1M8dPFA7ppxV769jrVkW4rVBBw=; b=QYw+PAmdaIDszB+U2vlDmuqUqyO0iCtset9ItZccJENYNoNEnp6KXcPf9G/Zh9cxVF jzEpsP9Yu+ECDJLwphE4tisv6Dm1I7EKU9XWqoxMfywlljWZWnGBU7UCz0OhxLMrOPhU W20ZgYjVWtaGELkWFFWsJU4NizzsHVbXetyttxGE07wUnIdZ6knu1fnS+mL2Zdp8efpQ YO4gQXJBed6JW2vKQ6ZCWHL6SdFcvaNs38P1F/wthqmOoyYEM/5tkJzEUGfV4IpJKt59 Qw7LFHMdszb0XSZlt0nrZpl36I2DNIq7fWgnDFGAyLv2qtWmpiS9ZEH8L8/4oJsZZFFv MkRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=dLCpg8JPZbQvBBVwm1M8dPFA7ppxV769jrVkW4rVBBw=; b=tp33QcOXJzpTZX3auhVhvKt25ILynd/hKgIDhfnFcV7eIdl94joOxXumaWUlPWG6Hz 7DIj70VZFYi7ViRYmNsRLY7zolcDajp7TFLZzrCTHUOwaA0+6gyWII8P6NDurdHct/3Q f6Tcag3x0XCtg//rwCb/80idAv3Eyog8DcrD+IFjcZ/RwCf6FrHd7VO29CjCsiTMXNyG u2nrMi7uQD5Cf2xW+ksZvZa7vx5MhQzTH0xNcSCORwB+YfFbUXPuqkllKR9/IKzBnvK8 dBGF1mnJB16yl1KlyQdP7B52NTb1AAoMUQupmViiZ+2RgD0pirhFAWm176CiG0d4gbfU TTIw== X-Gm-Message-State: AHYfb5jOpVmHW9Fl4ZEk+UaTGIa+7LWFTCzXLji1KCt8w4Hmg5fsKDOj tCb1e7O3akG69g== X-Received: by 10.98.215.74 with SMTP id v10mr23402027pfl.314.1502687434295; Sun, 13 Aug 2017 22:10:34 -0700 (PDT) Received: from ubuntu.localdomain (c-73-162-236-45.hsd1.ca.comcast.net. [73.162.236.45]) by smtp.gmail.com with ESMTPSA id t5sm11458338pfd.96.2017.08.13.22.10.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Aug 2017 22:10:33 -0700 (PDT) From: Darrell Ball To: dlu998@gmail.com, dev@openvswitch.org Date: Sun, 13 Aug 2017 22:09:38 -0700 Message-Id: <1502687378-93909-4-git-send-email-dlu998@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502687378-93909-1-git-send-email-dlu998@gmail.com> References: <1502687378-93909-1-git-send-email-dlu998@gmail.com> Subject: [ovs-dev] [patch_v2 3/3] tests: Enhance the pmd stats test. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org The pmd stats test is enhanced to include megaflow stats counting and checking. Signed-off-by: Darrell Ball --- tests/pmd.at | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/pmd.at b/tests/pmd.at index b6732ea..0b1731a 100644 --- a/tests/pmd.at +++ b/tests/pmd.at @@ -206,6 +206,25 @@ pmd thread numa_id core_id : lost:0 ]) +AT_CHECK([ovs-vsctl set Open_vSwitch . other_config:emc-insert-inv-prob=0]) +( +for i in `seq 0 5`; + do + pkt="in_port(7),eth(src=50:54:00:00:00:77,dst=50:54:00:00:01:78),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.1.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)" + AT_CHECK([ovs-appctl netdev-dummy/receive p0 $pkt]) + done +) +ovs-appctl time/warp 100 + +AT_CHECK([ovs-appctl dpif-netdev/pmd-stats-show | sed SED_NUMA_CORE_PATTERN | sed '/cycles/d' | grep pmd -A 5], [0], [dnl +pmd thread numa_id core_id : + emc hits:19 + megaflow hits:6 + avg. subtable lookups per hit:1.00 + miss:1 + lost:0 +]) + OVS_VSWITCHD_STOP AT_CLEANUP