From patchwork Thu Sep 9 15:01:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 98448 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 4806CA0547; Thu, 9 Sep 2021 17:02:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F92240041; Thu, 9 Sep 2021 17:02:24 +0200 (CEST) Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mails.dpdk.org (Postfix) with ESMTP id 5CF724003E for ; Thu, 9 Sep 2021 17:02:22 +0200 (CEST) Received: by mail-pj1-f54.google.com with SMTP id t20so1562981pju.5 for ; Thu, 09 Sep 2021 08:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kwLlo54zLKTT3WDp4j88iG5+FiQzxETdwy2qTye6OGU=; b=hydNHTebV+Z12RpklI/ELoWm/UnacNKrZMuKENrwMw5wWtzJJfT0q/yI8ULNtvSIZX FvPC5sz0qcXyGMDGsMNze2PRLEYJv/xzz1/sJeFmOJbOIYW6eLnrhD6rWjsxIoS6W8z+ 8wJV2Opca7rnDfFdUmX6eyVAcHLlW/Lv8V3J7IKiQHFpamRSP6oXA7W4BsjLw1xwvDCP U8sjL4JhSw2QeFx56E9ya9bA6z7yt9B05U1iQVGohHshAjb3hexHDutZaAQkz6G2UjKf nzmbRrYhInVbVnNwCu1N7Yve9sxrgsE6UTUEjC+X3MDDfvEiHNL6sbmQX6pPNtNVH9kB 03OA== 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:mime-version :content-transfer-encoding; bh=kwLlo54zLKTT3WDp4j88iG5+FiQzxETdwy2qTye6OGU=; b=18ejoQ2SDjBvbdb03Oav12e2mpEjpHwC3o/gtJqNbif1nxYnObUy3l9VXm0oCfJTYc oe33cnHuqudYnFRvVNhrEE1ETkbkfLaiA+0zood4d/58K2pz1u1OsLFlG+mFuq+LnhF4 TdZ/xXq1AXh2fxopOjVGEvUnj6y8cFsFkYdbDsd3FfsLL8k9Nkn2eQE4F0SpSGrLv9wy CvHlIcO899F4yttU4QZ+QEq0BEev52gMngbXWSOD+6wPpnZMNv5kmDLPv9CL6wR19P/J VyZlJufunnTlHdXsv0hAcFZ5QPaYo4qf446J45KBkRrmL4QkM6oXj6mhCo1cpSzxZPYd KpIQ== X-Gm-Message-State: AOAM531wV8H4VFs39+MX7FHNETW8ZGAp+zEF2w96iA9Wr9pZglMLtVK6 odnhQtsIiqdvniudNJQt6Vso6hAd72VegQ== X-Google-Smtp-Source: ABdhPJwIJq+k1NGQjCa/SK3uy2rC+uEON8OMF4AK/zrlymGrF4xqxa+jHsveYaBzDmy3GOe4lC04wg== X-Received: by 2002:a17:902:8491:b0:13a:16dc:f32c with SMTP id c17-20020a170902849100b0013a16dcf32cmr3133460plo.55.1631199741446; Thu, 09 Sep 2021 08:02:21 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id e5sm2495650pjv.44.2021.09.09.08.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 08:02:09 -0700 (PDT) From: Stephen Hemminger To: konstantin.ananyev@intel.com Cc: dev@dpdk.org, Stephen Hemminger Date: Thu, 9 Sep 2021 08:01:54 -0700 Message-Id: <20210909150153.5287-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] bpf: fix spelling in comments 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" Found by running codespell on the bpf implementation. Signed-off-by: Stephen Hemminger --- lib/bpf/bpf_jit_x86.c | 2 +- lib/bpf/bpf_validate.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bpf/bpf_jit_x86.c b/lib/bpf/bpf_jit_x86.c index aa22ea78a01d..518513376a67 100644 --- a/lib/bpf/bpf_jit_x86.c +++ b/lib/bpf/bpf_jit_x86.c @@ -1245,7 +1245,7 @@ emit_epilog(struct bpf_jit_state *st) uint32_t i; int32_t spil, ofs; - /* if we allready have an epilog generate a jump to it */ + /* if we already have an epilog generate a jump to it */ if (st->exit.num++ != 0) { emit_abs_jmp(st, st->exit.off); return; diff --git a/lib/bpf/bpf_validate.c b/lib/bpf/bpf_validate.c index 7b1291b382e9..3e7d3d730637 100644 --- a/lib/bpf/bpf_validate.c +++ b/lib/bpf/bpf_validate.c @@ -1723,7 +1723,7 @@ static const struct bpf_ins_check ins_chk[UINT8_MAX + 1] = { /* * make sure that instruction syntax is valid, - * and it fields don't violate partciular instrcution type restrictions. + * and it fields don't violate particular instruction type restrictions. */ static const char * check_syntax(const struct ebpf_insn *ins) @@ -1981,7 +1981,7 @@ validate(struct bpf_verifier *bvf) /* * construct CFG, jcc nodes have to outgoing edges, - * 'exit' nodes - none, all others nodes have exaclty one + * 'exit' nodes - none, all others nodes have exactly one * outgoing edge. */ switch (ins->code) {