The branch stable/12 has been updated by gbe (doc committer):

URL: 
https://cgit.FreeBSD.org/src/commit/?id=fe0ca2ad6f5b3315399918e16c6e95ca519b7d6c

commit fe0ca2ad6f5b3315399918e16c6e95ca519b7d6c
Author:     Gordon Bergling <[email protected]>
AuthorDate: 2022-04-02 12:18:11 +0000
Commit:     Gordon Bergling <[email protected]>
CommitDate: 2022-04-09 06:29:22 +0000

    netpfil: Fix two typo in source code comments
    
    - s/measurment/measurement/
    
    While here, also fix some whitespace issues.
    
    (cherry picked from commit f70fc4377f26f66ff3c125dbf7b6fa8b4698ed8d)
---
 sys/netpfil/ipfw/dn_aqm_pie.c      | 18 +++++++++---------
 sys/netpfil/ipfw/dn_sched_fq_pie.c | 18 +++++++++---------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/sys/netpfil/ipfw/dn_aqm_pie.c b/sys/netpfil/ipfw/dn_aqm_pie.c
index 3b2fd8b96f0d..d3ab2891354e 100644
--- a/sys/netpfil/ipfw/dn_aqm_pie.c
+++ b/sys/netpfil/ipfw/dn_aqm_pie.c
@@ -437,10 +437,10 @@ aqm_pie_dequeue(struct dn_queue *q)
                                if(pst->avg_dq_time == 0)
                                        pst->avg_dq_time = dq_time;
                                else {
-                                       /* 
-                                        * weight = PIE_DQ_THRESHOLD/2^6, but 
we scaled 
-                                        * weight by 2^8. Thus, scaled 
-                                        * weight = PIE_DQ_THRESHOLD /2^8 
+                                       /*
+                                        * weight = PIE_DQ_THRESHOLD/2^6, but 
we scaled
+                                        * weight by 2^8. Thus, scaled
+                                        * weight = PIE_DQ_THRESHOLD /2^8
                                         * */
                                        w = PIE_DQ_THRESHOLD >> 8;
                                        pst->avg_dq_time = (dq_time* w
@@ -450,11 +450,11 @@ aqm_pie_dequeue(struct dn_queue *q)
                        }
                }
 
-               /* 
-                * Start new measurment cycle when the queue has
-                *  PIE_DQ_THRESHOLD worth of bytes.
+               /*
+                * Start new measurement cycle when the queue has
+                * PIE_DQ_THRESHOLD worth of bytes.
                 */
-               if(!(pst->sflags & PIE_INMEASUREMENT) && 
+               if(!(pst->sflags & PIE_INMEASUREMENT) &&
                        q->ni.len_bytes >= PIE_DQ_THRESHOLD) {
                        pst->sflags |= PIE_INMEASUREMENT;
                        pst->measurement_start = now;
@@ -465,7 +465,7 @@ aqm_pie_dequeue(struct dn_queue *q)
        else
                pst->current_qdelay = now - pkt_ts;
 
-       return m;       
+       return m;
 }
 
 /*
diff --git a/sys/netpfil/ipfw/dn_sched_fq_pie.c 
b/sys/netpfil/ipfw/dn_sched_fq_pie.c
index 07da51793a52..cf6b3a64e28a 100644
--- a/sys/netpfil/ipfw/dn_sched_fq_pie.c
+++ b/sys/netpfil/ipfw/dn_sched_fq_pie.c
@@ -649,10 +649,10 @@ pie_dequeue(struct fq_pie_flow *q, struct fq_pie_si *si)
                                if(pst->avg_dq_time == 0)
                                        pst->avg_dq_time = dq_time;
                                else {
-                                       /* 
-                                        * weight = PIE_DQ_THRESHOLD/2^6, but 
we scaled 
-                                        * weight by 2^8. Thus, scaled 
-                                        * weight = PIE_DQ_THRESHOLD /2^8 
+                                       /*
+                                        * weight = PIE_DQ_THRESHOLD/2^6, but 
we scaled
+                                        * weight by 2^8. Thus, scaled
+                                        * weight = PIE_DQ_THRESHOLD /2^8
                                         * */
                                        w = PIE_DQ_THRESHOLD >> 8;
                                        pst->avg_dq_time = (dq_time* w
@@ -662,11 +662,11 @@ pie_dequeue(struct fq_pie_flow *q, struct fq_pie_si *si)
                        }
                }
 
-               /* 
-                * Start new measurment cycle when the queue has
-                *  PIE_DQ_THRESHOLD worth of bytes.
+               /*
+                * Start new measurement cycle when the queue has
+                * PIE_DQ_THRESHOLD worth of bytes.
                 */
-               if(!(pst->sflags & PIE_INMEASUREMENT) && 
+               if(!(pst->sflags & PIE_INMEASUREMENT) &&
                        q->stats.len_bytes >= PIE_DQ_THRESHOLD) {
                        pst->sflags |= PIE_INMEASUREMENT;
                        pst->measurement_start = now;
@@ -677,7 +677,7 @@ pie_dequeue(struct fq_pie_flow *q, struct fq_pie_si *si)
        else
                pst->current_qdelay = now - pkt_ts;
 
-       return m;       
+       return m;
 }
 
 

Reply via email to