From patchwork Thu Oct 14 21:56:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 101699 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7024AA0C43; Thu, 14 Oct 2021 23:57:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 94D3D41194; Thu, 14 Oct 2021 23:56:49 +0200 (CEST) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mails.dpdk.org (Postfix) with ESMTP id 923A841185 for ; Thu, 14 Oct 2021 23:56:46 +0200 (CEST) Received: by mail-pg1-f173.google.com with SMTP id 66so6737830pgc.9 for ; Thu, 14 Oct 2021 14:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g3r8TxAy2wQz3H1vAHvVgc6zAes/kF+IIbTpWHbSsgg=; b=KLPzWBXB4M0+It4RTWEwRR1qomyzCiOwkQvIwCwIkJuStLdXymGJsdHdoOdxlxnC8f DicnJRqwcU+J9OFP+FHaz86vrmVfHwB4A1zS0l3muMIWvgRPFXDNAigqTdMGHCx5BowF yYM5p3YDY9r1mpEdz/5b9M0hO5Ek+chLFW73pLhjG9T/sAj1T6tuctl1+YOERuNfqRbE ZDI/uKr4lREE6pwTGP3YuDA+w6YqpThkIth2RkOM3RZ0KRw9WUTr47Q8Ylr7YCMJyGRL go1rEsrtQlFwP1YmLZXU/zbeEW44FEedoMgwVf0dpg4HTtZsN3Ky1G5k5Ivd/2bXOrYn 0skg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g3r8TxAy2wQz3H1vAHvVgc6zAes/kF+IIbTpWHbSsgg=; b=BsUZZGXwlG8jI/6s4kFCd9cj+lKJaS6gcDKHhVIQdRPVQLIM/4twmbBwfwsDNw1Le7 pG2jzewo1N9qrfi3Y1bNHNI8SLKVn/HjjXF9D4gAJCsAUB00UX+8mz40yebnck1EqFsC To2WnDo4TKzvTyoI4IGrfVAgWOwhjyEHFOc6az7qgOUgci9ce2psWBwfJlXT/krFf9Fj AHxDJvPY283d0AAyigVwuYL1TlzB/IcS9k2+rMkTtUi91yXF05KQE92k1lbXJl+oH9Ys 7tFurMAGsoGJ8ZLCOKI1WTPwoNAsgYMvUZKT26N5clN5Fnt9aeoTiQP4lxb+7bdfTuZy x0nQ== X-Gm-Message-State: AOAM532/+q/XFdKSKaki3WsxRGFMTW+QT79ojt6VLecSt0BtCNabI0ZE 0GvIcuBEIplekxxoBO1x8m4f40WznZruTA== X-Google-Smtp-Source: ABdhPJw8mSg14R5UxuFS84nACvmBAl68NJSqj3r1f+1PuOquPNN8MoiZ65W6sPtqHKpUmPYGxSKLNA== X-Received: by 2002:a63:f90b:: with SMTP id h11mr6145715pgi.165.1634248605434; Thu, 14 Oct 2021 14:56:45 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id h13sm3076741pgf.14.2021.10.14.14.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 14:56:44 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev , Bruce Richardson Date: Thu, 14 Oct 2021 14:56:20 -0700 Message-Id: <20211014215631.181747-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211014215631.181747-1-stephen@networkplumber.org> References: <20210909175648.174258-1-stephen@networkplumber.org> <20211014215631.181747-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v3 07/18] acl: fix spelling errors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Lots of little typos in comments Signed-off-by: Stephen Hemminger Acked-by: Konstantin Ananyev --- lib/acl/acl.h | 4 ++-- lib/acl/acl_bld.c | 2 +- lib/acl/acl_run_avx2.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/acl/acl.h b/lib/acl/acl.h index 4089ab2a0462..f5739a475cf0 100644 --- a/lib/acl/acl.h +++ b/lib/acl/acl.h @@ -45,7 +45,7 @@ struct rte_acl_bitset { * Each transition is 64 bit value with the following format: * | node_type_specific : 32 | node_type : 3 | node_addr : 29 | * For all node types except RTE_ACL_NODE_MATCH, node_addr is an index - * to the start of the node in the transtions array. + * to the start of the node in the transitions array. * Few different node types are used: * RTE_ACL_NODE_MATCH: * node_addr value is and index into an array that contains the return value @@ -66,7 +66,7 @@ struct rte_acl_bitset { * RTE_ACL_NODE_SINGLE: * always transitions to the same node regardless of the input value. * RTE_ACL_NODE_DFA: - * that node consits of up to 256 transitions. + * that node consists of up to 256 transitions. * In attempt to conserve space all transitions are divided into 4 consecutive * groups, by 64 transitions per group: * group64[i] contains transitions[i * 64, .. i * 64 + 63]. diff --git a/lib/acl/acl_bld.c b/lib/acl/acl_bld.c index da10864cd870..f316d3e875ef 100644 --- a/lib/acl/acl_bld.c +++ b/lib/acl/acl_bld.c @@ -1494,7 +1494,7 @@ acl_set_data_indexes(struct rte_acl_ctx *ctx) /* * Internal routine, performs 'build' phase of trie generation: * - setups build context. - * - analizes given set of rules. + * - analyzes given set of rules. * - builds internal tree(s). */ static int diff --git a/lib/acl/acl_run_avx2.h b/lib/acl/acl_run_avx2.h index d06d2e8782d6..0b8967f22e70 100644 --- a/lib/acl/acl_run_avx2.h +++ b/lib/acl/acl_run_avx2.h @@ -125,7 +125,7 @@ acl_process_matches_avx2x8(const struct rte_acl_ctx *ctx, /* For each transition: put low 32 into tr_lo and high 32 into tr_hi */ ACL_TR_HILO(mm256, __m256, t0, t1, lo, hi); - /* Keep transitions wth NOMATCH intact. */ + /* Keep transitions with NOMATCH intact. */ *tr_lo = _mm256_blendv_epi8(*tr_lo, lo, matches); *tr_hi = _mm256_blendv_epi8(*tr_hi, hi, matches); }