[dpdk-dev] [PATCH v2 06/18] bpf: fix spelling in comments

Dmitry Kozlyuk dmitry.kozliuk at gmail.com
Thu Sep 9 21:49:56 CEST 2021


2021-09-09 11:10 (UTC-0700), Stephen Hemminger:
[...]
> 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.

Also "it" -> "its".

>   */
>  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

Also "others" -> "other".

>  		 * outgoing edge.
>  		 */
>  		switch (ins->code) {



More information about the dev mailing list