net/mlx5e: Validate BW weight values of ETS
authorRana Shahout <ranas@mellanox.com>
Thu, 30 Jun 2016 14:34:49 +0000 (17:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 10:12:04 +0000 (06:12 -0400)
commitcdcf11212b22ff8e3de88ced1a6eda5bb950e120
treec8696ac315d4ec47de37ad4e8e5febe3542db96b
parent7ccdd0841b305323e10e779c476d3fbae2165756
net/mlx5e: Validate BW weight values of ETS

Valid weight assigned to ETS TClass values are 1-100

Fixes: 08fb1dacdd76 ('net/mlx5e: Support DCBNL IEEE ETS')
Signed-off-by: Rana Shahout <ranas@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c