be2net: fix link failure after ethtool offline test
authorPetr Oros <poros@redhat.com>
Wed, 19 Jun 2019 12:29:42 +0000 (14:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Jun 2019 13:40:50 +0000 (09:40 -0400)
commit2e5db6eb3c23e5dc8171eb8f6af7a97ef9fcf3a9
treed8de524a777ea6d398fb3380dcf631f1d6339f62
parentc356dc4b540edd6c02b409dd8cf3208ba2804c38
be2net: fix link failure after ethtool offline test

Certain cards in conjunction with certain switches need a little more
time for link setup that results in ethtool link test failure after
offline test. Patch adds a loop that waits for a link setup finish.

Changes in v2:
- added fixes header

Fixes: 4276e47e2d1c ("be2net: Add link test to list of ethtool self tests.")
Signed-off-by: Petr Oros <poros@redhat.com>
Reviewed-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_ethtool.c