hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/net/bridge/br_stp_bpdu.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Spanning tree protocol; BPDU handling
34 * Linux ethernet bridge
45 *
56 * Authors:
67 * Lennert Buytenhek <buytenh@gnu.org>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; either version
11
- * 2 of the License, or (at your option) any later version.
128 */
139
1410 #include <linux/kernel.h>
....@@ -122,6 +118,8 @@
122118 br_set_ticks(buf+33, bpdu->forward_delay);
123119
124120 br_send_bpdu(p, buf, 35);
121
+
122
+ p->stp_xstats.tx_bpdu++;
125123 }
126124
127125 /* called under bridge lock */
....@@ -137,6 +135,8 @@
137135 buf[2] = 0;
138136 buf[3] = BPDU_TYPE_TCN;
139137 br_send_bpdu(p, buf, 4);
138
+
139
+ p->stp_xstats.tx_tcn++;
140140 }
141141
142142 /*