From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id 37F842082 for ; Fri, 18 Jan 2019 13:50:30 +0100 (CET) Received: by mail-wm1-f65.google.com with SMTP id f188so4370086wmf.5 for ; Fri, 18 Jan 2019 04:50:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sjLubZK39T1nzJD+6IVN1ODxvBVwUVU7kMa18ivekgk=; b=BGE8bx2t3IYdYO7XEQ2OfRUwwLT6pQbLuQTK9N9mLEwc+8YmEc023i+kXOYsQp49GE In3oY8M2KApILbOrLQpbLtbQXSRCUFpsRbB07hGvInkmQcrnl0FjWBw4iTZ1hdd+3hZD 6InJWlq/1PU1qT9OmnWUJXsEJ6OEKJACzrUB9azZ4HpcSpM6SEbCUI6w5ak+RrR0hovu zFr6pcBjGZ44NJGsQRgtkDuFnbqNW8NS34bX7wi1Td+PwHAwDyaWm873/gjz3+zmOVxR PdjfDHMcjs3Je/aHOai9sKgxaGxrOESJFGb3w2+f2f9HxmN0v5OICQ8b9nb/XQEIS0WW lo+w== 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:mime-version :content-transfer-encoding; bh=sjLubZK39T1nzJD+6IVN1ODxvBVwUVU7kMa18ivekgk=; b=rUvpdRuLKqqkBsTSpBoE8ttjlR0kE/N9o19jtkZYsCgs8D+D2s8IUI2PMUtkH0QbeT l/dRtaF8GmZbUx9ye9q60cgvrEypzdZv1zCH8djVDBbtb9NqOn/l8vSPmZfLbvvJdFZ8 Fsx4h3XnIj0aE4d1nBqoeFtZrDCu+wdWsDzI6BZAbwu9e6p+VGIn/q+ws3SBBMcYNtZ+ Q+oaYeNqtrxwKpa4M/KYA/jwv0SMxCax7yFXJpMoQfMbAlOXiL++WgcOE2Rn+AGFK1h3 JYBrIIlj4nBrm/SRxS/2/P901sLZMGMFTU8BtWkCSZm/0xmsfDm1zBbSow9ILkt3xPqT 8bGA== X-Gm-Message-State: AJcUukeJs/7WvpWASe3KP8thoRe47/qYJwcYUTFQJRiIZafxtpCwio4c YtORjwl9A/Kpf9UoF0g4ROw8T2Qvk78= X-Google-Smtp-Source: ALg8bN7j2xe2fjy02/iDI8mHvrSyj+m51rmiLwl6XcoooBdGbqVSP+KEHJ7FV0TPPBUG9/kaNZ6y8g== X-Received: by 2002:a1c:2856:: with SMTP id o83mr16679449wmo.45.1547815829649; Fri, 18 Jan 2019 04:50:29 -0800 (PST) Received: from localhost.localdomain (bzq-109-66-107-204.red.bezeqint.net. [109.66.107.204]) by smtp.gmail.com with ESMTPSA id g16sm76549100wru.41.2019.01.18.04.50.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Jan 2019 04:50:29 -0800 (PST) From: Rami Rosen To: dts@dpdk.org Cc: Rami Rosen Date: Fri, 18 Jan 2019 14:50:23 +0200 Message-Id: <20190118125023.8408-1-ramirose@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH] framework/pmd_output: fix typos X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2019 12:50:30 -0000 Signed-off-by: Rami Rosen --- framework/pmd_output.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index 80005e5..9cc84bb 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -153,7 +153,7 @@ class PmdOutput(): def get_port_connect_socket(self, port_id): """ - Get the socket id which the specified port is connectting with. + Get the socket id which the specified port is connecting with. """ return self.get_detail_from_port_info("Connect to socket: ", "\d+", port_id) @@ -177,7 +177,7 @@ class PmdOutput(): def get_port_link_duplex(self, port_id): """ - Get the specified port link mode, duplex or siplex. + Get the specified port link mode, duplex or simplex. """ return self.get_detail_from_port_info("Link duplex: ", "\S+", port_id) @@ -199,16 +199,16 @@ class PmdOutput(): so should used (tx_bytes - exp_bytes) % PROTOCOL_PACKET_SIZE['lldp'] for check tx_bytes count right """ - # error_flage is true means tx_bytes different with expect bytes - error_flage = 1 + # error_flag is true means tx_bytes different with expect bytes + error_flag = 1 for size in PROTOCOL_PACKET_SIZE['lldp']: - error_flage = error_flage and (tx_bytes - exp_bytes) % size + error_flag = error_flag and (tx_bytes - exp_bytes) % size - return not error_flage + return not error_flag def get_port_vlan_offload(self, port_id): """ - Function: get the port vlan settting info. + Function: get the port vlan setting info. return value: 'strip':'on' 'filter':'on' -- 2.19.2