]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06cd60ff14727d31a8bbd651f0608854483637b2
tree8a0b5fab06f0ea037f0fee7d7b2d4df13c6e2f1d
parent7cf19a6f9495044ef18a2475e4f12ad7aedd8f76
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