From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by dpdk.org (Postfix) with ESMTP id 5C85D1B6AA for ; Fri, 10 Nov 2017 09:32:40 +0100 (CET) Received: by mail-pg0-f66.google.com with SMTP id j3so6902098pga.1 for ; Fri, 10 Nov 2017 00:32:40 -0800 (PST) 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=nc+41VrimPKDkpiJo/aaHDGBCqB57EcXMt5weZeBU1k=; b=Pkmvy0yDz4bXJlXubWR+2j1ih/YN1tlYFS/8wIQ1MwCVzT6TDNcFUojXaj7QJkpoz6 lwZcwwDJnhp+Ba3rqtOe/U082GPQBtHU+71bCzIH4YX/H6IZObT6qr6JU6t/Z+EDCRgT fIFMtgDqitzuAhlORWgNDoV4lO+hwiziobb8swaa9HLz9jndcslpEZHouCfK+SVEAzHs 3fH0WhapJynKBB14o65v/PjGWeX3n++ByxZ2xar+XhJrzM11DZRa6V/MmgngDKGUTA1L CEGM153ZVOuMLxQmU+pxElnuvGbX0bCxj/alR2tpdzsu6XZRqe7WvOqnk71L+dYVmNAX r49A== 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=nc+41VrimPKDkpiJo/aaHDGBCqB57EcXMt5weZeBU1k=; b=qYk7bpKbAX4NgGhruoaS3ttAWi6xHXMYEtZu2qKAbpgV0owInZZjIdOC4y57+JZ5AI RWbdn3h9pC/JUobYSoK9svVco/MQ/KEpxtLEsN0LH+0hOGBXJwMp+iRZTeDXZz0hcIdO a2QK4PEpbSH0qj4CaFjxymoGpPsk84Jfcib2GQYdovrubVTfSF2MRApThLn1DL0+8m1u wFtAUpDayfUl8NyDpeKSvhov7b+6RJdfPpu5VcnDHLS4VJDD+RJ5H7MzJyvcGgGr6jGA iKFOQygk22lhZ9CKidWIVmxo8iVdDAPfjHa48jXmZfgy3ZJnH8F4u6dY4kARL/Mlj9w5 nHFA== X-Gm-Message-State: AJaThX5P3ZgR03TJLWQwoPY7QG9o36IuFCngC3IOzAnMbhgHvtUH5cHU zn39+Tjp98Xa+rPPNzlrX2JtYQ== X-Google-Smtp-Source: ABhQp+TWpNT323Owt8Jl8J5mDhitNUJEZeKKE82/g0zx8JAKbq7hNN0lvzGiI/3qcmkmyEz0tL75Fg== X-Received: by 10.84.129.34 with SMTP id 31mr3346147plb.368.1510302759330; Fri, 10 Nov 2017 00:32:39 -0800 (PST) Received: from localhost.localdomain ([50.35.88.106]) by smtp.gmail.com with ESMTPSA id t2sm18917201pfk.90.2017.11.10.00.32.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Nov 2017 00:32:38 -0800 (PST) From: Pavel Shirshov To: dev@dpdk.org Date: Fri, 10 Nov 2017 00:32:25 -0800 Message-Id: <1510302745-20281-1-git-send-email-pavel.shirshov@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510300557-16939-1-git-send-email-pavel.shirshov@gmail.com> References: <1510300557-16939-1-git-send-email-pavel.shirshov@gmail.com> Subject: [dpdk-dev] [PATCH v2] lib/librte_distributor: Fix typos in comments X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2017 08:32:40 -0000 Signed-off-by: Pavel Shirshov --- lib/librte_distributor/rte_distributor.c | 6 +++--- lib/librte_distributor/rte_distributor.h | 2 +- lib/librte_distributor/rte_distributor_private.h | 2 +- lib/librte_distributor/rte_distributor_v20.c | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/librte_distributor/rte_distributor.c b/lib/librte_distributor/rte_distributor.c index 57ad339..6ad2301 100644 --- a/lib/librte_distributor/rte_distributor.c +++ b/lib/librte_distributor/rte_distributor.c @@ -442,7 +442,7 @@ rte_distributor_process_v1705(struct rte_distributor *d, /* * Uncommenting the next line will cause the find_match - * function to be optimised out, making this function + * function to be optimized out, making this function * do parallel (non-atomic) distribution */ /* matches[j] = 0; */ @@ -536,7 +536,7 @@ MAP_STATIC_SYMBOL(int rte_distributor_returned_pkts(struct rte_distributor *d, /* * Return the number of packets in-flight in a distributor, i.e. packets - * being workered on or queued up in a backlog. + * being worked on or queued up in a backlog. */ static inline unsigned int total_outstanding(const struct rte_distributor *d) @@ -663,7 +663,7 @@ rte_distributor_create_v1705(const char *name, #endif /* - * Set up the backog tags so they're pointing at the second cache + * Set up the backlog tags so they're pointing at the second cache * line for performance during flow matching */ for (i = 0 ; i < num_workers ; i++) diff --git a/lib/librte_distributor/rte_distributor.h b/lib/librte_distributor/rte_distributor.h index 9b9efdb..cbeed04 100644 --- a/lib/librte_distributor/rte_distributor.h +++ b/lib/librte_distributor/rte_distributor.h @@ -71,7 +71,7 @@ struct rte_mbuf; * @param alg_type * Call the legacy API, or use the new burst API. legacy uses 32-bit * flow ID, and works on a single packet at a time. Latest uses 15- - * bit flow ID and works on up to 8 packets at a time to worers. + * bit flow ID and works on up to 8 packets at a time to workers. * @return * The newly created distributor instance */ diff --git a/lib/librte_distributor/rte_distributor_private.h b/lib/librte_distributor/rte_distributor_private.h index 250b23e..24f41b9 100644 --- a/lib/librte_distributor/rte_distributor_private.h +++ b/lib/librte_distributor/rte_distributor_private.h @@ -90,7 +90,7 @@ union rte_distributor_buffer_v20 { /* * Transfer up to 8 mbufs at a time to/from workers, and - * flow matching algorithm optimised for 8 flow IDs at a time + * flow matching algorithm optimized for 8 flow IDs at a time */ #define RTE_DIST_BURST_SIZE 8 diff --git a/lib/librte_distributor/rte_distributor_v20.c b/lib/librte_distributor/rte_distributor_v20.c index 9adda52..5be6efd 100644 --- a/lib/librte_distributor/rte_distributor_v20.c +++ b/lib/librte_distributor/rte_distributor_v20.c @@ -345,7 +345,8 @@ rte_distributor_returned_pkts_v20(struct rte_distributor_v20 *d, VERSION_SYMBOL(rte_distributor_returned_pkts, _v20, 2.0); /* return the number of packets in-flight in a distributor, i.e. packets - * being workered on or queued up in a backlog. */ + * being worked on or queued up in a backlog. + */ static inline unsigned total_outstanding(const struct rte_distributor_v20 *d) { -- 2.7.4