Fix spelling of "dropped".

Submitted by:	Lutz Donnerhacke
Differential Revision:	https://reviews.freebsd.org/D23954
This commit is contained in:
Gleb Smirnoff 2020-03-04 22:32:40 +00:00
parent 70b1e1c681
commit def4e701e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358657
3 changed files with 5 additions and 5 deletions

View File

@ -163,7 +163,7 @@ Return node statistics as
.Bd -literal
struct ng_car_hookstats {
uint64_t passed_pkts; /* Counter for passed packets */
uint64_t droped_pkts; /* Counter for dropped packets */
uint64_t dropped_pkts; /* Counter for dropped packets */
uint64_t green_pkts; /* Counter for green packets */
uint64_t yellow_pkts; /* Counter for yellow packets */
uint64_t red_pkts; /* Counter for red packets */

View File

@ -286,7 +286,7 @@ ng_car_rcvdata(hook_p hook, item_p item )
default: \
/* Drop packet and return. */ \
NG_FREE_ITEM(item); \
++hinfo->stats.droped_pkts; \
++hinfo->stats.dropped_pkts; \
return (0); \
} \
} while (0)
@ -730,7 +730,7 @@ ng_car_enqueue(struct hookinfo *hinfo, item_p item)
(hinfo->te + len >= NG_CAR_QUEUE_SIZE)) {
/* Drop packet. */
++hinfo->stats.red_pkts;
++hinfo->stats.droped_pkts;
++hinfo->stats.dropped_pkts;
NG_FREE_M(m);
hinfo->te = 0;

View File

@ -42,7 +42,7 @@
/* Per hook statistics counters */
struct ng_car_hookstats {
u_int64_t passed_pkts; /* Counter for passed packets */
u_int64_t droped_pkts; /* Counter for droped packets */
u_int64_t dropped_pkts; /* Counter for dropped packets */
u_int64_t green_pkts; /* Counter for green packets */
u_int64_t yellow_pkts; /* Counter for yellow packets */
u_int64_t red_pkts; /* Counter for red packets */
@ -50,7 +50,7 @@ struct ng_car_hookstats {
};
#define NG_CAR_HOOKSTATS { \
{ "passed", &ng_parse_uint64_type }, \
{ "droped", &ng_parse_uint64_type }, \
{ "dropped", &ng_parse_uint64_type }, \
{ "green", &ng_parse_uint64_type }, \
{ "yellow", &ng_parse_uint64_type }, \
{ "red", &ng_parse_uint64_type }, \