]> git.proxmox.com Git - mirror_iproute2.git/commit
iplink: Validate minimum tx rate is less than maximum tx rate
authorGal Pressman <galp@mellanox.com>
Tue, 16 Jan 2018 13:41:58 +0000 (15:41 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 17 Jan 2018 18:44:42 +0000 (10:44 -0800)
commit04be08e0bd2ed67bbedb787b70d1d73e91322d75
tree7550e785377da181f0efe54b12ecaf40f8e85d6b
parenta3e0229e25fa2e9d0bc66317cc140efbfeed2ebc
iplink: Validate minimum tx rate is less than maximum tx rate

According to the documentation (man ip-link), the minimum TXRATE should
be always <= Maximum TXRATE, but commit f89a2a05ffa9 ("Add support to
configure SR-IOV VF minimum and maximum Tx rate through ip tool") didn't
enforce it.

Fixes: f89a2a05ffa9 ("Add support to configure SR-IOV VF minimum and maximum Tx rate through ip tool")
Cc: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Gal Pressman <galp@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
ip/iplink.c