net/mlx5e: Wait for RX buffers initialization in a more proper manner
authorAchiad Shochat <achiad@mellanox.com>
Tue, 3 Nov 2015 06:07:19 +0000 (08:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2015 15:41:50 +0000 (10:41 -0500)
commit01c196a2d3d1cfaab7d20879236e981104749510
tree8a0b5fab06f0ea037f0fee7d7b2d4df13c6e2f1d
parenta1985740904342a884471348f6e038ee5d706c36
net/mlx5e: Wait for RX buffers initialization in a more proper manner

Use jiffies rather than wait loop with msleep().

The wait loop didn't take into consideration time when the
process was not executing.

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c