Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300779
b: refs/heads/master
c: 43c880d
h: refs/heads/master
i:
  300777: b9dc5ca
  300775: 5a0055d
v: v3
  • Loading branch information
Paul Gortmaker authored and David S. Miller committed Apr 16, 2012
1 parent 9ad1e68 commit c31b091
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56845d78cee8576a8160cee8aeac62efdb561ae2
refs/heads/master: 43c880dff302b30a17044a2d5e4d2f343bf493dc
7 changes: 4 additions & 3 deletions trunk/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
*/

#include <linux/dcbnl.h>
#include <linux/math64.h>

#include "mlx4_en.h"

Expand Down Expand Up @@ -227,9 +228,9 @@ static int mlx4_en_dcbnl_ieee_setmaxrate(struct net_device *dev,
/* Convert from Kbps into HW units, rounding result up.
* Setting to 0, means unlimited BW.
*/
tmp[i] =
(maxrate->tc_maxrate[i] + MLX4_RATELIMIT_UNITS_IN_KB -
1) / MLX4_RATELIMIT_UNITS_IN_KB;
tmp[i] = div_u64(maxrate->tc_maxrate[i] +
MLX4_RATELIMIT_UNITS_IN_KB - 1,
MLX4_RATELIMIT_UNITS_IN_KB);
}

err = mlx4_en_config_port_scheduler(priv, NULL, tmp);
Expand Down

0 comments on commit c31b091

Please sign in to comment.