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 .Bd -literal
struct ng_car_hookstats { struct ng_car_hookstats {
uint64_t passed_pkts; /* Counter for passed packets */ 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 green_pkts; /* Counter for green packets */
uint64_t yellow_pkts; /* Counter for yellow packets */ uint64_t yellow_pkts; /* Counter for yellow packets */
uint64_t red_pkts; /* Counter for red 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: \ default: \
/* Drop packet and return. */ \ /* Drop packet and return. */ \
NG_FREE_ITEM(item); \ NG_FREE_ITEM(item); \
++hinfo->stats.droped_pkts; \ ++hinfo->stats.dropped_pkts; \
return (0); \ return (0); \
} \ } \
} while (0) } while (0)
@ -730,7 +730,7 @@ ng_car_enqueue(struct hookinfo *hinfo, item_p item)
(hinfo->te + len >= NG_CAR_QUEUE_SIZE)) { (hinfo->te + len >= NG_CAR_QUEUE_SIZE)) {
/* Drop packet. */ /* Drop packet. */
++hinfo->stats.red_pkts; ++hinfo->stats.red_pkts;
++hinfo->stats.droped_pkts; ++hinfo->stats.dropped_pkts;
NG_FREE_M(m); NG_FREE_M(m);
hinfo->te = 0; hinfo->te = 0;

View File

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