Commit d806e1f
virtio_net: add the total stats field
Now, we just show the stats of every queue.
But for the user, the total values of every stat may are valuable.
NIC statistics:
rx_packets: 373522
rx_bytes: 85919736
rx_drops: 0
rx_xdp_packets: 0
rx_xdp_tx: 0
rx_xdp_redirects: 0
rx_xdp_drops: 0
rx_kicks: 11125
rx_hw_notifications: 0
rx_hw_packets: 1325870
rx_hw_bytes: 263348963
rx_hw_interrupts: 0
rx_hw_drops: 1451
rx_hw_drop_overruns: 0
rx_hw_csum_valid: 1325870
rx_hw_needs_csum: 1325870
rx_hw_csum_none: 0
rx_hw_csum_bad: 0
rx_hw_ratelimit_packets: 0
rx_hw_ratelimit_bytes: 0
tx_packets: 10050
tx_bytes: 1230176
tx_xdp_tx: 0
tx_xdp_tx_drops: 0
tx_kicks: 10050
tx_timeouts: 0
tx_hw_notifications: 0
tx_hw_packets: 32281
tx_hw_bytes: 4315590
tx_hw_interrupts: 0
tx_hw_drops: 0
tx_hw_drop_malformed: 0
tx_hw_csum_none: 0
tx_hw_needs_csum: 32281
tx_hw_ratelimit_packets: 0
tx_hw_ratelimit_bytes: 0
rx0_packets: 373522
rx0_bytes: 85919736
rx0_drops: 0
rx0_xdp_packets: 0
rx0_xdp_tx: 0
rx0_xdp_redirects: 0
rx0_xdp_drops: 0
rx0_kicks: 11125
rx0_hw_notifications: 0
rx0_hw_packets: 1325870
rx0_hw_bytes: 263348963
rx0_hw_interrupts: 0
rx0_hw_drops: 1451
rx0_hw_drop_overruns: 0
rx0_hw_csum_valid: 1325870
rx0_hw_needs_csum: 1325870
rx0_hw_csum_none: 0
rx0_hw_csum_bad: 0
rx0_hw_ratelimit_packets: 0
rx0_hw_ratelimit_bytes: 0
tx0_packets: 10050
tx0_bytes: 1230176
tx0_xdp_tx: 0
tx0_xdp_tx_drops: 0
tx0_kicks: 10050
tx0_timeouts: 0
tx0_hw_notifications: 0
tx0_hw_packets: 32281
tx0_hw_bytes: 4315590
tx0_hw_interrupts: 0
tx0_hw_drops: 0
tx0_hw_drop_malformed: 0
tx0_hw_csum_none: 0
tx0_hw_needs_csum: 32281
tx0_hw_ratelimit_packets: 0
tx0_hw_ratelimit_bytes: 0
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent d86769b commit d806e1f
1 file changed
+69
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3383 | 3383 | | |
3384 | 3384 | | |
3385 | 3385 | | |
| 3386 | + | |
3386 | 3387 | | |
3387 | 3388 | | |
3388 | 3389 | | |
3389 | 3390 | | |
3390 | 3391 | | |
3391 | | - | |
| 3392 | + | |
3392 | 3393 | | |
3393 | | - | |
| 3394 | + | |
3394 | 3395 | | |
3395 | 3396 | | |
3396 | 3397 | | |
| |||
3403 | 3404 | | |
3404 | 3405 | | |
3405 | 3406 | | |
| 3407 | + | |
3406 | 3408 | | |
3407 | 3409 | | |
3408 | 3410 | | |
3409 | 3411 | | |
3410 | | - | |
| 3412 | + | |
3411 | 3413 | | |
3412 | 3414 | | |
| 3415 | + | |
3413 | 3416 | | |
3414 | 3417 | | |
3415 | 3418 | | |
3416 | 3419 | | |
3417 | 3420 | | |
3418 | | - | |
| 3421 | + | |
3419 | 3422 | | |
3420 | 3423 | | |
3421 | 3424 | | |
3422 | 3425 | | |
3423 | 3426 | | |
3424 | 3427 | | |
3425 | | - | |
| 3428 | + | |
3426 | 3429 | | |
3427 | 3430 | | |
3428 | 3431 | | |
3429 | 3432 | | |
3430 | 3433 | | |
3431 | 3434 | | |
3432 | | - | |
| 3435 | + | |
3433 | 3436 | | |
3434 | 3437 | | |
3435 | 3438 | | |
3436 | 3439 | | |
3437 | 3440 | | |
| 3441 | + | |
3438 | 3442 | | |
3439 | 3443 | | |
3440 | 3444 | | |
3441 | 3445 | | |
3442 | | - | |
| 3446 | + | |
3443 | 3447 | | |
3444 | 3448 | | |
| 3449 | + | |
3445 | 3450 | | |
3446 | 3451 | | |
3447 | 3452 | | |
3448 | 3453 | | |
3449 | 3454 | | |
3450 | | - | |
| 3455 | + | |
3451 | 3456 | | |
3452 | 3457 | | |
3453 | 3458 | | |
3454 | 3459 | | |
3455 | 3460 | | |
3456 | 3461 | | |
3457 | | - | |
| 3462 | + | |
3458 | 3463 | | |
3459 | 3464 | | |
3460 | 3465 | | |
3461 | 3466 | | |
3462 | 3467 | | |
3463 | 3468 | | |
3464 | | - | |
| 3469 | + | |
3465 | 3470 | | |
3466 | 3471 | | |
3467 | 3472 | | |
| |||
3542 | 3547 | | |
3543 | 3548 | | |
3544 | 3549 | | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
| 3579 | + | |
| 3580 | + | |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
| 3592 | + | |
3545 | 3593 | | |
3546 | 3594 | | |
3547 | 3595 | | |
| |||
3569 | 3617 | | |
3570 | 3618 | | |
3571 | 3619 | | |
3572 | | - | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
3573 | 3623 | | |
3574 | 3624 | | |
3575 | 3625 | | |
| |||
3780 | 3830 | | |
3781 | 3831 | | |
3782 | 3832 | | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
3783 | 3837 | | |
3784 | 3838 | | |
3785 | 3839 | | |
| |||
3803 | 3857 | | |
3804 | 3858 | | |
3805 | 3859 | | |
3806 | | - | |
| 3860 | + | |
| 3861 | + | |
3807 | 3862 | | |
3808 | 3863 | | |
3809 | 3864 | | |
| |||
3837 | 3892 | | |
3838 | 3893 | | |
3839 | 3894 | | |
| 3895 | + | |
| 3896 | + | |
3840 | 3897 | | |
3841 | 3898 | | |
3842 | 3899 | | |
| |||
0 commit comments