From: Rami Rosen <ramirose@gmail.com>
To: dts@dpdk.org
Cc: Rami Rosen <ramirose@gmail.com>
Subject: [dts] [PATCH] framework/pmd_output: fix typos
Date: Fri, 18 Jan 2019 14:50:23 +0200 [thread overview]
Message-ID: <20190118125023.8408-1-ramirose@gmail.com> (raw)
Signed-off-by: Rami Rosen <ramirose@gmail.com>
---
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
reply other threads:[~2019-01-18 12:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190118125023.8408-1-ramirose@gmail.com \
--to=ramirose@gmail.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).