Skip to content

Commit 9f02bb6

Browse files
author
Paolo Abeni
committed
Merge branch 'virtio-net-support-device-stats'
Xuan Zhuo says: ==================== virtio-net: support device stats oasis-tcs/virtio-spec@42f3899 The virtio net supports to get device stats. ==================== Link: https://lore.kernel.org/r/20240426033928.77778-1-xuanzhuo@linux.alibaba.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2 parents dd1941f + d888f04 commit 9f02bb6

File tree

7 files changed

+1284
-61
lines changed

7 files changed

+1284
-61
lines changed

Documentation/netlink/specs/netdev.yaml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,110 @@ attribute-sets:
335335
Allocation failure may, or may not result in a packet drop, depending
336336
on driver implementation and whether system recovers quickly.
337337
type: uint
338+
-
339+
name: rx-hw-drops
340+
doc: |
341+
Number of all packets which entered the device, but never left it,
342+
including but not limited to: packets dropped due to lack of buffer
343+
space, processing errors, explicit or implicit policies and packet
344+
filters.
345+
type: uint
346+
-
347+
name: rx-hw-drop-overruns
348+
doc: |
349+
Number of packets dropped due to transient lack of resources, such as
350+
buffer space, host descriptors etc.
351+
type: uint
352+
-
353+
name: rx-csum-unnecessary
354+
doc: Number of packets that were marked as CHECKSUM_UNNECESSARY.
355+
type: uint
356+
-
357+
name: rx-csum-none
358+
doc: Number of packets that were not checksummed by device.
359+
type: uint
360+
-
361+
name: rx-csum-bad
362+
doc: |
363+
Number of packets with bad checksum. The packets are not discarded,
364+
but still delivered to the stack.
365+
type: uint
366+
-
367+
name: rx-hw-gro-packets
368+
doc: |
369+
Number of packets that were coalesced from smaller packets by the device.
370+
Counts only packets coalesced with the HW-GRO netdevice feature,
371+
LRO-coalesced packets are not counted.
372+
type: uint
373+
-
374+
name: rx-hw-gro-bytes
375+
doc: See `rx-hw-gro-packets`.
376+
type: uint
377+
-
378+
name: rx-hw-gro-wire-packets
379+
doc: |
380+
Number of packets that were coalesced to bigger packetss with the HW-GRO
381+
netdevice feature. LRO-coalesced packets are not counted.
382+
type: uint
383+
-
384+
name: rx-hw-gro-wire-bytes
385+
doc: See `rx-hw-gro-wire-packets`.
386+
type: uint
387+
-
388+
name: rx-hw-drop-ratelimits
389+
doc: |
390+
Number of the packets dropped by the device due to the received
391+
packets bitrate exceeding the device rate limit.
392+
type: uint
393+
-
394+
name: tx-hw-drops
395+
doc: |
396+
Number of packets that arrived at the device but never left it,
397+
encompassing packets dropped for reasons such as processing errors, as
398+
well as those affected by explicitly defined policies and packet
399+
filtering criteria.
400+
type: uint
401+
-
402+
name: tx-hw-drop-errors
403+
doc: Number of packets dropped because they were invalid or malformed.
404+
type: uint
405+
-
406+
name: tx-csum-none
407+
doc: |
408+
Number of packets that did not require the device to calculate the
409+
checksum.
410+
type: uint
411+
-
412+
name: tx-needs-csum
413+
doc: |
414+
Number of packets that required the device to calculate the checksum.
415+
type: uint
416+
-
417+
name: tx-hw-gso-packets
418+
doc: |
419+
Number of packets that necessitated segmentation into smaller packets
420+
by the device.
421+
type: uint
422+
-
423+
name: tx-hw-gso-bytes
424+
doc: See `tx-hw-gso-packets`.
425+
type: uint
426+
-
427+
name: tx-hw-gso-wire-packets
428+
doc: |
429+
Number of wire-sized packets generated by processing
430+
`tx-hw-gso-packets`
431+
type: uint
432+
-
433+
name: tx-hw-gso-wire-bytes
434+
doc: See `tx-hw-gso-wire-packets`.
435+
type: uint
436+
-
437+
name: tx-hw-drop-ratelimits
438+
doc: |
439+
Number of the packets dropped by the device due to the transmit
440+
packets bitrate exceeding the device rate limit.
441+
type: uint
338442

339443
operations:
340444
list:

0 commit comments

Comments
 (0)