diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2018-03-08 18:08:26 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2018-03-10 09:00:27 -0800 |
commit | 527f85141c9e6982f73f043f85949eaf7ff498bc (patch) | |
tree | 04ae2ee7a9251e64998b8ee06d1d6d21f1d782a0 /tc/m_vlan.c | |
parent | b80c9af8a464496d646ee1b17b15f3a6755569a2 (diff) |
ip-address: Fix negative prints of large TX rate limits
TX rate limit fields are unsigned (__u32).
Use %u and print_uint when printing.
Tested:
$ ip link set ens1 vf 1 rate 2294967296
$ ip link show |grep -iE "vf 1" | grep rate
before:
vf 1 MAC 00:00:00:00:00:00, tx rate -2000000000 (Mbps), max_tx_rate -2000000000Mbps, ...
after:
vf 1 MAC 00:00:00:00:00:00, tx rate 2294967296 (Mbps), max_tx_rate 2294967296Mbps, ...
Fixes: 3fd86630876a ("iproute2: rework SR-IOV VF support")
Fixes: 8c29ae7cc249 ("ip link: Fix crash on older kernels when show VF dev")
Fixes: f89a2a05ffa9 ("Add support to configure SR-IOV VF minimum and maximum Tx rate through ip tool")
Fixes: ae7229d5f99e ("ip: Add support for setting and showing SR-IOV virtual funtion link params")
Fixes: d0e720111aad ("ip: ipaddress.c: add support for json output")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Diffstat (limited to 'tc/m_vlan.c')
0 files changed, 0 insertions, 0 deletions