drivers/net: fix unresolved 64bit math in mellanox/mlx4/en_dcb_nl.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 15 Apr 2012 18:17:34 +0000 (18:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Apr 2012 06:12:11 +0000 (02:12 -0400)
commit43c880dff302b30a17044a2d5e4d2f343bf493dc
tree5a1d8828a876726c9a2c00e8fb16a2b1a90866e8
parent56845d78cee8576a8160cee8aeac62efdb561ae2
drivers/net: fix unresolved 64bit math in mellanox/mlx4/en_dcb_nl.c

Commit 109d2446052a484c58f07f71f9457bf7b71017f8

    "net/mlx4_en: Set max rate-limit for a TC"

introduced 64 bit math operations into mlx4_en_dcbnl_ieee_setmaxrate()

causing the following final link failure on an x86_32 allmodconfig

  ERROR: "__udivdi3" [drivers/net/ethernet/mellanox/mlx4/mlx4_en.ko] undefined!

Convert it to use div_u64() instead.

Cc: Amir Vadai <amirv@mellanox.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c