From patchwork Mon Jun 26 10:30:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gao Zhenyu X-Patchwork-Id: 780649 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3wx51p4GCcz9ryb for ; Mon, 26 Jun 2017 20:31:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LIKftVMt"; dkim-atps=neutral Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 627BE92B; Mon, 26 Jun 2017 10:31:06 +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 7F639904 for ; Mon, 26 Jun 2017 10:31:04 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 3DF6D1E1 for ; Mon, 26 Jun 2017 10:31:04 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id e199so6790117pfh.0 for ; Mon, 26 Jun 2017 03:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FN+cLNChaQiPSw6FiaxCg0VmxB6seHkDyzasRPHUODY=; b=LIKftVMtpH6OFcYqEU3rjHuKYG7QL/FUuybcDrZ/wb5OQ7jH2CXQIotzp1Uu5eOItm 8SPArSCQK5P15hXmXwDzxz0aeBzULMpLuwvF8p7g6bduGzSKbjGFfQStG5xJWqayE79V gxLqWhRN+A5SkeKBYp5ijna9pTexwKjiFUgDcBP1xuSRpYoX94ZDuJZLC9VA7d6gwKl0 iCn6xHKyCuAh87RRlt6f/NPxk+mGeybxiXE+ac6yPCMHE9HsWPte9zCw/+zeMyaLCimj 6JIbZeaUqbY/Nur3+OvF6UL9RFFpvLtXpyTuf7CGN6MtqQj9+NfttQrTnPlOemHXrx5e oxzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FN+cLNChaQiPSw6FiaxCg0VmxB6seHkDyzasRPHUODY=; b=k56d8mLlb2PyICxmj45TNLLlortAbET44kafeMssNs/byOTXgmyriLB/HlF0CcXl8g IH44Zbvxgv+M6VJzc+nlVoMZapZYJyiocwBZG52k7WOIBzJa2Lf1dh5Zryv5znMuFVb8 Cvth1vRL2AyfYViqCLydtPNCmNBwX9NIEQuti7yMsb6K72+qlNTo/UngebH36rhx2r08 qaKrQ3+aP3X3Xtwhrg+m0n0wm0y5F5a8HrhXUg3Y5GJykQffitA6NZ3Tt3xcMNT1wqTn M34Sm/n3Hecvc9U/WIiV97ryPHM2gQEh5RUseFmJPW3M1sgPmTbx3GF+H1/0ZyDlqs9M y7Gg== X-Gm-Message-State: AKS2vOwlYr7f2++WZcjvky245ln7ZsYyrTxOCn+6Kzf75Y5iq1hi9XPU DmGdAcCLR6cFcw== X-Received: by 10.99.3.216 with SMTP id 207mr20590780pgd.161.1498473063857; Mon, 26 Jun 2017 03:31:03 -0700 (PDT) Received: from vultr.guest ([45.77.33.88]) by smtp.gmail.com with ESMTPSA id e63sm25765088pfb.18.2017.06.26.03.31.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jun 2017 03:31:03 -0700 (PDT) From: Zhenyu Gao To: blp@ovn.org, u9012063@gmail.com, dev@openvswitch.org Date: Mon, 26 Jun 2017 10:30:55 +0000 Message-Id: <20170626103055.24869-1-sysugaozhenyu@gmail.com> X-Mailer: git-send-email 2.11.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [RFC PATCH v1] vswitchd: Fix IFACE_STAT name error in iface_refresh_stats 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 element of rx_1024_to_1522_packets has wrong name(rx_1024_to_1518_packets). Change it from rx_1024_to_1518_packets to rx_1024_to_1522_packets, it should record packets between 1024 to 1522. The element of tx_1024_to_1522_packets has wrong name(tx_1024_to_1518_packets). Change it from tx_1024_to_1518_packets to tx_1024_to_1522_packets, it should record packets between 1024 to 1522. Signed-off-by: Zhenyu Gao --- vswitchd/bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 8336d70..b9fb8e6 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -2369,14 +2369,14 @@ iface_refresh_stats(struct iface *iface) IFACE_STAT(rx_128_to_255_packets, "rx_128_to_255_packets") \ IFACE_STAT(rx_256_to_511_packets, "rx_256_to_511_packets") \ IFACE_STAT(rx_512_to_1023_packets, "rx_512_to_1023_packets") \ - IFACE_STAT(rx_1024_to_1522_packets, "rx_1024_to_1518_packets") \ + IFACE_STAT(rx_1024_to_1522_packets, "rx_1024_to_1522_packets") \ IFACE_STAT(rx_1523_to_max_packets, "rx_1523_to_max_packets") \ IFACE_STAT(tx_1_to_64_packets, "tx_1_to_64_packets") \ IFACE_STAT(tx_65_to_127_packets, "tx_65_to_127_packets") \ IFACE_STAT(tx_128_to_255_packets, "tx_128_to_255_packets") \ IFACE_STAT(tx_256_to_511_packets, "tx_256_to_511_packets") \ IFACE_STAT(tx_512_to_1023_packets, "tx_512_to_1023_packets") \ - IFACE_STAT(tx_1024_to_1522_packets, "tx_1024_to_1518_packets") \ + IFACE_STAT(tx_1024_to_1522_packets, "tx_1024_to_1522_packets") \ IFACE_STAT(tx_1523_to_max_packets, "tx_1523_to_max_packets") \ IFACE_STAT(tx_multicast_packets, "tx_multicast_packets") \ IFACE_STAT(rx_broadcast_packets, "rx_broadcast_packets") \