Commit 158135d
committed
Merge branch 'enic-report-per-queue-stats'
Nelson Escobar says:
====================
enic: Report per queue stats
Patch #1: Use a macro instead of static const variables for array sizes. I
didn't want to add more static const variables in the next patch
so clean up the existing ones first.
Patch #2: Collect per queue statistics
Patch #3: Report per queue stats in netdev qstats
Patch #4: Report some per queue stats in ethtool
# NETIF="eno6" tools/testing/selftests/drivers/net/stats.py
KTAP version 1
1..5
ok 1 stats.check_pause # XFAIL pause not supported by the device
ok 2 stats.check_fec # XFAIL FEC not supported by the device
ok 3 stats.pkt_byte_sum
ok 4 stats.qstat_by_ifindex
ok 5 stats.check_down
# tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--dump qstats-get --json '{"ifindex": "34"}'
[{'ifindex': 34,
'rx-bytes': 66762680,
'rx-csum-unnecessary': 1009345,
'rx-hw-drop-overruns': 0,
'rx-hw-drops': 0,
'rx-packets': 1009673,
'tx-bytes': 137936674899,
'tx-csum-none': 125,
'tx-hw-gso-packets': 2408712,
'tx-needs-csum': 2431531,
'tx-packets': 15475466,
'tx-stop': 0,
'tx-wake': 0}]
v2: https://lore.kernel.org/20240905010900.24152-1-neescoba@cisco.com
v1: https://lore.kernel.org/20240823235401.29996-1-neescoba@cisco.com
====================
Link: https://patch.msgid.link/20240912005039.10797-1-neescoba@cisco.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>3 files changed
Lines changed: 269 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
131 | 165 | | |
132 | 166 | | |
133 | 167 | | |
| |||
162 | 196 | | |
163 | 197 | | |
164 | 198 | | |
| 199 | + | |
165 | 200 | | |
166 | 201 | | |
167 | 202 | | |
168 | 203 | | |
169 | 204 | | |
170 | 205 | | |
| 206 | + | |
171 | 207 | | |
172 | 208 | | |
173 | | - | |
174 | | - | |
175 | 209 | | |
176 | 210 | | |
177 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
35 | 70 | | |
36 | 71 | | |
37 | 72 | | |
| |||
46 | 81 | | |
47 | 82 | | |
48 | 83 | | |
| 84 | + | |
| 85 | + | |
49 | 86 | | |
50 | 87 | | |
51 | 88 | | |
| |||
70 | 107 | | |
71 | 108 | | |
72 | 109 | | |
| 110 | + | |
| 111 | + | |
73 | 112 | | |
74 | 113 | | |
75 | 114 | | |
76 | 115 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 116 | + | |
80 | 117 | | |
81 | 118 | | |
82 | 119 | | |
| |||
141 | 178 | | |
142 | 179 | | |
143 | 180 | | |
| 181 | + | |
144 | 182 | | |
| 183 | + | |
145 | 184 | | |
146 | 185 | | |
147 | 186 | | |
148 | | - | |
| 187 | + | |
149 | 188 | | |
150 | 189 | | |
151 | 190 | | |
152 | | - | |
| 191 | + | |
153 | 192 | | |
154 | 193 | | |
155 | 194 | | |
156 | | - | |
| 195 | + | |
157 | 196 | | |
158 | 197 | | |
159 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
160 | 213 | | |
161 | 214 | | |
162 | 215 | | |
| |||
242 | 295 | | |
243 | 296 | | |
244 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
245 | 303 | | |
246 | 304 | | |
247 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
248 | 311 | | |
249 | 312 | | |
250 | 313 | | |
| |||
256 | 319 | | |
257 | 320 | | |
258 | 321 | | |
| 322 | + | |
259 | 323 | | |
260 | 324 | | |
261 | 325 | | |
| |||
266 | 330 | | |
267 | 331 | | |
268 | 332 | | |
269 | | - | |
| 333 | + | |
270 | 334 | | |
271 | | - | |
| 335 | + | |
272 | 336 | | |
273 | | - | |
| 337 | + | |
274 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
275 | 357 | | |
276 | 358 | | |
277 | 359 | | |
| |||
0 commit comments