patchset #3 and commit message updated, thanks as well to Ben for the hint that the feed of 32b into a consumer of 64b is the root cause. 36703 <https://gerrit.fd.io/r/c/vpp/+/36703> should be good now.
On Tue, Jul 19, 2022 at 10:56 AM <aihua1...@163.com> wrote: > This change doesn't look right either. > We should use u64 instead of u32. > > like this: > > vlib_cli_output ( > vm, "rx: %Upps %Ubps tx: %Upps %Ubps", format_base10, > (u64) ((vrx[spin].packets - vrx[spin ^ 1].packets) / tsd), > format_base10, > (u64) (8 * (vrx[spin].bytes - vrx[spin ^ 1].bytes) / tsd), > format_base10, > (u64) ((vtx[spin].packets - vtx[spin ^ 1].packets) / tsd), > format_base10, > (u64) (8 * (vtx[spin].bytes - vtx[spin ^ 1].bytes) / tsd)); > > > > -- Pim van Pelt <p...@ipng.nl> PBVP1-RIPE - http://www.ipng.nl/
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21684): https://lists.fd.io/g/vpp-dev/message/21684 Mute This Topic: https://lists.fd.io/mt/92478151/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-