Skip to content

Commit a7a45f0

Browse files
hormskuba-moo
authored andcommitted
net: sched: Correct spelling in headers
Correct spelling in pkt_cls.h and red.h. As reported by codespell. Cc: Krzysztof Kozlowski <[email protected]> Signed-off-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 10d0749 commit a7a45f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/net/pkt_cls.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ int __tcf_em_tree_match(struct sk_buff *, struct tcf_ematch_tree *,
491491
struct tcf_pkt_info *);
492492

493493
/**
494-
* tcf_em_tree_match - evaulate an ematch tree
494+
* tcf_em_tree_match - evaluate an ematch tree
495495
*
496496
* @skb: socket buffer of the packet in question
497497
* @tree: ematch tree to be used for evaluation

include/net/red.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
max_P should be small (not 1), usually 0.01..0.02 is good value.
4141
4242
max_P is chosen as a number, so that max_P/(th_max-th_min)
43-
is a negative power of two in order arithmetics to contain
43+
is a negative power of two in order arithmetic to contain
4444
only shifts.
4545
4646
@@ -159,7 +159,7 @@ static inline u32 red_maxp(u8 Plog)
159159
static inline void red_set_vars(struct red_vars *v)
160160
{
161161
/* Reset average queue length, the value is strictly bound
162-
* to the parameters below, reseting hurts a bit but leaving
162+
* to the parameters below, resetting hurts a bit but leaving
163163
* it might result in an unreasonable qavg for a while. --TGR
164164
*/
165165
v->qavg = 0;
@@ -340,7 +340,7 @@ static inline unsigned long red_calc_qavg_no_idle_time(const struct red_parms *p
340340
{
341341
/*
342342
* NOTE: v->qavg is fixed point number with point at Wlog.
343-
* The formula below is equvalent to floating point
343+
* The formula below is equivalent to floating point
344344
* version:
345345
*
346346
* qavg = qavg*(1-W) + backlog*W;
@@ -375,7 +375,7 @@ static inline int red_mark_probability(const struct red_parms *p,
375375
OK. qR is random number in the interval
376376
(0..1/max_P)*(qth_max-qth_min)
377377
i.e. 0..(2^Plog). If we used floating point
378-
arithmetics, it would be: (2^Plog)*rnd_num,
378+
arithmetic, it would be: (2^Plog)*rnd_num,
379379
where rnd_num is less 1.
380380
381381
Taking into account, that qavg have fixed

0 commit comments

Comments
 (0)