]> 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)
commitd624b401b0cea16a19da914c7345db72924fdbc6
tree8a0b5fab06f0ea037f0fee7d7b2d4df13c6e2f1d
parent89c74a4752acc2127c14f78217e0c0fe86173fae
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